@platforma-sdk/ui-vue 1.8.0 → 1.8.1
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 +7 -0
- package/dist/lib.js +1 -1
- package/dist/lib.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/lib.js
CHANGED
|
@@ -6011,7 +6011,7 @@ const yC = /* @__PURE__ */ Va(vC, [["render", bC]]), wC = { key: 0 }, _C = ["tab
|
|
|
6011
6011
|
default: je(() => [
|
|
6012
6012
|
(w(!0), C(nt, null, vt(c.value, (h, f) => (w(), C("div", {
|
|
6013
6013
|
key: f,
|
|
6014
|
-
class: ye(["ui-btn-group__option", { active: d.modelValue === h.value }]),
|
|
6014
|
+
class: ye(["ui-btn-group__option text-s", { active: d.modelValue === h.value }]),
|
|
6015
6015
|
tabindex: d.modelValue === h.value || d.disabled ? void 0 : 0,
|
|
6016
6016
|
onKeydown: nn((x) => o(h.value), ["enter"]),
|
|
6017
6017
|
onClick: (x) => o(h.value)
|
package/dist/lib.umd.cjs
CHANGED
|
@@ -14,7 +14,7 @@ ${e}}
|
|
|
14
14
|
${t}}
|
|
15
15
|
`,{css:l,id:"variables"}},dm=a=>Array.from(new Set(Object.values(a.getParams()).flat().map(e=>e==null?void 0:e.googleFont).filter(e=>typeof e=="string"))).sort(),Bl=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,gm(s)},md=(a,e)=>{for(const t of Array.from(e.querySelectorAll(`:scope > style[data-ag-scope="${a}"]`)))t.remove()},yd=new Set,um=async a=>{if(yd.has(a))return;yd.add(a);const e=`@import url('https://${bd}/css2?family=${encodeURIComponent(a)}:wght@100;200;300;400;500;600;700;800;900&display=swap');
|
|
16
16
|
`;return Bl({css:e,part:`googleFont:${a}`,root:document.head})},bd="fonts.googleapis.com",gm=a=>new Promise(e=>{const t=()=>{a.removeEventListener("load",t),e()};a.addEventListener("load",t)}),pm=a=>a==null?String(a):`${typeof a} ${a}`,fm='.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)}}',hm=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(fm),mm=Ua("colorScheme","light"),ym='.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)}',vd={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"/>'},bm=(a={})=>{let e=ym;for(const t of Object.keys(vd)){const i=vm(t,a.strokeWidth||1.5);e+=`.ag-icon-${t}::before { mask-image: url('data:image/svg+xml,${encodeURIComponent(i)}'); }
|
|
17
|
-
`}return e},vm=(a,e)=>{const t=vd[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>"},wm=(a={})=>Ua("iconSet","quartz").withCSS(()=>bm(a)),xm=":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)}",_m=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(xm),km=ld(_m,"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"}}}),Cm='.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)}}}',Sm=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(Cm),Tm=ld(Sm,"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"}}),Em=a=>om(a).withPart(hm),Nm=Em("quartz").withPart(mm).withPart(wm).withPart(Tm).withPart(()=>km).withParams({fontFamily:[{googleFont:"IBM Plex Sans"},"-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu"]});function wd(){Jt.ModuleRegistry.registerModules([Ro.ClientSideRowModelModule,xf.InfiniteRowModelModule,Fc.ServerSideRowModelModule,_f.CsvExportModule,$c.ClipboardModule,Zc.RangeSelectionModule,kf.RichSelectModule,Cf.MenuModule,Sf.ExcelExportModule]);const a=Uh("AGGRID_LICENSE");a?(Qe.LicenseManager.setLicenseKey(a),console.log("AG Grid Activated")):console.log("AG Grid License not found")}const xd=Nm.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"}),_d=Symbol("sdk-vue");function Vl(){return r.inject(_d)}function Bm(a,e){let t;wd();const i=()=>{a.loadBlockState().then(s=>{l.loaded=!0;const d=If(s,a),u=e(d),p=Object.fromEntries(Object.entries(u.routes).map(([h,m])=>{const _=typeof m=="function"?m():m;return[h,r.markRaw(_)]}));t=Object.assign(d,{...u,getRoute(h){return p[h]}})}).catch(s=>{console.error("load initial state error",s),l.error=s})},l=r.reactive({loaded:!1,error:void 0,useApp(){return Ef(t,"App is not loaded")},install(s){s.provide(_d,this),i()}});return l}var Vm=Object.defineProperty,Mm=(a,e,t)=>e in a?Vm(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,zm=(a,e,t)=>Mm(a,e+"",t);function kd(a,e){if(a==null)throw Error("Empty (null | undefined) value");return a}function Am(a,e,t){const i=Math.min(e,t),l=Math.max(e,t);return a>=i&&a<=l}function Om(a){return new Promise(e=>setTimeout(e,a))}function Lm(a){return a()}function Ko(a,e,t){return e>a?e:a>t?t:a}function Cd(a,e){return e(a)}function Cn(a,e){if(a!=null)return e(a)}function Dm(a){if(a&&a.ok)return a.value}async function Im(a){return Object.fromEntries(await Promise.all(Object.entries(a).map(async([e,t])=>[e,await t])))}const Sd=a=>a;function Rm(a,e){return a=Math.ceil(a),e=Math.floor(e),Math.floor(Math.random()*(e-a))+a}function Pm(a){let e="";for(let t=0;t<a;t++)e+=String.fromCharCode(Rm(65,91));return e}function jm(){return Pm(42)}function Wa(a){return a!==null&&typeof a=="object"}function Fm(a,e){return Object.keys(a).map(t=>e(a[t],t))}function Ml(a,e){return Wa(a)&&Wa(e)?Object.keys(a).length!==Object.keys(e).length?!1:Object.keys(a).every(t=>Ml(a[t],e[t])):a===e}function Ha(a){if(Array.isArray(a)){const e=[];for(let t=0;t<a.length;t++)e[t]=Ha(a[t]);return e}else if(Wa(a)){const e={};return Object.keys(a).forEach(t=>{e[t]=Ha(a[t])}),e}else return a}function $m(a){return Array.isArray(a)?Object.assign([],a):Wa(a)?Object.assign({},a):a}function Zm(a,e){const t={};for(const i in e)e[i]!==a[i]&&(t[i]=a[i]);return t}function Um(a,e,t){return Object.assign({},a,{[e]:t})}function Wm(a){return Object.entries(a).forEach(([e,t])=>{t instanceof Function&&(a[e]=t.bind(a))}),a}function Hm(a,e,t){return a[e]=t,a}function qm(a,e){return a[e]}function Gm(a,e){a={...a};const t=a[e];return delete a[e],[t,a]}function Ym(a,...e){return Object.assign({},...e.map(t=>({[t]:a[t]})))}function Km(a,...e){return e.map(t=>a[t])}function Jm(a,...e){const t=Object.assign({},a);return e.forEach(i=>delete t[i]),t}const zl=Object.freeze(Object.defineProperty({__proto__:null,bindMethods:Wm,deepClone:Ha,deepEqual:Ml,getProp:qm,iSet:Um,isObject:Wa,map:Fm,omit:Jm,pick:Ym,pickValues:Km,setProp:Hm,shallowClone:$m,shallowDiff:Zm,shiftProp:Gm},Symbol.toStringTag,{value:"Module"}));function Qm(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 Td(a,e,t){let i;return function(...l){i&&clearTimeout(i),i=setTimeout(()=>{i=void 0,a.apply(this,l)},e)}}const Xm=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],ey=["B","kiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],ty=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],ry=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],Ed=(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 Al(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?ry:ty:e.binary?ey:Xm;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=Ed(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=Ed(Number(a),e.locale),u=t[s];return l+d+" "+u}const ny={class:"context-menu"},ay=["onClick"],oy=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",ny,[(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,ay))),128))]))}}),Yr=(a,e)=>{const t=a.__vccOpts||a;for(const[i,l]of e)t[i]=l;return t},iy=Yr(oy,[["__scopeId","data-v-12530966"]]);function Ol(a,e){a.preventDefault();const t=()=>{r.render(null,document.body)},i=r.h(iy,{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 Nd=Symbol(),Jo=()=>r.inject(Nd),ly=["value"],sy={key:1},cy=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=h=>{var m;let _=(m=h.target)==null?void 0:m.value;const C=r.unref(s),T=Lm(()=>C==="integer"?parseInt(_,10):C==="float"?Number(_):_);t("update:modelValue",T),l.edit=!1},u=r.ref(),p=h=>{!h.metaKey&&i.editable&&(l.edit=!0,requestAnimationFrame(()=>{var m,_;(_=(m=u.value)==null?void 0:m.querySelector("input"))==null||_.focus()}))};return(h,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:h.modelValue,onFocusout:m[0]||(m[0]=_=>l.edit=!1),onChange:d},null,40,ly)):(r.openBlock(),r.createElementBlock("div",sy,r.toDisplayString(h.modelValue),1))],2))}}),dy=["^data-row-index"],uy={key:0,class:"control-cell"},gy=r.defineComponent({__name:"TdCell",props:{cell:{}},setup(a){const e=a,t=Jo(),i=r.computed(()=>e.cell.column.valueType),l=h=>{Cn(t.settings.value.onUpdatedRow,m=>{const _=e.cell.row,C={..._.dataRow,[e.cell.id]:h};m({..._,dataRow:C})})},s=h=>{h.metaKey&&t.selectRow(e.cell.row.primaryKey)},d=(h,m)=>{if(h.type==="contextmenu")h.preventDefault();else return;const _=t.settings??{},C=[],{onSelectedRows:T,onSelectedColumns:L}=_.value,S=t.data.selectedRows.has(m.primaryKey);T&&T.length&&(S?C.push({text:"Deselect row",cb(){t.data.selectedRows.delete(e.cell.row.primaryKey)}}):C.push({text:"Select row",cb(){t.selectRow(e.cell.row.primaryKey)}})),L&&L.length&&(C.push({text:"Select column",cb(){t.selectColumn(e.cell.column.id)}}),C.push({text:"Unselect column",cb(){t.unselectColumn(e.cell.column.id)}})),C.length&&Ol(h,C)},u=r.ref(),p=r.computed(()=>e.cell.column.component?e.cell.column.component():void 0);return(h,m)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"cellRef",ref:u,class:r.normalizeClass(["td-cell",{[h.cell.class]:!0}]),"^data-row-index":h.cell.row.index,onClick:s,onContextmenu:m[0]||(m[0]=_=>d(_,h.cell.row))},[h.cell.control?(r.openBlock(),r.createElementBlock("div",uy,r.toDisplayString(h.cell.row.index),1)):p.value?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(p.value),{key:1,"model-value":h.cell.value,"onUpdate:modelValue":l},null,8,["model-value"])):(r.openBlock(),r.createBlock(cy,{key:2,"model-value":h.cell.value,"value-type":i.value,editable:h.cell.column.editable,"onUpdate:modelValue":l},null,8,["model-value","value-type","editable"]))],42,dy))}}),py={},fy={width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function hy(a,e){return r.openBlock(),r.createElementBlock("svg",fy,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 my=Yr(py,[["render",hy]]),yy={class:"tr-head"},by=r.defineComponent({__name:"TrHead",setup(a){return(e,t)=>(r.openBlock(),r.createElementBlock("div",yy,[r.renderSlot(e.$slots,"default")]))}});function vy(a,e){const t=e.indexOf(a)+1;return e[t>=e.length?0:t]}function wy(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 xy=["^data-col-id"],_y=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&&Ol(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:vy(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,xy))}}),ky=r.defineComponent({__name:"TrBody",props:{row:{}},setup(a){const e=r.ref(),t=()=>{r.nextTick().then(()=>{Cn(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))}}),Cy=r.defineComponent({__name:"ColumnCaret",props:{column:{}},setup(a){const e=Jo(),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 Xe(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 Sy(a){r.onMounted(()=>window.addEventListener("mouseup",a)),r.onUnmounted(()=>window.removeEventListener("mouseup",a))}function Ty(a){let e=!1;return function(...t){e?console.log("handle pressure"):(requestAnimationFrame(()=>{a(...t),e=!1}),e=!0)}}function Ey(a,e){let t;function i(s){t={...s}}Sy(()=>{t=void 0,e()});const l=Ty(a);return Xe(window,"mousemove",s=>{t&&l({x:t.x,width:t.width,diff:s.x-t.x})}),{start:i}}const Jn=1,Ny=10,By=30,Bd=60;function Vd(){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 Md(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&&(Xe(a,"mouseenter",()=>d(!0)),Xe(a,"mouseleave",()=>d(!1))),l}function Vy(a){var e;const t=Cn((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 Sd({colId:d,width:l,x:s,right:s+l})}).slice(0,t.length-1)}function My(a,e){const t=Vd(),i=Md(e,{}),{data:l}=a,s=Ey(u=>{Cn(l.resizeTh,p=>{const h=l.columns.find(m=>m.id===p.colId);h&&(h.width=Ko(u.width+u.diff,By,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=Vy(e).find(p=>Math.abs(t.x-p.right)<Ny);u?(document.body.style.cursor="col-resize",l.resizeTh=u):(l.resizeTh=void 0,document.body.style.cursor="")}),{mouseDown:d}}const zy={key:0,class:"command-menu"},Ay={key:0},Oy=["onClick"],Ly=r.defineComponent({__name:"RowsCommandMenu",setup(a){const e=Jo(),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",zy,[t.value.length?(r.openBlock(),r.createElementBlock("span",Ay,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,h)=>(r.openBlock(),r.createElementBlock("span",{key:h,class:"command",onClick:r.withModifiers(p.cb,["stop"])},r.toDisplayString(p.label),9,Oy))),128))])):r.createCommentVNode("",!0)}}),Dy={key:0,class:"command-menu"},Iy={key:0},Ry=["onClick"],Py=r.defineComponent({__name:"ColumnsCommandMenu",setup(a){const e=Jo(),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",Dy,[t.value.length?(r.openBlock(),r.createElementBlock("span",Iy,"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,h)=>(r.openBlock(),r.createElementBlock("span",{key:h,class:"command",onClick:r.withModifiers(p.cb,["stop"])},r.toDisplayString(p.label),9,Ry))),128))])):r.createCommentVNode("",!0)}});function Kr(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});Xe(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)}),Xe(document,"mouseup",l=>{t.el&&(t.el=void 0,e({...i(l),stop:!0},t))}),Xe(document,"mousemove",l=>{t.el&&e(i(l),t)})}const jy=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)),h=r.computed(()=>({top:`${u.value}px`,height:`${p.value}px`}));return Kr(l,(m,_)=>{const C=(u.value+m.dy)*i.dataSize/s.value;t("change:offset",C),_.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(h.value)},null,4)):r.createCommentVNode("",!0)])],4))}});function Fy(a){return r.computed(()=>{const{data:e,settings:t}=a,{bodyWidth:i,scrollLeft:l}=e,s=[...e.columns],d=jm();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,_}),h=p.filter(m=>m.frozen);return Qm(p,m=>m.frozen?!1:l<m.offset+m.width&&m.offset<i+l).concat(h).map(m=>({...m,style:{left:m.frozen?`${m.offset}px`:`${m.offset-e.scrollLeft}px`,width:`${m.width}px`},control:m.id===d}))})}function $y(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,h=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 Sd({style:{top:`${d-a.scrollTop}px`,height:`${i.height}px`},primaryKey:s,offset:d,height:p,cells:h,selected:a.selectedRows.has(s)})}))}const Zy=async(a,e)=>{const{scrollTop:t,bodyHeight:i}=a;return await Om(0),Im({rows:e.getRows(t,i),dataWindow:a})};function Uy(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=Ha(m.columns),e.currentWindow=void 0,m.dataSource.getHeight().then(_=>{e.dataHeight=_,h.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(()=>Cd(h.data.dataHeight-h.data.bodyHeight,m=>m>0?m:0)),s=r.computed(()=>Cd(i.value-h.data.bodyWidth,m=>m>0?m:0)),d=r.computed(()=>({bodyHeight:e.bodyHeight,scrollTop:e.scrollTop,current:e.currentWindow})),u=Fy({data:e,settings:t}),p=$y(e,u),h={data:e,settings:t,tableColumns:u,tableRows:p,adjustWidth:()=>{const m=e.columns.reduce((C,T)=>C+T.width+Jn,0),_=e.bodyWidth+e.scrollLeft;if(m<_){const C=e.columns[e.columns.length-1];C.width=C.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=Ko(m,0,l.value)},updateScrollLeft(m){e.scrollLeft=Ko(m,0,s.value)},updateBodyHeight(){const{height:m}=a.settings,{dataHeight:_}=e,C=m>_?_:m;e.bodyHeight=C},updateDimensions(m){this.updateBodyHeight(),h.data.bodyWidth=m.width,h.adjustWidth(),e.rows=[],e.currentWindow=void 0}};return r.watch(d,(m,_)=>{const C=m.current;(!C||m.scrollTop<C.scrollTop||m.scrollTop+m.bodyHeight>C.bodyHeight+C.scrollTop)&&(e.currentWindow={scrollTop:m.scrollTop-Bd,bodyHeight:m.bodyHeight+Bd*2},Zy(Ha(e.currentWindow),t.value.dataSource).then(({rows:T,dataWindow:L})=>{Ml(e.currentWindow,L)&&(e.rows=T)}))},{deep:!0,immediate:!0}),r.provide(Nd,h),h}const Wy={class:"command-menu__container"},Hy={key:0,class:"table-body__no-data"},qy={class:"carets"},Ll=r.defineComponent({__name:"TableComponent",props:{settings:{}},emits:["update:data","change:sort"],setup(a,{emit:e}){const t=e,i=a,l=Uy(i),s=r.computed(()=>l.data.rows.length===0),d=r.computed(()=>({height:s.value?"212px":l.data.bodyHeight+"px"}));r.watch(l.data,S=>t("update:data",S),{deep:!0}),r.watch(i,()=>m);const u=r.ref(),p=r.ref(),h=r.ref(),m=()=>{Cn(h.value,S=>{l.updateDimensions(S.getBoundingClientRect())})},_=l.tableColumns,C=l.tableRows,{mouseDown:T}=My(l,u);r.onMounted(()=>{r.nextTick(m)}),r.watchPostEffect(()=>{r.unref(i.settings),r.nextTick(m)}),Xe(window,"resize",()=>r.nextTick(m));const L=S=>{S.preventDefault(),l.updateOffsets(S)};return(S,B)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"tableRef",ref:u,class:"data-table",onMousedown:B[2]||(B[2]=(...v)=>r.unref(T)&&r.unref(T)(...v))},[r.createElementVNode("div",Wy,[r.createVNode(Ly),B[3]||(B[3]=r.createTextVNode()),r.createVNode(Py)]),B[7]||(B[7]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"headRef",ref:p,class:"table-head"},[r.createVNode(by,null,{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(_),(v,A)=>(r.openBlock(),r.createBlock(_y,{key:A,col:v,style:r.normalizeStyle(v.style),"onChange:sort":B[0]||(B[0]=D=>S.$emit("change:sort",D))},null,8,["col","style"]))),128))]),_:1})],512),B[8]||(B[8]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"bodyRef",ref:h,class:"table-body",style:r.normalizeStyle(d.value),onWheel:L},[s.value?(r.openBlock(),r.createElementBlock("div",Hy,[r.createElementVNode("div",null,[r.createVNode(my),B[4]||(B[4]=r.createTextVNode()),B[5]||(B[5]=r.createElementVNode("div",null,"No Data To Show",-1))])])):r.createCommentVNode("",!0),B[6]||(B[6]=r.createTextVNode()),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(C),(v,A)=>(r.openBlock(),r.createBlock(ky,{key:A,row:v},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(v.cells,D=>(r.openBlock(),r.createBlock(gy,{key:D.column.id+":"+A,cell:D,style:r.normalizeStyle(D.style)},null,8,["cell","style"]))),128))]),_:2},1032,["row"]))),128))],36),B[9]||(B[9]=r.createTextVNode()),r.createElementVNode("div",qy,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(_),(v,A)=>(r.openBlock(),r.createBlock(Cy,{key:A,column:v,style:r.normalizeStyle(v.style),"onChange:sort":B[1]||(B[1]=D=>S.$emit("change:sort",D))},null,8,["column","style"]))),128))]),B[10]||(B[10]=r.createTextVNode()),r.createVNode(jy,{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))}}),zd=new WeakMap;class Gy{constructor(e,t,i){zm(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:kd(l.indices.get(u)),height:this.resolveHeight(d,u)}));zd.set(this,s)}get rows(){return zd.get(this)}async getHeight(){return this.dataHeight}async getRows(e,t){return wy(this.rows,i=>{const l=i.offset;return e<l+i.height&&l<t+e})}}class Yy{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=Ko(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 Ky(a){return Object.freeze(a)}function Jy(a){return r.h(Ll,{settings:Object.freeze(a)})}function Dl(a,e){const t=new Gy(a,e.resolveRowHeight,e.resolvePrimaryKey);return{...e,dataSource:t}}function Qy(a,e){return r.computed(()=>{const t=r.unref(a);return Dl(t,r.unref(e))})}function Xy(a,e){const t=r.computed(()=>{const l=r.unref(a);return Dl(l,r.unref(e))}),i=r.reactive({settings:t});return r.computed(()=>r.h(Ll,i))}const eb=Object.freeze(Object.defineProperty({__proto__:null,AsyncData:Yy,Component:Ll,factory:Jy,rawDataSettings:Dl,settings:Ky,useRawData:Qy,useRawDataComponent:Xy},Symbol.toStringTag,{value:"Module"}));function*tb(a,e){for(const t of a)yield e(t)}function rb(a){const e=[];for(const t of a)e.push(t);return e}function Ad(a){return a()}function Il(a,e){if(a==null)throw Error(e);return a}function Rl(a){let e=!1;return function(...t){e||(requestAnimationFrame(()=>{a(...t),e=!1}),e=!0)}}function Od(a){return new Promise(e=>setTimeout(e,a))}function Ld(a,e){const t=setTimeout(a,e);return()=>{clearTimeout(t)}}function Dd(a,e){return a=Math.ceil(a),e=Math.floor(e),Math.floor(Math.random()*(e-a))+a}function nb(a){let e="";for(let t=0;t<a;t++)e+=String.fromCharCode(Dd(65,91));return e}function Id(a){return function(e){return 1-a(1-e)}}function ab(a){return function(e){return e<.5?a(2*e)/2:(2-a(2*(1-e)))/2}}function Rd(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 h=i(p);t(h),p<1&&requestAnimationFrame(d)}),function(){s=!0}}function ob(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 h=i(p);t(h),p<1&&requestAnimationFrame(d)}),function(){s=!0}}function Pd(a,e){let t=-1;return(...i)=>{t!==-1&&(clearTimeout(t),t=-1),t=window.setTimeout(()=>a(...i),e)}}function jd(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 ib(a){return a.map(e=>({text:String(e),value:e}))}function Qn(a){return a.map(e=>({label:"label"in e?e.label:e.text,value:e.value,description:e.description}))}const Pl=new Map;function lb(a){return Pl.has(a)||Pl.set(a,r.ref(localStorage.getItem(a))),Il(Pl.get(a),"...")}function sb(a,e){e==null?localStorage.removeItem(a):localStorage.setItem(a,e)}function Fd(a){const e=lb(a);return r.watch(e,t=>sb(a,t)),e}const jl=new Set;window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",a=>{rb(tb(jl.values(),e=>e(a.matches?"dark":"light")))});const cb=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",$d=r.ref(cb),Fl=Fd("theme");function Zd(a){const e=r.computed(()=>Fl.value?Fl.value:$d.value),t=l=>{$d.value=l,a&&a(l)};function i(){Fl.value=e.value==="light"?"dark":(e.value,"light")}return r.watch(e,l=>{a&&a(r.unref(l))}),r.onMounted(()=>{jl.add(t)}),r.onUnmounted(()=>{jl.delete(t)}),[e,i]}const db=r.defineComponent({__name:"ThemeSwitcher",setup(a){const[e,t]=Zd();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))}}),ub={class:"pl-layout-component pl-block-page"},gb={key:0,class:"pl-block-page__title"},pb={class:"pl-block-page__title__append"},fb={key:1},hb={class:"pl-block-page__body"},mb={name:"PlBlockPage"},yb=r.defineComponent({...mb,setup(a){const e=r.useSlots();return(t,i)=>(r.openBlock(),r.createElementBlock("div",ub,[r.unref(e).title?(r.openBlock(),r.createElementBlock("div",gb,[r.createElementVNode("h1",null,[r.renderSlot(t.$slots,"title")]),i[0]||(i[0]=r.createTextVNode()),r.createElementVNode("div",pb,[r.renderSlot(t.$slots,"append")])])):(r.openBlock(),r.createElementBlock("div",fb)),i[1]||(i[1]=r.createTextVNode()),r.createElementVNode("div",hb,[r.renderSlot(t.$slots,"default")])]))}}),bb={name:"PlContainer"},vb=r.defineComponent({...bb,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))}}),wb={name:"PlRow"},xb=r.defineComponent({...wb,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))}}),_b={class:"pl-layout-component",style:{"flex-grow":"1"}},kb={name:"PlSpacer"},Ud=r.defineComponent({...kb,setup(a){return(e,t)=>(r.openBlock(),r.createElementBlock("div",_b))}}),Cb={name:"PlGrid"},Sb=r.defineComponent({...Cb,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))}}),Tb={key:0,class:"pl-alert__icon"},Eb={class:"pl-alert__main"},Nb={key:0},Bb={class:"pl-alert__main__text"},Vb={name:"PlAlert"},Mb=r.defineComponent({...Vb,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",Tb,[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",Eb,[t.label?(r.openBlock(),r.createElementBlock("label",Nb,r.toDisplayString(t.label),1)):r.createCommentVNode("",!0),i[1]||(i[1]=r.createTextVNode()),r.createElementVNode("div",Bb,[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)}}),qa=r.defineComponent({__name:"PlMaskIcon16",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 Wd(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 zb={key:0},Ab={inheritAttrs:!1},Qo=r.defineComponent({...Ab,__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 Wd(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",zb,[r.renderSlot(s.$slots,"default")])),d[0]||(d[0]=r.createTextVNode()),s.loading?(r.openBlock(),r.createBlock(r.unref(qa),{key:1,name:"loading",size:s.size},null,8,["size"])):s.icon?(r.openBlock(),r.createBlock(r.unref(qa),{key:2,name:s.icon,size:s.size},null,8,["name","size"])):r.createCommentVNode("",!0)],16))}}),Ob={name:"PlBtnPrimary"},$l=r.defineComponent({...Ob,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(Qo,r.mergeProps({class:"pl-btn-primary"},e),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),Lb={name:"PlBtnAccent"},Db=r.defineComponent({...Lb,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(Qo,r.mergeProps({class:"pl-btn-accent"},e),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),Ib={name:"PlBtnDanger"},Rb=r.defineComponent({...Ib,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(Qo,r.mergeProps({class:"pl-btn-danger"},e),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),Pb={name:"PlBtnSecondary"},Zl=r.defineComponent({...Pb,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(Qo,r.mergeProps(e,{class:"pl-btn-secondary"}),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),jb={key:0},Fb={name:"PlBtnGhost"},Ul=r.defineComponent({...Fb,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 Wd(l),(d,u)=>(r.openBlock(),r.createElementBlock("button",r.mergeProps({ref_key:"btnRef",ref:l,tabindex:"0",class:["pl-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",jb,[r.renderSlot(d.$slots,"default")])):r.createCommentVNode("",!0),u[0]||(u[0]=r.createTextVNode()),d.loading?(r.openBlock(),r.createBlock(r.unref(qa),{key:1,name:"loading",size:d.size},null,8,["size"])):d.icon?(r.openBlock(),r.createBlock(r.unref(qa),{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))}}),$b=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(Zl,r.mergeProps({round:"",hover:t.value},e),null,16,["hover"]),l[2]||(l[2]=r.createTextVNode()),r.renderSlot(i.$slots,"default")],34))}});function Hd(a,e){const t=Rl(()=>{if(a.value){const{scrollTop:i,scrollLeft:l,scrollHeight:s,scrollWidth:d,clientHeight:u,clientWidth:p}=document.documentElement,h=a.value.getBoundingClientRect();e({scrollTop:i,scrollLeft:l,scrollHeight:s,scrollWidth:d,clientHeight:u,clientWidth:p,offsetY:i+h.y,offsetX:l+h.x,top:h.top,right:h.right,bottom:h.bottom,left:h.left,width:h.width,height:h.height,x:h.x,y:h.y})}});r.onMounted(t),Xe(window,"scroll",t,!0),Xe(window,"resize",t,!0),Xe(window,"adjust",t,!0)}function Zb(a,e){const t=r.ref();return Hd(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 Xo(a,e){return e(a)}function it(a,e){if(a!=null)return e(a)}function Ub(a){return Array.isArray(a)?a:[a]}function Wb(a,e,...t){t.forEach(i=>{a[i]=e[i]})}function ei(a,e){Xe(document,"click",t=>{document.contains(t.target)&&(Ub(a).map(i=>i.value).filter(i=>!!i).some(i=>i==null?void 0:i.contains(t.target))||e())})}const Hb={},qb={class:"beak",width:"5",height:"9",viewBox:"0 0 3 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Gb(a,e){return r.openBlock(),r.createElementBlock("svg",qb,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 Yb=Yr(Hb,[["render",Gb]]),Wl=new Map,Kb={name:"PlTooltip"},$t=r.defineComponent({...Kb,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()});Wl.set(i,()=>h()),r.watch(()=>s.open,S=>{requestAnimationFrame(()=>{s.tooltipOpen=S})});let d=()=>{};const u=jd(()=>window.dispatchEvent(new CustomEvent("adjust")),1e3),p=()=>{s.open=!0;for(let[S,B]of Wl.entries())S!==i&&B()},h=()=>{s.open=!1,t("tooltip:close")},m=async()=>{l.hide||(u(),s.over=!0,d(),await Od(100),s.over&&p())},_=()=>{s.over=!1,d=Ld(()=>{s.over||h()},l.closeDelay)};r.watch(()=>l.hide,S=>{S&&h()});const C=r.ref(),T=r.ref(),L=Zb(C,r.toRef(l));return ei([C,T],()=>h()),r.onUnmounted(()=>{Wl.delete(i)}),(S,B)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(S.element),r.mergeProps(S.$attrs,{ref_key:"rootRef",ref:C,onClick:m,onMouseover:m,onMouseleave:_}),{default:r.withCtx(()=>[r.renderSlot(S.$slots,"default"),B[1]||(B[1]=r.createTextVNode()),S.$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(L))},[r.createElementVNode("div",{ref_key:"tooltip",ref:T,class:r.normalizeClass(["pl-tooltip",S.position]),onMouseover:m,onMouseleave:_},[r.createElementVNode("div",null,[r.renderSlot(S.$slots,"tooltip")]),B[0]||(B[0]=r.createTextVNode()),r.createVNode(Yb)],34)],4)):r.createCommentVNode("",!0)]),_:3})])):r.createCommentVNode("",!0)]),_:3},16))}}),Jb={},Qb={class:"inner-border"};function Xb(a,e,t,i,l,s){return r.openBlock(),r.createElementBlock("div",Qb,[r.renderSlot(a.$slots,"default")])}const e0=Yr(Jb,[["render",Xb]]),t0={key:0},r0=["tabindex","onKeydown","onClick"],n0={key:1,class:"ui-btn-group__helper"},a0={key:2,class:"ui-btn-group__error"},o0={name:"PlBtnGroup"},i0=r.defineComponent({...o0,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",t0,[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(e0,{class:"ui-btn-group__container"},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(d.value,(h,m)=>(r.openBlock(),r.createElementBlock("div",{key:m,class:r.normalizeClass(["ui-btn-group__option",{active:u.modelValue===h.value}]),tabindex:u.modelValue===h.value||u.disabled?void 0:0,onKeydown:r.withKeys(_=>l(h.value),["enter"]),onClick:_=>l(h.value)},r.toDisplayString(h.label),43,r0))),128))]),_:1}),p[2]||(p[2]=r.createTextVNode()),u.helper?(r.openBlock(),r.createElementBlock("div",n0,r.toDisplayString(u.helper),1)):u.error?(r.openBlock(),r.createElementBlock("div",a0,r.toDisplayString(u.error),1)):r.createCommentVNode("",!0)],2))}}),l0={inheritAttrs:!1},s0={class:"double-contour"};function c0(a,e,t,i,l,s){return r.openBlock(),r.createElementBlock("div",s0,[r.createElementVNode("div",r.normalizeProps(r.guardReactiveProps(a.$attrs)),[r.renderSlot(a.$slots,"default")],16)])}const Sn=Yr(l0,[["render",c0]]);function qd(a){r.onMounted(a),r.onUpdated(a)}const Hl=new WeakMap,ql=new ResizeObserver(a=>{for(const e of a)it(Hl.get(e.target),t=>t(e))});function Gd(a,e){Hl.set(a,e),ql.unobserve(a),ql.observe(a)}function Yd(a){ql.unobserve(a),Hl.delete(a)}const d0=8,Kd=4;function Jr(a,e="label"){const t=new Set;qd(()=>{it(a==null?void 0:a.value,i=>{const l=i.querySelector(e);l&&(t.add(l),Gd(l,()=>{const s=Ad(()=>l.getBoundingClientRect().width+Xo(d0,d=>Number.isNaN(d)?Kd:d+Kd));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=>Yd(i))})}function u0(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 Jd(a,e){return r.computed(()=>u0(a.value,e))}const g0=r.defineComponent({__name:"PlIcon16",props:{name:{},size:{}},setup(a){const e=a,t=r.computed(()=>e.size==="large"?"--icon-size: 24px":""),i=r.computed(()=>`icon-16 icon-${e.name}`);return(l,s)=>(r.openBlock(),r.createElementBlock("i",{style:r.normalizeStyle(t.value),class:r.normalizeClass([i.value,l.$style.icon])},null,6))}}),p0="_icon_1ugxm_2",f0={icon:p0},h0={$style:f0},Qd=Yr(g0,[["__cssModules",h0]]),m0=r.defineComponent({__name:"PlIcon24",props:{name:{},size:{}},setup(a){const e=a,t=r.computed(()=>`icon-24 icon-${e.name}`);return(i,l)=>(r.openBlock(),r.createElementBlock("i",{class:r.normalizeClass([t.value,i.$style.icon])},null,2))}}),y0="_icon_1ugxm_2",b0={icon:y0},v0={$style:b0},Xd=Yr(m0,[["__cssModules",v0]]),w0={class:"pl-text-field__envelope"},x0={key:0,ref:"label"},_0={key:0,class:"required-icon"},k0={key:1,class:"pl-text-field__prefix"},C0=["disabled","placeholder","type"],S0={class:"pl-text-field__append"},T0={key:0,class:"pl-text-field__error"},E0={key:1,class:"pl-text-field__helper"},N0={name:"PlTextField"},eu=r.defineComponent({...N0,props:{modelValue:{},label:{},clearable:{type:[Boolean,Function]},required:{type:Boolean},error:{},helper:{},placeholder:{},disabled:{type:Boolean},dashed:{type:Boolean},prefix:{},rules:{},type:{}},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.ref(!1),p=r.computed({get(){return l.modelValue??""},set(D){i("update:modelValue",D)}}),h=r.computed(()=>l.type&&l.type==="password"?u.value?"text":l.type:"text"),m=r.computed(()=>u.value?"view-on":"view-off"),_=()=>{l.clearable&&i("update:modelValue",l.clearable===!0?"":l.clearable())},C=Jd(p,l.rules||[]),T=r.computed(()=>l.clearable?l.clearable===!0?l.modelValue==="":l.modelValue===l.clearable():l.modelValue===""),L=r.computed(()=>!T.value),S=r.computed(()=>{const D=[];return l.error&&D.push(l.error),C.value.isValid||D.push(...C.value.errors),D}),B=r.computed(()=>S.value.length>0),v=r.computed(()=>l.clearable&&L.value&&l.type!=="password");Jr(s);function A(){u.value=!u.value}return(D,Z)=>(r.openBlock(),r.createElementBlock("div",w0,[r.createElementVNode("div",{ref_key:"rootRef",ref:s,class:r.normalizeClass(["pl-text-field",{error:B.value,disabled:D.disabled,dashed:D.dashed,nonEmpty:L.value}])},[D.label?(r.openBlock(),r.createElementBlock("label",x0,[D.required?(r.openBlock(),r.createElementBlock("i",_0)):r.createCommentVNode("",!0),Z[1]||(Z[1]=r.createTextVNode()),r.createElementVNode("span",null,r.toDisplayString(D.label),1),Z[2]||(Z[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(D.$slots,"tooltip")]),_:3})):r.createCommentVNode("",!0)],512)):r.createCommentVNode("",!0),Z[5]||(Z[5]=r.createTextVNode()),D.prefix?(r.openBlock(),r.createElementBlock("div",k0,r.toDisplayString(D.prefix),1)):r.createCommentVNode("",!0),Z[6]||(Z[6]=r.createTextVNode()),r.withDirectives(r.createElementVNode("input",{ref_key:"inputRef",ref:d,"onUpdate:modelValue":Z[0]||(Z[0]=G=>p.value=G),disabled:D.disabled,placeholder:D.placeholder||"...",type:h.value,spellcheck:"false"},null,8,C0),[[r.vModelDynamic,p.value]]),Z[7]||(Z[7]=r.createTextVNode()),r.createElementVNode("div",S0,[v.value?(r.openBlock(),r.createBlock(r.unref(Qd),{key:0,name:"delete-clear",onClick:_})):r.createCommentVNode("",!0),Z[3]||(Z[3]=r.createTextVNode()),D.type==="password"?(r.openBlock(),r.createBlock(r.unref(Xd),{key:1,name:m.value,style:{cursor:"pointer"},onClick:A},null,8,["name"])):r.createCommentVNode("",!0),Z[4]||(Z[4]=r.createTextVNode()),r.renderSlot(D.$slots,"append")]),Z[8]||(Z[8]=r.createTextVNode()),r.createVNode(Sn,{class:"pl-text-field__contour"})],2),Z[9]||(Z[9]=r.createTextVNode()),B.value?(r.openBlock(),r.createElementBlock("div",T0,r.toDisplayString(S.value.join(" ")),1)):D.helper?(r.openBlock(),r.createElementBlock("div",E0,r.toDisplayString(D.helper),1)):r.createCommentVNode("",!0)]))}}),B0={class:"ui-text-area__envelope"},V0={key:0,ref:"label"},M0={key:0,class:"required-icon"},z0=["readonly","rows","disabled","placeholder"],A0={class:"ui-text-area__append"},O0={key:0,class:"ui-text-area__error"},L0={key:1,class:"ui-text-area__helper"},D0={name:"PlTextArea"},I0=r.defineComponent({...D0,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(T){i("update:modelValue",T)}}),p=r.computed(()=>!!l.modelValue),h=Jd(u,l.rules||[]);Jr(s);const m=r.computed(()=>{const T=[];return l.error&&T.push(l.error),T.push(...h.value.errors),T}),_=r.computed(()=>m.value.length>0),C=()=>{if(!l.autogrow)return;const T=d.value;T&&(T.style.height="auto",T.style.height=`${T.scrollHeight}px`)};return r.onMounted(()=>{C()}),(T,L)=>(r.openBlock(),r.createElementBlock("div",B0,[r.createElementVNode("div",{ref_key:"root",ref:s,class:r.normalizeClass(["ui-text-area",{error:_.value,disabled:T.disabled,dashed:T.dashed,nonEmpty:p.value}])},[T.label?(r.openBlock(),r.createElementBlock("label",V0,[T.required?(r.openBlock(),r.createElementBlock("i",M0)):r.createCommentVNode("",!0),L[1]||(L[1]=r.createTextVNode()),r.createElementVNode("span",null,r.toDisplayString(T.label),1),L[2]||(L[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(T.$slots,"tooltip")]),_:3})):r.createCommentVNode("",!0)],512)):r.createCommentVNode("",!0),L[3]||(L[3]=r.createTextVNode()),r.withDirectives(r.createElementVNode("textarea",{ref_key:"input",ref:d,"onUpdate:modelValue":L[0]||(L[0]=S=>u.value=S),readonly:T.readonly,rows:T.rows,disabled:T.disabled,placeholder:T.placeholder??"...",spellcheck:"false",onInput:C},null,40,z0),[[r.vModelText,u.value]]),L[4]||(L[4]=r.createTextVNode()),r.createElementVNode("div",A0,[r.renderSlot(T.$slots,"append")]),L[5]||(L[5]=r.createTextVNode()),r.createVNode(Sn,{class:"ui-text-area__contour"})],2),L[6]||(L[6]=r.createTextVNode()),_.value?(r.openBlock(),r.createElementBlock("div",O0,r.toDisplayString(m.value.join(" ")),1)):T.helper?(r.openBlock(),r.createElementBlock("div",L0,r.toDisplayString(T.helper),1)):r.createCommentVNode("",!0)]))}});function tu(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 ru(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 ti(a,e,t={}){const i=a.scrollTop,l=a.getBoundingClientRect().height,s=e.getBoundingClientRect().height,d=e.offsetTop,u=ru(a,e);if(u==="visible")return;const p=h=>{const m=u==="floor"?d-(l-s):d;a.scrollTop=i+h*(m-i)};tu(a,e)||Rd({duration:t.duration||100,timing:Id(h=>h),draw:p})}function Gl(a,e,t,i){return a.addEventListener(e,t,i),function(){a.removeEventListener(e,t)}}function R0(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 nu(a){return a!==null&&typeof a=="object"}function tr(a,e){return nu(a)&&nu(e)?Object.keys(a).length!==Object.keys(e).length?!1:Object.keys(a).every(t=>tr(a[t],e[t])):a===e}function Yl(a,e){return a.some(t=>tr(t,e))}const P0=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
17
|
+
`}return e},vm=(a,e)=>{const t=vd[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>"},wm=(a={})=>Ua("iconSet","quartz").withCSS(()=>bm(a)),xm=":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)}",_m=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(xm),km=ld(_m,"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"}}}),Cm='.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)}}}',Sm=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(Cm),Tm=ld(Sm,"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"}}),Em=a=>om(a).withPart(hm),Nm=Em("quartz").withPart(mm).withPart(wm).withPart(Tm).withPart(()=>km).withParams({fontFamily:[{googleFont:"IBM Plex Sans"},"-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu"]});function wd(){Jt.ModuleRegistry.registerModules([Ro.ClientSideRowModelModule,xf.InfiniteRowModelModule,Fc.ServerSideRowModelModule,_f.CsvExportModule,$c.ClipboardModule,Zc.RangeSelectionModule,kf.RichSelectModule,Cf.MenuModule,Sf.ExcelExportModule]);const a=Uh("AGGRID_LICENSE");a?(Qe.LicenseManager.setLicenseKey(a),console.log("AG Grid Activated")):console.log("AG Grid License not found")}const xd=Nm.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"}),_d=Symbol("sdk-vue");function Vl(){return r.inject(_d)}function Bm(a,e){let t;wd();const i=()=>{a.loadBlockState().then(s=>{l.loaded=!0;const d=If(s,a),u=e(d),p=Object.fromEntries(Object.entries(u.routes).map(([h,m])=>{const _=typeof m=="function"?m():m;return[h,r.markRaw(_)]}));t=Object.assign(d,{...u,getRoute(h){return p[h]}})}).catch(s=>{console.error("load initial state error",s),l.error=s})},l=r.reactive({loaded:!1,error:void 0,useApp(){return Ef(t,"App is not loaded")},install(s){s.provide(_d,this),i()}});return l}var Vm=Object.defineProperty,Mm=(a,e,t)=>e in a?Vm(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,zm=(a,e,t)=>Mm(a,e+"",t);function kd(a,e){if(a==null)throw Error("Empty (null | undefined) value");return a}function Am(a,e,t){const i=Math.min(e,t),l=Math.max(e,t);return a>=i&&a<=l}function Om(a){return new Promise(e=>setTimeout(e,a))}function Lm(a){return a()}function Ko(a,e,t){return e>a?e:a>t?t:a}function Cd(a,e){return e(a)}function Cn(a,e){if(a!=null)return e(a)}function Dm(a){if(a&&a.ok)return a.value}async function Im(a){return Object.fromEntries(await Promise.all(Object.entries(a).map(async([e,t])=>[e,await t])))}const Sd=a=>a;function Rm(a,e){return a=Math.ceil(a),e=Math.floor(e),Math.floor(Math.random()*(e-a))+a}function Pm(a){let e="";for(let t=0;t<a;t++)e+=String.fromCharCode(Rm(65,91));return e}function jm(){return Pm(42)}function Wa(a){return a!==null&&typeof a=="object"}function Fm(a,e){return Object.keys(a).map(t=>e(a[t],t))}function Ml(a,e){return Wa(a)&&Wa(e)?Object.keys(a).length!==Object.keys(e).length?!1:Object.keys(a).every(t=>Ml(a[t],e[t])):a===e}function Ha(a){if(Array.isArray(a)){const e=[];for(let t=0;t<a.length;t++)e[t]=Ha(a[t]);return e}else if(Wa(a)){const e={};return Object.keys(a).forEach(t=>{e[t]=Ha(a[t])}),e}else return a}function $m(a){return Array.isArray(a)?Object.assign([],a):Wa(a)?Object.assign({},a):a}function Zm(a,e){const t={};for(const i in e)e[i]!==a[i]&&(t[i]=a[i]);return t}function Um(a,e,t){return Object.assign({},a,{[e]:t})}function Wm(a){return Object.entries(a).forEach(([e,t])=>{t instanceof Function&&(a[e]=t.bind(a))}),a}function Hm(a,e,t){return a[e]=t,a}function qm(a,e){return a[e]}function Gm(a,e){a={...a};const t=a[e];return delete a[e],[t,a]}function Ym(a,...e){return Object.assign({},...e.map(t=>({[t]:a[t]})))}function Km(a,...e){return e.map(t=>a[t])}function Jm(a,...e){const t=Object.assign({},a);return e.forEach(i=>delete t[i]),t}const zl=Object.freeze(Object.defineProperty({__proto__:null,bindMethods:Wm,deepClone:Ha,deepEqual:Ml,getProp:qm,iSet:Um,isObject:Wa,map:Fm,omit:Jm,pick:Ym,pickValues:Km,setProp:Hm,shallowClone:$m,shallowDiff:Zm,shiftProp:Gm},Symbol.toStringTag,{value:"Module"}));function Qm(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 Td(a,e,t){let i;return function(...l){i&&clearTimeout(i),i=setTimeout(()=>{i=void 0,a.apply(this,l)},e)}}const Xm=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],ey=["B","kiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],ty=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],ry=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],Ed=(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 Al(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?ry:ty:e.binary?ey:Xm;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=Ed(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=Ed(Number(a),e.locale),u=t[s];return l+d+" "+u}const ny={class:"context-menu"},ay=["onClick"],oy=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",ny,[(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,ay))),128))]))}}),Yr=(a,e)=>{const t=a.__vccOpts||a;for(const[i,l]of e)t[i]=l;return t},iy=Yr(oy,[["__scopeId","data-v-12530966"]]);function Ol(a,e){a.preventDefault();const t=()=>{r.render(null,document.body)},i=r.h(iy,{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 Nd=Symbol(),Jo=()=>r.inject(Nd),ly=["value"],sy={key:1},cy=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=h=>{var m;let _=(m=h.target)==null?void 0:m.value;const C=r.unref(s),T=Lm(()=>C==="integer"?parseInt(_,10):C==="float"?Number(_):_);t("update:modelValue",T),l.edit=!1},u=r.ref(),p=h=>{!h.metaKey&&i.editable&&(l.edit=!0,requestAnimationFrame(()=>{var m,_;(_=(m=u.value)==null?void 0:m.querySelector("input"))==null||_.focus()}))};return(h,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:h.modelValue,onFocusout:m[0]||(m[0]=_=>l.edit=!1),onChange:d},null,40,ly)):(r.openBlock(),r.createElementBlock("div",sy,r.toDisplayString(h.modelValue),1))],2))}}),dy=["^data-row-index"],uy={key:0,class:"control-cell"},gy=r.defineComponent({__name:"TdCell",props:{cell:{}},setup(a){const e=a,t=Jo(),i=r.computed(()=>e.cell.column.valueType),l=h=>{Cn(t.settings.value.onUpdatedRow,m=>{const _=e.cell.row,C={..._.dataRow,[e.cell.id]:h};m({..._,dataRow:C})})},s=h=>{h.metaKey&&t.selectRow(e.cell.row.primaryKey)},d=(h,m)=>{if(h.type==="contextmenu")h.preventDefault();else return;const _=t.settings??{},C=[],{onSelectedRows:T,onSelectedColumns:L}=_.value,S=t.data.selectedRows.has(m.primaryKey);T&&T.length&&(S?C.push({text:"Deselect row",cb(){t.data.selectedRows.delete(e.cell.row.primaryKey)}}):C.push({text:"Select row",cb(){t.selectRow(e.cell.row.primaryKey)}})),L&&L.length&&(C.push({text:"Select column",cb(){t.selectColumn(e.cell.column.id)}}),C.push({text:"Unselect column",cb(){t.unselectColumn(e.cell.column.id)}})),C.length&&Ol(h,C)},u=r.ref(),p=r.computed(()=>e.cell.column.component?e.cell.column.component():void 0);return(h,m)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"cellRef",ref:u,class:r.normalizeClass(["td-cell",{[h.cell.class]:!0}]),"^data-row-index":h.cell.row.index,onClick:s,onContextmenu:m[0]||(m[0]=_=>d(_,h.cell.row))},[h.cell.control?(r.openBlock(),r.createElementBlock("div",uy,r.toDisplayString(h.cell.row.index),1)):p.value?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(p.value),{key:1,"model-value":h.cell.value,"onUpdate:modelValue":l},null,8,["model-value"])):(r.openBlock(),r.createBlock(cy,{key:2,"model-value":h.cell.value,"value-type":i.value,editable:h.cell.column.editable,"onUpdate:modelValue":l},null,8,["model-value","value-type","editable"]))],42,dy))}}),py={},fy={width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function hy(a,e){return r.openBlock(),r.createElementBlock("svg",fy,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 my=Yr(py,[["render",hy]]),yy={class:"tr-head"},by=r.defineComponent({__name:"TrHead",setup(a){return(e,t)=>(r.openBlock(),r.createElementBlock("div",yy,[r.renderSlot(e.$slots,"default")]))}});function vy(a,e){const t=e.indexOf(a)+1;return e[t>=e.length?0:t]}function wy(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 xy=["^data-col-id"],_y=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&&Ol(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:vy(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,xy))}}),ky=r.defineComponent({__name:"TrBody",props:{row:{}},setup(a){const e=r.ref(),t=()=>{r.nextTick().then(()=>{Cn(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))}}),Cy=r.defineComponent({__name:"ColumnCaret",props:{column:{}},setup(a){const e=Jo(),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 Xe(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 Sy(a){r.onMounted(()=>window.addEventListener("mouseup",a)),r.onUnmounted(()=>window.removeEventListener("mouseup",a))}function Ty(a){let e=!1;return function(...t){e?console.log("handle pressure"):(requestAnimationFrame(()=>{a(...t),e=!1}),e=!0)}}function Ey(a,e){let t;function i(s){t={...s}}Sy(()=>{t=void 0,e()});const l=Ty(a);return Xe(window,"mousemove",s=>{t&&l({x:t.x,width:t.width,diff:s.x-t.x})}),{start:i}}const Jn=1,Ny=10,By=30,Bd=60;function Vd(){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 Md(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&&(Xe(a,"mouseenter",()=>d(!0)),Xe(a,"mouseleave",()=>d(!1))),l}function Vy(a){var e;const t=Cn((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 Sd({colId:d,width:l,x:s,right:s+l})}).slice(0,t.length-1)}function My(a,e){const t=Vd(),i=Md(e,{}),{data:l}=a,s=Ey(u=>{Cn(l.resizeTh,p=>{const h=l.columns.find(m=>m.id===p.colId);h&&(h.width=Ko(u.width+u.diff,By,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=Vy(e).find(p=>Math.abs(t.x-p.right)<Ny);u?(document.body.style.cursor="col-resize",l.resizeTh=u):(l.resizeTh=void 0,document.body.style.cursor="")}),{mouseDown:d}}const zy={key:0,class:"command-menu"},Ay={key:0},Oy=["onClick"],Ly=r.defineComponent({__name:"RowsCommandMenu",setup(a){const e=Jo(),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",zy,[t.value.length?(r.openBlock(),r.createElementBlock("span",Ay,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,h)=>(r.openBlock(),r.createElementBlock("span",{key:h,class:"command",onClick:r.withModifiers(p.cb,["stop"])},r.toDisplayString(p.label),9,Oy))),128))])):r.createCommentVNode("",!0)}}),Dy={key:0,class:"command-menu"},Iy={key:0},Ry=["onClick"],Py=r.defineComponent({__name:"ColumnsCommandMenu",setup(a){const e=Jo(),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",Dy,[t.value.length?(r.openBlock(),r.createElementBlock("span",Iy,"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,h)=>(r.openBlock(),r.createElementBlock("span",{key:h,class:"command",onClick:r.withModifiers(p.cb,["stop"])},r.toDisplayString(p.label),9,Ry))),128))])):r.createCommentVNode("",!0)}});function Kr(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});Xe(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)}),Xe(document,"mouseup",l=>{t.el&&(t.el=void 0,e({...i(l),stop:!0},t))}),Xe(document,"mousemove",l=>{t.el&&e(i(l),t)})}const jy=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)),h=r.computed(()=>({top:`${u.value}px`,height:`${p.value}px`}));return Kr(l,(m,_)=>{const C=(u.value+m.dy)*i.dataSize/s.value;t("change:offset",C),_.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(h.value)},null,4)):r.createCommentVNode("",!0)])],4))}});function Fy(a){return r.computed(()=>{const{data:e,settings:t}=a,{bodyWidth:i,scrollLeft:l}=e,s=[...e.columns],d=jm();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,_}),h=p.filter(m=>m.frozen);return Qm(p,m=>m.frozen?!1:l<m.offset+m.width&&m.offset<i+l).concat(h).map(m=>({...m,style:{left:m.frozen?`${m.offset}px`:`${m.offset-e.scrollLeft}px`,width:`${m.width}px`},control:m.id===d}))})}function $y(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,h=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 Sd({style:{top:`${d-a.scrollTop}px`,height:`${i.height}px`},primaryKey:s,offset:d,height:p,cells:h,selected:a.selectedRows.has(s)})}))}const Zy=async(a,e)=>{const{scrollTop:t,bodyHeight:i}=a;return await Om(0),Im({rows:e.getRows(t,i),dataWindow:a})};function Uy(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=Ha(m.columns),e.currentWindow=void 0,m.dataSource.getHeight().then(_=>{e.dataHeight=_,h.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(()=>Cd(h.data.dataHeight-h.data.bodyHeight,m=>m>0?m:0)),s=r.computed(()=>Cd(i.value-h.data.bodyWidth,m=>m>0?m:0)),d=r.computed(()=>({bodyHeight:e.bodyHeight,scrollTop:e.scrollTop,current:e.currentWindow})),u=Fy({data:e,settings:t}),p=$y(e,u),h={data:e,settings:t,tableColumns:u,tableRows:p,adjustWidth:()=>{const m=e.columns.reduce((C,T)=>C+T.width+Jn,0),_=e.bodyWidth+e.scrollLeft;if(m<_){const C=e.columns[e.columns.length-1];C.width=C.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=Ko(m,0,l.value)},updateScrollLeft(m){e.scrollLeft=Ko(m,0,s.value)},updateBodyHeight(){const{height:m}=a.settings,{dataHeight:_}=e,C=m>_?_:m;e.bodyHeight=C},updateDimensions(m){this.updateBodyHeight(),h.data.bodyWidth=m.width,h.adjustWidth(),e.rows=[],e.currentWindow=void 0}};return r.watch(d,(m,_)=>{const C=m.current;(!C||m.scrollTop<C.scrollTop||m.scrollTop+m.bodyHeight>C.bodyHeight+C.scrollTop)&&(e.currentWindow={scrollTop:m.scrollTop-Bd,bodyHeight:m.bodyHeight+Bd*2},Zy(Ha(e.currentWindow),t.value.dataSource).then(({rows:T,dataWindow:L})=>{Ml(e.currentWindow,L)&&(e.rows=T)}))},{deep:!0,immediate:!0}),r.provide(Nd,h),h}const Wy={class:"command-menu__container"},Hy={key:0,class:"table-body__no-data"},qy={class:"carets"},Ll=r.defineComponent({__name:"TableComponent",props:{settings:{}},emits:["update:data","change:sort"],setup(a,{emit:e}){const t=e,i=a,l=Uy(i),s=r.computed(()=>l.data.rows.length===0),d=r.computed(()=>({height:s.value?"212px":l.data.bodyHeight+"px"}));r.watch(l.data,S=>t("update:data",S),{deep:!0}),r.watch(i,()=>m);const u=r.ref(),p=r.ref(),h=r.ref(),m=()=>{Cn(h.value,S=>{l.updateDimensions(S.getBoundingClientRect())})},_=l.tableColumns,C=l.tableRows,{mouseDown:T}=My(l,u);r.onMounted(()=>{r.nextTick(m)}),r.watchPostEffect(()=>{r.unref(i.settings),r.nextTick(m)}),Xe(window,"resize",()=>r.nextTick(m));const L=S=>{S.preventDefault(),l.updateOffsets(S)};return(S,B)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"tableRef",ref:u,class:"data-table",onMousedown:B[2]||(B[2]=(...v)=>r.unref(T)&&r.unref(T)(...v))},[r.createElementVNode("div",Wy,[r.createVNode(Ly),B[3]||(B[3]=r.createTextVNode()),r.createVNode(Py)]),B[7]||(B[7]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"headRef",ref:p,class:"table-head"},[r.createVNode(by,null,{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(_),(v,A)=>(r.openBlock(),r.createBlock(_y,{key:A,col:v,style:r.normalizeStyle(v.style),"onChange:sort":B[0]||(B[0]=D=>S.$emit("change:sort",D))},null,8,["col","style"]))),128))]),_:1})],512),B[8]||(B[8]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"bodyRef",ref:h,class:"table-body",style:r.normalizeStyle(d.value),onWheel:L},[s.value?(r.openBlock(),r.createElementBlock("div",Hy,[r.createElementVNode("div",null,[r.createVNode(my),B[4]||(B[4]=r.createTextVNode()),B[5]||(B[5]=r.createElementVNode("div",null,"No Data To Show",-1))])])):r.createCommentVNode("",!0),B[6]||(B[6]=r.createTextVNode()),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(C),(v,A)=>(r.openBlock(),r.createBlock(ky,{key:A,row:v},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(v.cells,D=>(r.openBlock(),r.createBlock(gy,{key:D.column.id+":"+A,cell:D,style:r.normalizeStyle(D.style)},null,8,["cell","style"]))),128))]),_:2},1032,["row"]))),128))],36),B[9]||(B[9]=r.createTextVNode()),r.createElementVNode("div",qy,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(_),(v,A)=>(r.openBlock(),r.createBlock(Cy,{key:A,column:v,style:r.normalizeStyle(v.style),"onChange:sort":B[1]||(B[1]=D=>S.$emit("change:sort",D))},null,8,["column","style"]))),128))]),B[10]||(B[10]=r.createTextVNode()),r.createVNode(jy,{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))}}),zd=new WeakMap;class Gy{constructor(e,t,i){zm(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:kd(l.indices.get(u)),height:this.resolveHeight(d,u)}));zd.set(this,s)}get rows(){return zd.get(this)}async getHeight(){return this.dataHeight}async getRows(e,t){return wy(this.rows,i=>{const l=i.offset;return e<l+i.height&&l<t+e})}}class Yy{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=Ko(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 Ky(a){return Object.freeze(a)}function Jy(a){return r.h(Ll,{settings:Object.freeze(a)})}function Dl(a,e){const t=new Gy(a,e.resolveRowHeight,e.resolvePrimaryKey);return{...e,dataSource:t}}function Qy(a,e){return r.computed(()=>{const t=r.unref(a);return Dl(t,r.unref(e))})}function Xy(a,e){const t=r.computed(()=>{const l=r.unref(a);return Dl(l,r.unref(e))}),i=r.reactive({settings:t});return r.computed(()=>r.h(Ll,i))}const eb=Object.freeze(Object.defineProperty({__proto__:null,AsyncData:Yy,Component:Ll,factory:Jy,rawDataSettings:Dl,settings:Ky,useRawData:Qy,useRawDataComponent:Xy},Symbol.toStringTag,{value:"Module"}));function*tb(a,e){for(const t of a)yield e(t)}function rb(a){const e=[];for(const t of a)e.push(t);return e}function Ad(a){return a()}function Il(a,e){if(a==null)throw Error(e);return a}function Rl(a){let e=!1;return function(...t){e||(requestAnimationFrame(()=>{a(...t),e=!1}),e=!0)}}function Od(a){return new Promise(e=>setTimeout(e,a))}function Ld(a,e){const t=setTimeout(a,e);return()=>{clearTimeout(t)}}function Dd(a,e){return a=Math.ceil(a),e=Math.floor(e),Math.floor(Math.random()*(e-a))+a}function nb(a){let e="";for(let t=0;t<a;t++)e+=String.fromCharCode(Dd(65,91));return e}function Id(a){return function(e){return 1-a(1-e)}}function ab(a){return function(e){return e<.5?a(2*e)/2:(2-a(2*(1-e)))/2}}function Rd(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 h=i(p);t(h),p<1&&requestAnimationFrame(d)}),function(){s=!0}}function ob(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 h=i(p);t(h),p<1&&requestAnimationFrame(d)}),function(){s=!0}}function Pd(a,e){let t=-1;return(...i)=>{t!==-1&&(clearTimeout(t),t=-1),t=window.setTimeout(()=>a(...i),e)}}function jd(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 ib(a){return a.map(e=>({text:String(e),value:e}))}function Qn(a){return a.map(e=>({label:"label"in e?e.label:e.text,value:e.value,description:e.description}))}const Pl=new Map;function lb(a){return Pl.has(a)||Pl.set(a,r.ref(localStorage.getItem(a))),Il(Pl.get(a),"...")}function sb(a,e){e==null?localStorage.removeItem(a):localStorage.setItem(a,e)}function Fd(a){const e=lb(a);return r.watch(e,t=>sb(a,t)),e}const jl=new Set;window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",a=>{rb(tb(jl.values(),e=>e(a.matches?"dark":"light")))});const cb=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",$d=r.ref(cb),Fl=Fd("theme");function Zd(a){const e=r.computed(()=>Fl.value?Fl.value:$d.value),t=l=>{$d.value=l,a&&a(l)};function i(){Fl.value=e.value==="light"?"dark":(e.value,"light")}return r.watch(e,l=>{a&&a(r.unref(l))}),r.onMounted(()=>{jl.add(t)}),r.onUnmounted(()=>{jl.delete(t)}),[e,i]}const db=r.defineComponent({__name:"ThemeSwitcher",setup(a){const[e,t]=Zd();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))}}),ub={class:"pl-layout-component pl-block-page"},gb={key:0,class:"pl-block-page__title"},pb={class:"pl-block-page__title__append"},fb={key:1},hb={class:"pl-block-page__body"},mb={name:"PlBlockPage"},yb=r.defineComponent({...mb,setup(a){const e=r.useSlots();return(t,i)=>(r.openBlock(),r.createElementBlock("div",ub,[r.unref(e).title?(r.openBlock(),r.createElementBlock("div",gb,[r.createElementVNode("h1",null,[r.renderSlot(t.$slots,"title")]),i[0]||(i[0]=r.createTextVNode()),r.createElementVNode("div",pb,[r.renderSlot(t.$slots,"append")])])):(r.openBlock(),r.createElementBlock("div",fb)),i[1]||(i[1]=r.createTextVNode()),r.createElementVNode("div",hb,[r.renderSlot(t.$slots,"default")])]))}}),bb={name:"PlContainer"},vb=r.defineComponent({...bb,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))}}),wb={name:"PlRow"},xb=r.defineComponent({...wb,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))}}),_b={class:"pl-layout-component",style:{"flex-grow":"1"}},kb={name:"PlSpacer"},Ud=r.defineComponent({...kb,setup(a){return(e,t)=>(r.openBlock(),r.createElementBlock("div",_b))}}),Cb={name:"PlGrid"},Sb=r.defineComponent({...Cb,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))}}),Tb={key:0,class:"pl-alert__icon"},Eb={class:"pl-alert__main"},Nb={key:0},Bb={class:"pl-alert__main__text"},Vb={name:"PlAlert"},Mb=r.defineComponent({...Vb,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",Tb,[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",Eb,[t.label?(r.openBlock(),r.createElementBlock("label",Nb,r.toDisplayString(t.label),1)):r.createCommentVNode("",!0),i[1]||(i[1]=r.createTextVNode()),r.createElementVNode("div",Bb,[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)}}),qa=r.defineComponent({__name:"PlMaskIcon16",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 Wd(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 zb={key:0},Ab={inheritAttrs:!1},Qo=r.defineComponent({...Ab,__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 Wd(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",zb,[r.renderSlot(s.$slots,"default")])),d[0]||(d[0]=r.createTextVNode()),s.loading?(r.openBlock(),r.createBlock(r.unref(qa),{key:1,name:"loading",size:s.size},null,8,["size"])):s.icon?(r.openBlock(),r.createBlock(r.unref(qa),{key:2,name:s.icon,size:s.size},null,8,["name","size"])):r.createCommentVNode("",!0)],16))}}),Ob={name:"PlBtnPrimary"},$l=r.defineComponent({...Ob,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(Qo,r.mergeProps({class:"pl-btn-primary"},e),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),Lb={name:"PlBtnAccent"},Db=r.defineComponent({...Lb,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(Qo,r.mergeProps({class:"pl-btn-accent"},e),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),Ib={name:"PlBtnDanger"},Rb=r.defineComponent({...Ib,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(Qo,r.mergeProps({class:"pl-btn-danger"},e),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),Pb={name:"PlBtnSecondary"},Zl=r.defineComponent({...Pb,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(Qo,r.mergeProps(e,{class:"pl-btn-secondary"}),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),jb={key:0},Fb={name:"PlBtnGhost"},Ul=r.defineComponent({...Fb,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 Wd(l),(d,u)=>(r.openBlock(),r.createElementBlock("button",r.mergeProps({ref_key:"btnRef",ref:l,tabindex:"0",class:["pl-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",jb,[r.renderSlot(d.$slots,"default")])):r.createCommentVNode("",!0),u[0]||(u[0]=r.createTextVNode()),d.loading?(r.openBlock(),r.createBlock(r.unref(qa),{key:1,name:"loading",size:d.size},null,8,["size"])):d.icon?(r.openBlock(),r.createBlock(r.unref(qa),{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))}}),$b=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(Zl,r.mergeProps({round:"",hover:t.value},e),null,16,["hover"]),l[2]||(l[2]=r.createTextVNode()),r.renderSlot(i.$slots,"default")],34))}});function Hd(a,e){const t=Rl(()=>{if(a.value){const{scrollTop:i,scrollLeft:l,scrollHeight:s,scrollWidth:d,clientHeight:u,clientWidth:p}=document.documentElement,h=a.value.getBoundingClientRect();e({scrollTop:i,scrollLeft:l,scrollHeight:s,scrollWidth:d,clientHeight:u,clientWidth:p,offsetY:i+h.y,offsetX:l+h.x,top:h.top,right:h.right,bottom:h.bottom,left:h.left,width:h.width,height:h.height,x:h.x,y:h.y})}});r.onMounted(t),Xe(window,"scroll",t,!0),Xe(window,"resize",t,!0),Xe(window,"adjust",t,!0)}function Zb(a,e){const t=r.ref();return Hd(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 Xo(a,e){return e(a)}function it(a,e){if(a!=null)return e(a)}function Ub(a){return Array.isArray(a)?a:[a]}function Wb(a,e,...t){t.forEach(i=>{a[i]=e[i]})}function ei(a,e){Xe(document,"click",t=>{document.contains(t.target)&&(Ub(a).map(i=>i.value).filter(i=>!!i).some(i=>i==null?void 0:i.contains(t.target))||e())})}const Hb={},qb={class:"beak",width:"5",height:"9",viewBox:"0 0 3 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Gb(a,e){return r.openBlock(),r.createElementBlock("svg",qb,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 Yb=Yr(Hb,[["render",Gb]]),Wl=new Map,Kb={name:"PlTooltip"},$t=r.defineComponent({...Kb,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()});Wl.set(i,()=>h()),r.watch(()=>s.open,S=>{requestAnimationFrame(()=>{s.tooltipOpen=S})});let d=()=>{};const u=jd(()=>window.dispatchEvent(new CustomEvent("adjust")),1e3),p=()=>{s.open=!0;for(let[S,B]of Wl.entries())S!==i&&B()},h=()=>{s.open=!1,t("tooltip:close")},m=async()=>{l.hide||(u(),s.over=!0,d(),await Od(100),s.over&&p())},_=()=>{s.over=!1,d=Ld(()=>{s.over||h()},l.closeDelay)};r.watch(()=>l.hide,S=>{S&&h()});const C=r.ref(),T=r.ref(),L=Zb(C,r.toRef(l));return ei([C,T],()=>h()),r.onUnmounted(()=>{Wl.delete(i)}),(S,B)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(S.element),r.mergeProps(S.$attrs,{ref_key:"rootRef",ref:C,onClick:m,onMouseover:m,onMouseleave:_}),{default:r.withCtx(()=>[r.renderSlot(S.$slots,"default"),B[1]||(B[1]=r.createTextVNode()),S.$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(L))},[r.createElementVNode("div",{ref_key:"tooltip",ref:T,class:r.normalizeClass(["pl-tooltip",S.position]),onMouseover:m,onMouseleave:_},[r.createElementVNode("div",null,[r.renderSlot(S.$slots,"tooltip")]),B[0]||(B[0]=r.createTextVNode()),r.createVNode(Yb)],34)],4)):r.createCommentVNode("",!0)]),_:3})])):r.createCommentVNode("",!0)]),_:3},16))}}),Jb={},Qb={class:"inner-border"};function Xb(a,e,t,i,l,s){return r.openBlock(),r.createElementBlock("div",Qb,[r.renderSlot(a.$slots,"default")])}const e0=Yr(Jb,[["render",Xb]]),t0={key:0},r0=["tabindex","onKeydown","onClick"],n0={key:1,class:"ui-btn-group__helper"},a0={key:2,class:"ui-btn-group__error"},o0={name:"PlBtnGroup"},i0=r.defineComponent({...o0,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",t0,[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(e0,{class:"ui-btn-group__container"},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(d.value,(h,m)=>(r.openBlock(),r.createElementBlock("div",{key:m,class:r.normalizeClass(["ui-btn-group__option text-s",{active:u.modelValue===h.value}]),tabindex:u.modelValue===h.value||u.disabled?void 0:0,onKeydown:r.withKeys(_=>l(h.value),["enter"]),onClick:_=>l(h.value)},r.toDisplayString(h.label),43,r0))),128))]),_:1}),p[2]||(p[2]=r.createTextVNode()),u.helper?(r.openBlock(),r.createElementBlock("div",n0,r.toDisplayString(u.helper),1)):u.error?(r.openBlock(),r.createElementBlock("div",a0,r.toDisplayString(u.error),1)):r.createCommentVNode("",!0)],2))}}),l0={inheritAttrs:!1},s0={class:"double-contour"};function c0(a,e,t,i,l,s){return r.openBlock(),r.createElementBlock("div",s0,[r.createElementVNode("div",r.normalizeProps(r.guardReactiveProps(a.$attrs)),[r.renderSlot(a.$slots,"default")],16)])}const Sn=Yr(l0,[["render",c0]]);function qd(a){r.onMounted(a),r.onUpdated(a)}const Hl=new WeakMap,ql=new ResizeObserver(a=>{for(const e of a)it(Hl.get(e.target),t=>t(e))});function Gd(a,e){Hl.set(a,e),ql.unobserve(a),ql.observe(a)}function Yd(a){ql.unobserve(a),Hl.delete(a)}const d0=8,Kd=4;function Jr(a,e="label"){const t=new Set;qd(()=>{it(a==null?void 0:a.value,i=>{const l=i.querySelector(e);l&&(t.add(l),Gd(l,()=>{const s=Ad(()=>l.getBoundingClientRect().width+Xo(d0,d=>Number.isNaN(d)?Kd:d+Kd));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=>Yd(i))})}function u0(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 Jd(a,e){return r.computed(()=>u0(a.value,e))}const g0=r.defineComponent({__name:"PlIcon16",props:{name:{},size:{}},setup(a){const e=a,t=r.computed(()=>e.size==="large"?"--icon-size: 24px":""),i=r.computed(()=>`icon-16 icon-${e.name}`);return(l,s)=>(r.openBlock(),r.createElementBlock("i",{style:r.normalizeStyle(t.value),class:r.normalizeClass([i.value,l.$style.icon])},null,6))}}),p0="_icon_1ugxm_2",f0={icon:p0},h0={$style:f0},Qd=Yr(g0,[["__cssModules",h0]]),m0=r.defineComponent({__name:"PlIcon24",props:{name:{},size:{}},setup(a){const e=a,t=r.computed(()=>`icon-24 icon-${e.name}`);return(i,l)=>(r.openBlock(),r.createElementBlock("i",{class:r.normalizeClass([t.value,i.$style.icon])},null,2))}}),y0="_icon_1ugxm_2",b0={icon:y0},v0={$style:b0},Xd=Yr(m0,[["__cssModules",v0]]),w0={class:"pl-text-field__envelope"},x0={key:0,ref:"label"},_0={key:0,class:"required-icon"},k0={key:1,class:"pl-text-field__prefix"},C0=["disabled","placeholder","type"],S0={class:"pl-text-field__append"},T0={key:0,class:"pl-text-field__error"},E0={key:1,class:"pl-text-field__helper"},N0={name:"PlTextField"},eu=r.defineComponent({...N0,props:{modelValue:{},label:{},clearable:{type:[Boolean,Function]},required:{type:Boolean},error:{},helper:{},placeholder:{},disabled:{type:Boolean},dashed:{type:Boolean},prefix:{},rules:{},type:{}},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.ref(!1),p=r.computed({get(){return l.modelValue??""},set(D){i("update:modelValue",D)}}),h=r.computed(()=>l.type&&l.type==="password"?u.value?"text":l.type:"text"),m=r.computed(()=>u.value?"view-on":"view-off"),_=()=>{l.clearable&&i("update:modelValue",l.clearable===!0?"":l.clearable())},C=Jd(p,l.rules||[]),T=r.computed(()=>l.clearable?l.clearable===!0?l.modelValue==="":l.modelValue===l.clearable():l.modelValue===""),L=r.computed(()=>!T.value),S=r.computed(()=>{const D=[];return l.error&&D.push(l.error),C.value.isValid||D.push(...C.value.errors),D}),B=r.computed(()=>S.value.length>0),v=r.computed(()=>l.clearable&&L.value&&l.type!=="password");Jr(s);function A(){u.value=!u.value}return(D,Z)=>(r.openBlock(),r.createElementBlock("div",w0,[r.createElementVNode("div",{ref_key:"rootRef",ref:s,class:r.normalizeClass(["pl-text-field",{error:B.value,disabled:D.disabled,dashed:D.dashed,nonEmpty:L.value}])},[D.label?(r.openBlock(),r.createElementBlock("label",x0,[D.required?(r.openBlock(),r.createElementBlock("i",_0)):r.createCommentVNode("",!0),Z[1]||(Z[1]=r.createTextVNode()),r.createElementVNode("span",null,r.toDisplayString(D.label),1),Z[2]||(Z[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(D.$slots,"tooltip")]),_:3})):r.createCommentVNode("",!0)],512)):r.createCommentVNode("",!0),Z[5]||(Z[5]=r.createTextVNode()),D.prefix?(r.openBlock(),r.createElementBlock("div",k0,r.toDisplayString(D.prefix),1)):r.createCommentVNode("",!0),Z[6]||(Z[6]=r.createTextVNode()),r.withDirectives(r.createElementVNode("input",{ref_key:"inputRef",ref:d,"onUpdate:modelValue":Z[0]||(Z[0]=G=>p.value=G),disabled:D.disabled,placeholder:D.placeholder||"...",type:h.value,spellcheck:"false"},null,8,C0),[[r.vModelDynamic,p.value]]),Z[7]||(Z[7]=r.createTextVNode()),r.createElementVNode("div",S0,[v.value?(r.openBlock(),r.createBlock(r.unref(Qd),{key:0,name:"delete-clear",onClick:_})):r.createCommentVNode("",!0),Z[3]||(Z[3]=r.createTextVNode()),D.type==="password"?(r.openBlock(),r.createBlock(r.unref(Xd),{key:1,name:m.value,style:{cursor:"pointer"},onClick:A},null,8,["name"])):r.createCommentVNode("",!0),Z[4]||(Z[4]=r.createTextVNode()),r.renderSlot(D.$slots,"append")]),Z[8]||(Z[8]=r.createTextVNode()),r.createVNode(Sn,{class:"pl-text-field__contour"})],2),Z[9]||(Z[9]=r.createTextVNode()),B.value?(r.openBlock(),r.createElementBlock("div",T0,r.toDisplayString(S.value.join(" ")),1)):D.helper?(r.openBlock(),r.createElementBlock("div",E0,r.toDisplayString(D.helper),1)):r.createCommentVNode("",!0)]))}}),B0={class:"ui-text-area__envelope"},V0={key:0,ref:"label"},M0={key:0,class:"required-icon"},z0=["readonly","rows","disabled","placeholder"],A0={class:"ui-text-area__append"},O0={key:0,class:"ui-text-area__error"},L0={key:1,class:"ui-text-area__helper"},D0={name:"PlTextArea"},I0=r.defineComponent({...D0,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(T){i("update:modelValue",T)}}),p=r.computed(()=>!!l.modelValue),h=Jd(u,l.rules||[]);Jr(s);const m=r.computed(()=>{const T=[];return l.error&&T.push(l.error),T.push(...h.value.errors),T}),_=r.computed(()=>m.value.length>0),C=()=>{if(!l.autogrow)return;const T=d.value;T&&(T.style.height="auto",T.style.height=`${T.scrollHeight}px`)};return r.onMounted(()=>{C()}),(T,L)=>(r.openBlock(),r.createElementBlock("div",B0,[r.createElementVNode("div",{ref_key:"root",ref:s,class:r.normalizeClass(["ui-text-area",{error:_.value,disabled:T.disabled,dashed:T.dashed,nonEmpty:p.value}])},[T.label?(r.openBlock(),r.createElementBlock("label",V0,[T.required?(r.openBlock(),r.createElementBlock("i",M0)):r.createCommentVNode("",!0),L[1]||(L[1]=r.createTextVNode()),r.createElementVNode("span",null,r.toDisplayString(T.label),1),L[2]||(L[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(T.$slots,"tooltip")]),_:3})):r.createCommentVNode("",!0)],512)):r.createCommentVNode("",!0),L[3]||(L[3]=r.createTextVNode()),r.withDirectives(r.createElementVNode("textarea",{ref_key:"input",ref:d,"onUpdate:modelValue":L[0]||(L[0]=S=>u.value=S),readonly:T.readonly,rows:T.rows,disabled:T.disabled,placeholder:T.placeholder??"...",spellcheck:"false",onInput:C},null,40,z0),[[r.vModelText,u.value]]),L[4]||(L[4]=r.createTextVNode()),r.createElementVNode("div",A0,[r.renderSlot(T.$slots,"append")]),L[5]||(L[5]=r.createTextVNode()),r.createVNode(Sn,{class:"ui-text-area__contour"})],2),L[6]||(L[6]=r.createTextVNode()),_.value?(r.openBlock(),r.createElementBlock("div",O0,r.toDisplayString(m.value.join(" ")),1)):T.helper?(r.openBlock(),r.createElementBlock("div",L0,r.toDisplayString(T.helper),1)):r.createCommentVNode("",!0)]))}});function tu(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 ru(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 ti(a,e,t={}){const i=a.scrollTop,l=a.getBoundingClientRect().height,s=e.getBoundingClientRect().height,d=e.offsetTop,u=ru(a,e);if(u==="visible")return;const p=h=>{const m=u==="floor"?d-(l-s):d;a.scrollTop=i+h*(m-i)};tu(a,e)||Rd({duration:t.duration||100,timing:Id(h=>h),draw:p})}function Gl(a,e,t,i){return a.addEventListener(e,t,i),function(){a.removeEventListener(e,t)}}function R0(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 nu(a){return a!==null&&typeof a=="object"}function tr(a,e){return nu(a)&&nu(e)?Object.keys(a).length!==Object.keys(e).length?!1:Object.keys(a).every(t=>tr(a[t],e[t])):a===e}function Yl(a,e){return a.some(t=>tr(t,e))}const P0=`<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
|
`,j0=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|