@svgrid/grid-wc 3.0.22 → 3.0.24

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.
Files changed (45) hide show
  1. package/dist/GridFooter-La5NyTDN.js +145 -0
  2. package/dist/{GridMenus-Dq2xCN4N.js → GridMenus-4ksk1dnR.js} +491 -491
  3. package/dist/{shadow/PinSplitter-Qd1_-3pw.js → PinSplitter-vmU3zd_R.js} +44 -44
  4. package/dist/{shadow/SvChartMenu-CwWtjXsG.js → SvChartMenu-CgAcTloT.js} +116 -116
  5. package/dist/{shadow/SvDateRangeInput-EIQRPO_K.js → SvDateRangeInput-DHTz33L2.js} +77 -77
  6. package/dist/{SvDateTimePicker-IsJpZskc.js → SvDateTimePicker-DyRO_e91.js} +269 -269
  7. package/dist/{SvField-CpglDJLn.js → SvField-C--8r4go.js} +86 -86
  8. package/dist/{shadow/SvGridCellEditor-Bhdpvez8.js → SvGridCellEditor-6ZyGKeXd.js} +161 -161
  9. package/dist/{SvGridChart-DHptYODr.js → SvGridChart-B1Ro43s3.js} +750 -750
  10. package/dist/{shadow/SvGridChartBuilder-COttFU6T.js → SvGridChartBuilder-BGWhm8hq.js} +373 -373
  11. package/dist/{shadow/SvGridChartPanel-DGMs4B9p.js → SvGridChartPanel-t_UgLw4I.js} +579 -579
  12. package/dist/SvGridChartView-EbUF0BKk.js +45 -0
  13. package/dist/{shadow/SvGridDropdown-CfA5Jfe5.js → SvGridDropdown-CrECQYeq.js} +117 -117
  14. package/dist/chart/SvChartMenu-DslxOgPN.js +1 -1
  15. package/dist/chart/sv-chart-element.js +1 -1
  16. package/dist/{shadow/chart-export-pdf-C_iQ0kET.js → chart-export-pdf-BSDueOD-.js} +1 -1
  17. package/dist/{shadow/client-wYhMjrKG.js → client-DtIdusS4.js} +379 -376
  18. package/dist/{date-format-SCGd8EWh.js → date-format-B0RznzxC.js} +325 -325
  19. package/dist/{grid-extension.svelte-6IzZ_3Cv.js → grid-extension.svelte-BixlrIqc.js} +1 -1
  20. package/dist/shadow/GridFooter-d70CxdXM.js +145 -0
  21. package/dist/shadow/{GridMenus-BoD1TyJM.js → GridMenus-CpE2jjUR.js} +491 -491
  22. package/dist/{PinSplitter-Qd1_-3pw.js → shadow/PinSplitter-vmU3zd_R.js} +44 -44
  23. package/dist/{SvChartMenu-CwWtjXsG.js → shadow/SvChartMenu-CgAcTloT.js} +116 -116
  24. package/dist/{SvDateRangeInput-EIQRPO_K.js → shadow/SvDateRangeInput-DHTz33L2.js} +77 -77
  25. package/dist/shadow/{SvDateTimePicker-IsJpZskc.js → SvDateTimePicker-DyRO_e91.js} +269 -269
  26. package/dist/shadow/{SvField-CpglDJLn.js → SvField-C--8r4go.js} +86 -86
  27. package/dist/{SvGridCellEditor-Bhdpvez8.js → shadow/SvGridCellEditor-6ZyGKeXd.js} +161 -161
  28. package/dist/shadow/{SvGridChart-DHptYODr.js → SvGridChart-B1Ro43s3.js} +750 -750
  29. package/dist/{SvGridChartBuilder-COttFU6T.js → shadow/SvGridChartBuilder-BGWhm8hq.js} +373 -373
  30. package/dist/{SvGridChartPanel-DGMs4B9p.js → shadow/SvGridChartPanel-t_UgLw4I.js} +579 -579
  31. package/dist/shadow/SvGridChartView-EbUF0BKk.js +45 -0
  32. package/dist/{SvGridDropdown-CfA5Jfe5.js → shadow/SvGridDropdown-CrECQYeq.js} +117 -117
  33. package/dist/{chart-export-pdf-C_iQ0kET.js → shadow/chart-export-pdf-BSDueOD-.js} +1 -1
  34. package/dist/{client-wYhMjrKG.js → shadow/client-DtIdusS4.js} +379 -376
  35. package/dist/shadow/{date-format-SCGd8EWh.js → date-format-B0RznzxC.js} +325 -325
  36. package/dist/shadow/{grid-extension.svelte-6IzZ_3Cv.js → grid-extension.svelte-BixlrIqc.js} +1 -1
  37. package/dist/shadow/sv-grid-shadow-element.js +3469 -3459
  38. package/dist/shadow/{svelte-virtualizer.svelte-DTzTRxYp.js → svelte-virtualizer.svelte-u-y0InK2.js} +3 -3
  39. package/dist/sv-grid-element.js +3452 -3442
  40. package/dist/{svelte-virtualizer.svelte-DTzTRxYp.js → svelte-virtualizer.svelte-u-y0InK2.js} +3 -3
  41. package/package.json +3 -3
  42. package/dist/GridFooter-D1Mxru-f.js +0 -145
  43. package/dist/SvGridChartView-iQoET4TC.js +0 -45
  44. package/dist/shadow/GridFooter-BX1o5fzB.js +0 -145
  45. package/dist/shadow/SvGridChartView-iQoET4TC.js +0 -45
@@ -1,7 +1,7 @@
1
- (function(){try{var c=".sv-cal.svelte-n0hrlh{--_accent:var(--sg-accent,#2563eb);--_bg:var(--sg-bg,#fff);--_fg:var(--sg-fg,#0f172a);--_muted:var(--sg-muted,#64748b);--_border:var(--sg-border,#e2e8f0);--_hover:var(--sg-row-hover-bg,#2563eb14);--_radius:var(--sg-radius,8px);background:var(--_bg);width:max-content;color:var(--_fg);border:1px solid var(--_border);border-radius:calc(var(--_radius) + 4px);-webkit-user-select:none;user-select:none;gap:10px;padding:10px;font-size:13px;display:inline-flex}.sv-cal--disabled.svelte-n0hrlh{opacity:.55;pointer-events:none}.sv-cal--invalid.svelte-n0hrlh{border-color:var(--sg-danger,#dc2626)}.sv-cal__main.svelte-n0hrlh{flex-direction:column;gap:6px;min-width:0;display:flex}.sv-cal__view.svelte-n0hrlh{display:block;overflow:hidden}.sv-cal__presets.svelte-n0hrlh{border-inline-end:1px solid var(--_border);flex-direction:column;align-self:stretch;gap:2px;min-width:118px;padding-inline-end:10px;display:flex}.sv-cal__preset.svelte-n0hrlh{text-align:start;font:inherit;border-radius:var(--_radius);color:inherit;cursor:pointer;white-space:nowrap;background:0 0;border:0;padding:6px 10px;font-size:12px;font-weight:550}.sv-cal[dir=rtl].svelte-n0hrlh .sv-cal__nav:where(.svelte-n0hrlh) svg:where(.svelte-n0hrlh){transform:scaleX(-1)}.sv-cal__preset.svelte-n0hrlh:hover:not(:disabled){background:var(--_hover);color:var(--_accent)}.sv-cal__preset.svelte-n0hrlh:disabled{opacity:.5;cursor:default}.sv-cal__header.svelte-n0hrlh{align-items:center;gap:4px;display:flex}.sv-cal__title.svelte-n0hrlh{text-align:center;color:inherit;cursor:pointer;border-radius:var(--_radius);background:0 0;border:0;flex:1;padding:6px 8px;font-size:13.5px;font-weight:650}.sv-cal__title.svelte-n0hrlh:hover:not(:disabled){background:var(--_hover)}.sv-cal__title.svelte-n0hrlh:disabled{cursor:default}.sv-cal__nav.svelte-n0hrlh{width:30px;height:30px;color:var(--_muted);cursor:pointer;border-radius:var(--_radius);background:0 0;border:0;place-items:center;display:grid}.sv-cal__nav.svelte-n0hrlh:hover:not(:disabled){background:var(--_hover);color:var(--_fg)}.sv-cal__nav.svelte-n0hrlh:disabled{opacity:.4;cursor:default}.sv-cal__panels.svelte-n0hrlh{gap:14px;display:flex}.sv-cal__panel-title.svelte-n0hrlh{text-align:center;color:var(--_muted);margin-bottom:4px;font-size:12.5px;font-weight:600}.sv-cal__weekdays.svelte-n0hrlh,.sv-cal__week.svelte-n0hrlh{grid-template-columns:repeat(7,34px);display:grid}:is(.sv-cal__weekdays.svelte-n0hrlh:has(.sv-cal__wk-head:where(.svelte-n0hrlh)),.sv-cal__week.svelte-n0hrlh:has(.sv-cal__wk:where(.svelte-n0hrlh))){grid-template-columns:26px repeat(7,34px)}.sv-cal__weekday.svelte-n0hrlh,.sv-cal__wk-head.svelte-n0hrlh{height:28px;color:var(--_muted);text-transform:uppercase;letter-spacing:.02em;place-items:center;font-size:11px;font-weight:600;display:grid}.sv-cal__wk.svelte-n0hrlh{height:34px;color:var(--_muted);opacity:.7;place-items:center;font-size:10.5px;display:grid}.sv-cal__day.svelte-n0hrlh{box-sizing:border-box;width:34px;height:34px;color:inherit;cursor:pointer;border-radius:var(--_radius);background:0 0;border:0;place-items:center;font-size:12.5px;display:grid;position:relative}.sv-cal__day--empty.svelte-n0hrlh{visibility:hidden}.sv-cal__day.svelte-n0hrlh:hover:not(:disabled):not(.is-selected){background:var(--_hover)}.sv-cal__day.is-selected.svelte-n0hrlh:hover:not(:disabled){background:color-mix(in srgb, var(--_accent) 86%, var(--_fg))}.sv-cal__day.is-outside.svelte-n0hrlh{color:var(--_muted);opacity:.55}.sv-cal__day.is-today.svelte-n0hrlh{box-shadow:inset 0 0 0 1px var(--_accent);font-weight:750}.sv-cal__day.is-important.svelte-n0hrlh:after{content:\"\";background:var(--sg-danger,#dc2626);border-radius:50%;width:4px;height:4px;position:absolute;bottom:4px;left:50%;transform:translate(-50%)}.sv-cal__day.is-recurring.svelte-n0hrlh:before{content:\"\";top:4px;pointer-events:none;border:1.5px solid color-mix(in srgb, var(--_accent) 75%, transparent);border-radius:50%;width:5px;height:5px;position:absolute;inset-inline-end:4px}.sv-cal.svelte-n0hrlh:not(.sv-cal--rich) .sv-cal__day.is-selected.is-recurring:where(.svelte-n0hrlh):before{border-color:var(--sg-on-accent,#fff)}.sv-cal--rich.svelte-n0hrlh .sv-cal__weekdays:where(.svelte-n0hrlh),.sv-cal--rich.svelte-n0hrlh .sv-cal__week:where(.svelte-n0hrlh){grid-template-columns:repeat(7,minmax(0,1fr))}:is(.sv-cal--rich.svelte-n0hrlh .sv-cal__weekdays:where(.svelte-n0hrlh):has(.sv-cal__wk-head:where(.svelte-n0hrlh)),.sv-cal--rich.svelte-n0hrlh .sv-cal__week:where(.svelte-n0hrlh):has(.sv-cal__wk:where(.svelte-n0hrlh))){grid-template-columns:26px repeat(7,minmax(0,1fr))}.sv-cal--rich.svelte-n0hrlh .sv-cal__weekday:where(.svelte-n0hrlh){justify-items:start;padding-inline-start:6px}.sv-cal--rich.svelte-n0hrlh .sv-cal__day:where(.svelte-n0hrlh){text-align:start;border-radius:8px;flex-direction:column;align-items:stretch;gap:3px;width:auto;height:auto;min-height:90px;padding:4px 5px 6px;display:flex}.sv-cal--rich.svelte-n0hrlh .sv-cal__day.is-today:where(.svelte-n0hrlh){box-shadow:none}.sv-cal--rich.svelte-n0hrlh .sv-cal__day.is-selected:where(.svelte-n0hrlh){background:color-mix(in srgb, var(--_accent) 9%, transparent);color:inherit}.sv-cal--rich.svelte-n0hrlh .sv-cal__daynum:where(.svelte-n0hrlh){border-radius:50%;flex:none;align-self:flex-start;place-items:center;width:24px;height:24px;font-size:12.5px;font-weight:600;display:grid}.sv-cal--rich.svelte-n0hrlh .sv-cal__day.is-today:where(.svelte-n0hrlh) .sv-cal__daynum:where(.svelte-n0hrlh){background:var(--_accent);color:var(--sg-on-accent,#fff)}.sv-cal--rich.svelte-n0hrlh .sv-cal__daybody:where(.svelte-n0hrlh){flex-direction:column;flex:1;gap:2px;min-width:0;display:flex;overflow:hidden}.sv-cal--rich.svelte-n0hrlh .sv-cal__day.is-important:where(.svelte-n0hrlh):after{display:none}.sv-cal__day.is-preview.svelte-n0hrlh{background:color-mix(in srgb, var(--_accent) 16%, transparent);border-radius:0}.sv-cal__day.is-selected.svelte-n0hrlh{background:var(--_accent);color:var(--sg-on-accent,#fff);font-weight:650}.sv-cal.svelte-n0hrlh:not(.sv-cal--band) .sv-cal__day.is-selected:where(.svelte-n0hrlh){background-clip:content-box;padding:2px}.sv-cal__day.is-selected.is-important.svelte-n0hrlh:after{background:var(--sg-on-accent,#fff)}.sv-cal__day.svelte-n0hrlh:disabled{color:var(--_muted);opacity:.35;cursor:default;text-decoration:line-through}.sv-cal__day.is-focused.svelte-n0hrlh:focus-visible,.sv-cal__day.svelte-n0hrlh:focus-visible,.sv-cal__cell.svelte-n0hrlh:focus-visible{outline:2px solid var(--sg-focus-ring,var(--_accent));outline-offset:-2px}.sv-cal__grid-mode.svelte-n0hrlh{grid-template-columns:repeat(3,1fr);gap:4px;min-width:252px;display:grid}.sv-cal__cell.svelte-n0hrlh{height:44px;color:inherit;cursor:pointer;border-radius:var(--_radius);background:0 0;border:0;place-items:center;font-size:12.5px;display:grid}.sv-cal__cell.svelte-n0hrlh:hover:not(:disabled):not(.is-selected){background:var(--_hover)}.sv-cal__cell.is-selected.svelte-n0hrlh:hover:not(:disabled){background:color-mix(in srgb, var(--_accent) 86%, var(--_fg))}.sv-cal__cell.is-outside.svelte-n0hrlh{color:var(--_muted);opacity:.5}.sv-cal__cell.is-today.svelte-n0hrlh{box-shadow:inset 0 0 0 1px var(--_accent);font-weight:700}.sv-cal__cell.is-selected.svelte-n0hrlh{background:var(--_accent);color:var(--sg-on-accent,#fff);font-weight:650}.sv-cal__footer.svelte-n0hrlh{border-top:1px solid var(--_border);justify-content:center;gap:8px;margin-top:2px;padding-top:8px;display:flex}.sv-cal__foot-btn.svelte-n0hrlh{font:inherit;border:1px solid var(--_border);border-radius:var(--_radius);color:var(--_accent);cursor:pointer;background:0 0;padding:5px 12px;font-size:12px;font-weight:600}.sv-cal__foot-btn.svelte-n0hrlh:hover:not(:disabled){background:var(--_hover)}\n";if(typeof globalThis!=='undefined'){var f=globalThis.__SVGRID_WC_ADD_CSS__;if(typeof f==='function')f(c);else(globalThis.__SVGRID_WC_CSS_CHUNKS__=globalThis.__SVGRID_WC_CSS_CHUNKS__||[]).push(c);}if(typeof document==='undefined')return;if(document.querySelector('style[data-svgrid-grid-wc-chunk="date-format"]'))return;var s=document.createElement('style');s.setAttribute('data-svgrid-grid-wc-chunk',"date-format");s.textContent=c;document.head.appendChild(s);}catch(e){}})();
2
- import { $ as e, A as t, D as n, I as r, J as i, L as a, M as o, O as s, Q as c, T as l, U as u, V as d, W as f, X as p, Y as m, Z as h, a as g, at as _, c as v, d as y, et as b, f as x, h as ee, j as te, k as S, n as C, nt as w, rt as T, tt as E, u as D, w as O, x as ne, y as re, z as k } from "./client-wYhMjrKG.js";
1
+ (function(){try{var c=".sv-cal.svelte-n0hrlh{--_accent:var(--sg-accent,#2563eb);--_bg:var(--sg-bg,#fff);--_fg:var(--sg-fg,#0f172a);--_muted:var(--sg-muted,#64748b);--_border:var(--sg-border,#e2e8f0);--_hover:var(--sg-row-hover-bg,#2563eb14);--_radius:var(--sg-radius,8px);background:var(--_bg);width:max-content;color:var(--_fg);border:1px solid var(--_border);border-radius:calc(var(--_radius) + 4px);-webkit-user-select:none;user-select:none;gap:10px;padding:10px;font-size:13px;display:inline-flex}.sv-cal--disabled.svelte-n0hrlh{opacity:.55;pointer-events:none}.sv-cal--invalid.svelte-n0hrlh{border-color:var(--sg-danger,#dc2626)}.sv-cal__main.svelte-n0hrlh{flex-direction:column;gap:6px;min-width:0;display:flex}.sv-cal__view.svelte-n0hrlh{display:block;overflow:hidden}.sv-cal__presets.svelte-n0hrlh{border-inline-end:1px solid var(--_border);flex-direction:column;align-self:stretch;gap:2px;min-width:118px;padding-inline-end:10px;display:flex}.sv-cal__preset.svelte-n0hrlh{text-align:start;font:inherit;border-radius:var(--_radius);color:inherit;cursor:pointer;white-space:nowrap;background:0 0;border:0;padding:6px 10px;font-size:12px;font-weight:550}.sv-cal[dir=rtl].svelte-n0hrlh .sv-cal__nav:where(.svelte-n0hrlh) svg:where(.svelte-n0hrlh){transform:scaleX(-1)}.sv-cal__preset.svelte-n0hrlh:hover:not(:disabled){background:var(--_hover);color:var(--_accent)}.sv-cal__preset.svelte-n0hrlh:disabled{opacity:.5;cursor:default}.sv-cal__header.svelte-n0hrlh{align-items:center;gap:4px;display:flex}.sv-cal__title.svelte-n0hrlh{text-align:center;color:inherit;cursor:pointer;border-radius:var(--_radius);background:0 0;border:0;flex:1;padding:6px 8px;font-size:13.5px;font-weight:650}.sv-cal__title.svelte-n0hrlh:hover:not(:disabled){background:var(--_hover)}.sv-cal__title.svelte-n0hrlh:disabled{cursor:default}.sv-cal__nav.svelte-n0hrlh{width:30px;height:30px;color:var(--_muted);cursor:pointer;border-radius:var(--_radius);background:0 0;border:0;place-items:center;display:grid}.sv-cal__nav.svelte-n0hrlh:hover:not(:disabled){background:var(--_hover);color:var(--_fg)}.sv-cal__nav.svelte-n0hrlh:disabled{opacity:.4;cursor:default}.sv-cal__panels.svelte-n0hrlh{gap:14px;display:flex}.sv-cal__panel-title.svelte-n0hrlh{text-align:center;color:var(--_muted);margin-bottom:4px;font-size:12.5px;font-weight:600}.sv-cal__weekdays.svelte-n0hrlh,.sv-cal__week.svelte-n0hrlh{grid-template-columns:repeat(7,34px);display:grid}:is(.sv-cal__weekdays.svelte-n0hrlh:has(.sv-cal__wk-head:where(.svelte-n0hrlh)),.sv-cal__week.svelte-n0hrlh:has(.sv-cal__wk:where(.svelte-n0hrlh))){grid-template-columns:26px repeat(7,34px)}.sv-cal__weekday.svelte-n0hrlh,.sv-cal__wk-head.svelte-n0hrlh{height:28px;color:var(--_muted);text-transform:uppercase;letter-spacing:.02em;place-items:center;font-size:11px;font-weight:600;display:grid}.sv-cal__wk.svelte-n0hrlh{height:34px;color:var(--_muted);opacity:.7;place-items:center;font-size:10.5px;display:grid}.sv-cal__day.svelte-n0hrlh{box-sizing:border-box;width:34px;height:34px;color:inherit;cursor:pointer;border-radius:var(--_radius);background:0 0;border:0;place-items:center;font-size:12.5px;display:grid;position:relative}.sv-cal__day--empty.svelte-n0hrlh{visibility:hidden}.sv-cal__day.svelte-n0hrlh:hover:not(:disabled):not(.is-selected){background:var(--_hover)}.sv-cal__day.is-selected.svelte-n0hrlh:hover:not(:disabled){background:color-mix(in srgb, var(--_accent) 86%, var(--_fg))}.sv-cal__day.is-outside.svelte-n0hrlh{color:var(--_muted);opacity:.55}.sv-cal__day.is-today.svelte-n0hrlh{box-shadow:inset 0 0 0 1px var(--_accent);font-weight:750}.sv-cal__day.is-important.svelte-n0hrlh:after{content:\"\";background:var(--sg-danger,#dc2626);border-radius:50%;width:4px;height:4px;position:absolute;bottom:4px;left:50%;transform:translate(-50%)}.sv-cal__day.is-recurring.svelte-n0hrlh:before{content:\"\";top:4px;pointer-events:none;border:1.5px solid color-mix(in srgb, var(--_accent) 75%, transparent);border-radius:50%;width:5px;height:5px;position:absolute;inset-inline-end:4px}.sv-cal.svelte-n0hrlh:not(.sv-cal--rich) .sv-cal__day.is-selected.is-recurring:where(.svelte-n0hrlh):before{border-color:var(--sg-on-accent,#fff)}.sv-cal--rich.svelte-n0hrlh .sv-cal__weekdays:where(.svelte-n0hrlh),.sv-cal--rich.svelte-n0hrlh .sv-cal__week:where(.svelte-n0hrlh){grid-template-columns:repeat(7,minmax(0,1fr))}:is(.sv-cal--rich.svelte-n0hrlh .sv-cal__weekdays:where(.svelte-n0hrlh):has(.sv-cal__wk-head:where(.svelte-n0hrlh)),.sv-cal--rich.svelte-n0hrlh .sv-cal__week:where(.svelte-n0hrlh):has(.sv-cal__wk:where(.svelte-n0hrlh))){grid-template-columns:26px repeat(7,minmax(0,1fr))}.sv-cal--rich.svelte-n0hrlh .sv-cal__weekday:where(.svelte-n0hrlh){justify-items:start;padding-inline-start:6px}.sv-cal--rich.svelte-n0hrlh .sv-cal__day:where(.svelte-n0hrlh){text-align:start;border-radius:8px;flex-direction:column;align-items:stretch;gap:3px;width:auto;height:auto;min-height:90px;padding:4px 5px 6px;display:flex}.sv-cal--rich.svelte-n0hrlh .sv-cal__day.is-today:where(.svelte-n0hrlh){box-shadow:none}.sv-cal--rich.svelte-n0hrlh .sv-cal__day.is-selected:where(.svelte-n0hrlh){background:color-mix(in srgb, var(--_accent) 9%, transparent);color:inherit}.sv-cal--rich.svelte-n0hrlh .sv-cal__daynum:where(.svelte-n0hrlh){border-radius:50%;flex:none;align-self:flex-start;place-items:center;width:24px;height:24px;font-size:12.5px;font-weight:600;display:grid}.sv-cal--rich.svelte-n0hrlh .sv-cal__day.is-today:where(.svelte-n0hrlh) .sv-cal__daynum:where(.svelte-n0hrlh){background:var(--_accent);color:var(--sg-on-accent,#fff)}.sv-cal--rich.svelte-n0hrlh .sv-cal__daybody:where(.svelte-n0hrlh){flex-direction:column;flex:1;gap:2px;min-width:0;display:flex;overflow:hidden}.sv-cal--rich.svelte-n0hrlh .sv-cal__day.is-important:where(.svelte-n0hrlh):after{display:none}.sv-cal__day.is-preview.svelte-n0hrlh{background:color-mix(in srgb, var(--_accent) 16%, transparent);border-radius:0}.sv-cal__day.is-selected.svelte-n0hrlh{background:var(--_accent);color:var(--sg-on-accent,#fff);font-weight:650}.sv-cal.svelte-n0hrlh:not(.sv-cal--band) .sv-cal__day.is-selected:where(.svelte-n0hrlh){background-clip:content-box;padding:2px}.sv-cal__day.is-selected.is-important.svelte-n0hrlh:after{background:var(--sg-on-accent,#fff)}.sv-cal__day.svelte-n0hrlh:disabled{color:var(--_muted);opacity:.35;cursor:default;text-decoration:line-through}.sv-cal__day.is-focused.svelte-n0hrlh:focus-visible,.sv-cal__day.svelte-n0hrlh:focus-visible,.sv-cal__cell.svelte-n0hrlh:focus-visible{outline:2px solid var(--sg-focus-ring,var(--_accent));outline-offset:-2px}.sv-cal__grid-mode.svelte-n0hrlh{grid-template-columns:repeat(3,1fr);gap:4px;min-width:252px;display:grid}.sv-cal__cell.svelte-n0hrlh{height:44px;color:inherit;cursor:pointer;border-radius:var(--_radius);background:0 0;border:0;place-items:center;font-size:12.5px;display:grid}.sv-cal__cell.svelte-n0hrlh:hover:not(:disabled):not(.is-selected){background:var(--_hover)}.sv-cal__cell.is-selected.svelte-n0hrlh:hover:not(:disabled){background:color-mix(in srgb, var(--_accent) 86%, var(--_fg))}.sv-cal__cell.is-outside.svelte-n0hrlh{color:var(--_muted);opacity:.5}.sv-cal__cell.is-today.svelte-n0hrlh{box-shadow:inset 0 0 0 1px var(--_accent);font-weight:700}.sv-cal__cell.is-selected.svelte-n0hrlh{background:var(--_accent);color:var(--sg-on-accent,#fff);font-weight:650}.sv-cal__footer.svelte-n0hrlh{border-top:1px solid var(--_border);justify-content:center;gap:8px;margin-top:2px;padding-top:8px;display:flex}.sv-cal__foot-btn.svelte-n0hrlh{font:inherit;border:1px solid var(--_border);border-radius:var(--_radius);color:var(--_accent);cursor:pointer;background:0 0;padding:5px 12px;font-size:12px;font-weight:600}.sv-cal__foot-btn.svelte-n0hrlh:hover:not(:disabled){background:var(--_hover)}\n",g=globalThis;if(typeof g!=='undefined'){var f=(g.__SVGRID_WC_ADD_CSS_BY_BUILD__||{})["shadow"];if(typeof f==='function')f(c);else{var q=g.__SVGRID_WC_CSS_CHUNKS_BY_BUILD__=g.__SVGRID_WC_CSS_CHUNKS_BY_BUILD__||{};(q["shadow"]=q["shadow"]||[]).push(c);}}if(typeof document==='undefined')return;var x=document.querySelectorAll('style[data-svgrid-grid-wc-chunk]');for(var i=0;i<x.length;i++)if(x[i].getAttribute('data-svgrid-grid-wc-chunk')==="shadow:date-format-B0RznzxC.js"||x[i].textContent===c)return;var s=document.createElement('style');s.setAttribute('data-svgrid-grid-wc-chunk',"shadow:date-format-B0RznzxC.js");s.textContent=c;document.head.appendChild(s);}catch(e){}})();
2
+ import { $ as e, A as t, D as n, I as r, L as i, M as a, O as o, Q as s, T as c, U as l, V as u, W as d, X as f, Y as p, Z as m, a as h, c as g, d as _, et as v, f as y, h as b, it as x, j as ee, k as S, n as C, nt as w, ot as T, rt as te, tt as E, u as D, w as O, x as ne, y as re, z as k } from "./client-DtIdusS4.js";
3
3
  import { a as ie, i as A } from "./editor-contract-peBDxir_.js";
4
- import { t as j } from "./SvField-CpglDJLn.js";
4
+ import { t as j } from "./SvField-C--8r4go.js";
5
5
  //#region ../grid/dist/datetime/date-core.js
6
6
  function M(e) {
7
7
  if (e == null) return null;
@@ -11,44 +11,44 @@ function M(e) {
11
11
  function N(e) {
12
12
  return new Date(e.getFullYear(), e.getMonth(), e.getDate());
13
13
  }
14
- function ae(e) {
14
+ function P(e) {
15
15
  return new Date(e.getFullYear(), e.getMonth(), 1);
16
16
  }
17
- function oe(e) {
17
+ function ae(e) {
18
18
  return new Date(e.getFullYear(), e.getMonth() + 1, 0);
19
19
  }
20
- function se(e) {
21
- return oe(e).getDate();
20
+ function oe(e) {
21
+ return ae(e).getDate();
22
22
  }
23
- function P(e, t = 0) {
23
+ function F(e, t = 0) {
24
24
  let n = N(e), r = (n.getDay() - t + 7) % 7;
25
25
  return n.setDate(n.getDate() - r), n;
26
26
  }
27
- function F(e, t) {
27
+ function I(e, t) {
28
28
  return !e || !t ? !1 : e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
29
29
  }
30
- function ce(e, t) {
30
+ function se(e, t) {
31
31
  return !e || !t ? !1 : e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth();
32
32
  }
33
- function I(e, t) {
33
+ function L(e, t) {
34
34
  let n = N(e).getTime(), r = N(t).getTime();
35
35
  return n < r ? -1 : +(n > r);
36
36
  }
37
- function L(e, t) {
37
+ function R(e, t) {
38
38
  let n = new Date(e.getTime());
39
39
  return n.setDate(n.getDate() + t), n;
40
40
  }
41
- function R(e, t) {
41
+ function z(e, t) {
42
42
  let n = e.getDate(), r = new Date(e.getFullYear(), e.getMonth() + t, 1, e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds());
43
- return r.setDate(Math.min(n, se(r))), r;
43
+ return r.setDate(Math.min(n, oe(r))), r;
44
44
  }
45
- function z(e, t) {
46
- return R(e, t * 12);
45
+ function B(e, t) {
46
+ return z(e, t * 12);
47
47
  }
48
- function B(e, t, n) {
48
+ function V(e, t, n) {
49
49
  return t && e.getTime() < t.getTime() ? new Date(t.getTime()) : n && e.getTime() > n.getTime() ? new Date(n.getTime()) : e;
50
50
  }
51
- function V(e) {
51
+ function H(e) {
52
52
  let t = N(e), n = (t.getDay() + 6) % 7;
53
53
  t.setDate(t.getDate() - n + 3);
54
54
  let r = new Date(t.getFullYear(), 0, 4), i = (r.getDay() + 6) % 7;
@@ -56,60 +56,60 @@ function V(e) {
56
56
  let a = t.getTime() - r.getTime();
57
57
  return 1 + Math.round(a / 6048e5);
58
58
  }
59
- function le(e) {
59
+ function ce(e) {
60
60
  let t = Math.floor(e / 10) * 10;
61
61
  return {
62
62
  start: t,
63
63
  end: t + 9
64
64
  };
65
65
  }
66
- function H(e, t = 0, n = 6) {
67
- let r = ae(e), i = P(r, t), a = [], o = i;
66
+ function U(e, t = 0, n = 6) {
67
+ let r = P(e), i = F(r, t), a = [], o = i;
68
68
  for (let e = 0; e < n; e++) {
69
- let e = [], t = V(o);
69
+ let e = [], t = H(o);
70
70
  for (let n = 0; n < 7; n++) e.push({
71
71
  date: o,
72
72
  inMonth: o.getMonth() === r.getMonth() && o.getFullYear() === r.getFullYear(),
73
73
  week: t
74
- }), o = L(o, 1);
74
+ }), o = R(o, 1);
75
75
  a.push(e);
76
76
  }
77
77
  return a;
78
78
  }
79
- function ue(e = 0) {
79
+ function le(e = 0) {
80
80
  return Array.from({ length: 7 }, (t, n) => (e + n) % 7);
81
81
  }
82
- function U(e, t) {
82
+ function W(e, t) {
83
83
  return new Date(e.getFullYear(), e.getMonth(), e.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds());
84
84
  }
85
85
  //#endregion
86
86
  //#region ../grid/dist/recurrence.js
87
- var W = 864e5, G = (e) => Math.round(N(e).getTime() / W), K = (e) => new Date(e.getFullYear(), e.getMonth() + 1, 0).getDate();
88
- function q(e, t) {
89
- return t === -1 ? e.getDate() + 7 > K(e) : Math.floor((e.getDate() - 1) / 7) + 1 === t;
87
+ var G = 864e5, K = (e) => Math.round(N(e).getTime() / G), q = (e) => new Date(e.getFullYear(), e.getMonth() + 1, 0).getDate();
88
+ function J(e, t) {
89
+ return t === -1 ? e.getDate() + 7 > q(e) : Math.floor((e.getDate() - 1) / 7) + 1 === t;
90
90
  }
91
- function de(e, t) {
92
- let n = t.count && t.count >= 1 && t.from != null ? pe(t) : t, r = N(e), i = n.from == null ? null : N(M(n.from) ?? r), a = n.until == null ? null : N(M(n.until) ?? r);
91
+ function ue(e, t) {
92
+ let n = t.count && t.count >= 1 && t.from != null ? fe(t) : t, r = N(e), i = n.from == null ? null : N(M(n.from) ?? r), a = n.until == null ? null : N(M(n.until) ?? r);
93
93
  if (i && r < i || a && r > a) return !1;
94
94
  let o = Math.max(1, Math.floor(n.interval ?? 1));
95
95
  switch (n.freq) {
96
- case "daily": return !i || (G(r) - G(i)) % o === 0;
96
+ case "daily": return !i || (K(r) - K(i)) % o === 0;
97
97
  case "weekly": {
98
98
  let e = n.weekdays && n.weekdays.length ? n.weekdays : i ? [i.getDay()] : null;
99
- return !(!e || !e.includes(r.getDay()) || o > 1 && i && Math.round((P(r, 0).getTime() - P(i, 0).getTime()) / (W * 7)) % o !== 0);
99
+ return !(!e || !e.includes(r.getDay()) || o > 1 && i && Math.round((F(r, 0).getTime() - F(i, 0).getTime()) / (G * 7)) % o !== 0);
100
100
  }
101
- case "monthly": return fe(r, n) ? !i || ((r.getFullYear() - i.getFullYear()) * 12 + (r.getMonth() - i.getMonth())) % o === 0 : !1;
102
- case "yearly": return n.month != null && r.getMonth() !== n.month || !fe(r, n) ? !1 : i ? (r.getFullYear() - i.getFullYear()) % o === 0 : n.month != null || n.day != null || n.weekOfMonth != null;
101
+ case "monthly": return de(r, n) ? !i || ((r.getFullYear() - i.getFullYear()) * 12 + (r.getMonth() - i.getMonth())) % o === 0 : !1;
102
+ case "yearly": return n.month != null && r.getMonth() !== n.month || !de(r, n) ? !1 : i ? (r.getFullYear() - i.getFullYear()) % o === 0 : n.month != null || n.day != null || n.weekOfMonth != null;
103
103
  }
104
104
  }
105
- function fe(e, t) {
106
- if (t.weekOfMonth != null && t.weekdays && t.weekdays.length) return t.weekdays.includes(e.getDay()) && q(e, t.weekOfMonth);
105
+ function de(e, t) {
106
+ if (t.weekOfMonth != null && t.weekdays && t.weekdays.length) return t.weekdays.includes(e.getDay()) && J(e, t.weekOfMonth);
107
107
  let n = t.from == null ? null : (M(t.from) ?? e).getDate(), r = t.day ?? n;
108
108
  if (r == null) return !1;
109
- let i = r < 0 ? K(e) + r + 1 : r;
109
+ let i = r < 0 ? q(e) + r + 1 : r;
110
110
  return e.getDate() === i;
111
111
  }
112
- function pe(e) {
112
+ function fe(e) {
113
113
  let t = M(e.from);
114
114
  if (!t) return {
115
115
  ...e,
@@ -119,38 +119,38 @@ function pe(e) {
119
119
  ...e,
120
120
  count: void 0
121
121
  }, r = N(t), i = 0, a = r, o = 0;
122
- for (; o++ < 48e3 && !(de(r, n) && (i++, a = r, i >= e.count));) r = new Date(r.getFullYear(), r.getMonth(), r.getDate() + 1);
122
+ for (; o++ < 48e3 && !(ue(r, n) && (i++, a = r, i >= e.count));) r = new Date(r.getFullYear(), r.getMonth(), r.getDate() + 1);
123
123
  let s = a, c = e.until == null ? null : N(M(e.until) ?? s), l = c && c < s ? c : s;
124
124
  return {
125
125
  ...n,
126
126
  until: l
127
127
  };
128
128
  }
129
- function me(e, t) {
130
- return t ? (Array.isArray(t) ? t : [t]).some((t) => de(e, t)) : !1;
129
+ function pe(e, t) {
130
+ return t ? (Array.isArray(t) ? t : [t]).some((t) => ue(e, t)) : !1;
131
131
  }
132
132
  //#endregion
133
133
  //#region ../grid/dist/datetime/date-selection.js
134
- var he = () => ({
134
+ var me = () => ({
135
135
  dates: [],
136
136
  anchor: null,
137
137
  rangeStart: null
138
138
  });
139
- function J(e, t) {
140
- return e.some((e) => F(e, t));
141
- }
142
139
  function Y(e, t) {
143
- let n = I(e, t) <= 0 ? N(e) : N(t), r = I(e, t) <= 0 ? N(t) : N(e), i = [], a = n;
144
- for (; I(a, r) <= 0;) i.push(a), a = L(a, 1);
140
+ return e.some((e) => I(e, t));
141
+ }
142
+ function X(e, t) {
143
+ let n = L(e, t) <= 0 ? N(e) : N(t), r = L(e, t) <= 0 ? N(t) : N(e), i = [], a = n;
144
+ for (; L(a, r) <= 0;) i.push(a), a = R(a, 1);
145
145
  return i;
146
146
  }
147
- function X(e) {
147
+ function he(e) {
148
148
  let t = [];
149
- for (let n of e) t.some((e) => F(e, n)) || t.push(N(n));
149
+ for (let n of e) t.some((e) => I(e, n)) || t.push(N(n));
150
150
  return t.sort((e, t) => e.getTime() - t.getTime()), t;
151
151
  }
152
152
  function Z(e, t) {
153
- return J(e, t) ? e.filter((e) => !F(e, t)) : [...e, N(t)];
153
+ return Y(e, t) ? e.filter((e) => !I(e, t)) : [...e, N(t)];
154
154
  }
155
155
  function ge(e, t, n, r = {}, i = 0) {
156
156
  let a = N(t), o = () => ({
@@ -162,40 +162,40 @@ function ge(e, t, n, r = {}, i = 0) {
162
162
  case "none": return { ...e };
163
163
  case "default":
164
164
  case "one": return o();
165
- case "zeroOrOne": return J(e.dates, a) && e.dates.length === 1 ? he() : o();
165
+ case "zeroOrOne": return Y(e.dates, a) && e.dates.length === 1 ? me() : o();
166
166
  case "many":
167
167
  case "zeroOrMany": return {
168
- dates: X(Z(e.dates, a)),
168
+ dates: he(Z(e.dates, a)),
169
169
  anchor: a,
170
170
  rangeStart: null
171
171
  };
172
172
  case "oneOrMany": {
173
173
  let t = Z(e.dates, a);
174
174
  return {
175
- dates: X(t.length === 0 ? [a] : t),
175
+ dates: he(t.length === 0 ? [a] : t),
176
176
  anchor: a,
177
177
  rangeStart: null
178
178
  };
179
179
  }
180
180
  case "oneExtended": return r.shift && e.anchor ? {
181
- dates: Y(e.anchor, a),
181
+ dates: X(e.anchor, a),
182
182
  anchor: e.anchor,
183
183
  rangeStart: null
184
184
  } : r.ctrl ? {
185
- dates: X(Z(e.dates, a)),
185
+ dates: he(Z(e.dates, a)),
186
186
  anchor: a,
187
187
  rangeStart: null
188
188
  } : o();
189
189
  case "week": {
190
- let e = P(a, i);
190
+ let e = F(a, i);
191
191
  return {
192
- dates: Array.from({ length: 7 }, (t, n) => L(e, n)),
192
+ dates: Array.from({ length: 7 }, (t, n) => R(e, n)),
193
193
  anchor: e,
194
194
  rangeStart: null
195
195
  };
196
196
  }
197
197
  case "range": return e.rangeStart ? {
198
- dates: Y(e.rangeStart, a),
198
+ dates: X(e.rangeStart, a),
199
199
  anchor: e.rangeStart,
200
200
  rangeStart: null
201
201
  } : {
@@ -219,16 +219,16 @@ function Q(e) {
219
219
  }
220
220
  function _e(e, t, n) {
221
221
  let r = M(t ?? null), i = M(n ?? null);
222
- return !!(r && I(e, r) < 0 || i && I(e, i) > 0);
222
+ return !!(r && L(e, r) < 0 || i && L(e, i) > 0);
223
223
  }
224
224
  function ve(e, t) {
225
- return t ? typeof t == "function" ? t(e) : Q(t).some((t) => F(t, e)) : !1;
225
+ return t ? typeof t == "function" ? t(e) : Q(t).some((t) => I(t, e)) : !1;
226
226
  }
227
227
  function ye(e, t) {
228
228
  return _e(e, t.min, t.max) || ve(e, t.restrictedDates);
229
229
  }
230
230
  function be(e, t) {
231
- return t ? typeof t == "function" ? t(e) : Q(t).some((t) => F(t, e)) : !1;
231
+ return t ? typeof t == "function" ? t(e) : Q(t).some((t) => I(t, e)) : !1;
232
232
  }
233
233
  //#endregion
234
234
  //#region ../grid/dist/createCalendar.svelte.js
@@ -243,71 +243,71 @@ function Se(e) {
243
243
  return n;
244
244
  }
245
245
  function Ce(t) {
246
- let n = () => t.selectionMode?.() ?? "one", r = () => t.firstDayOfWeek?.() ?? 0, i = () => t.weeks?.() ?? 6, a = () => Math.max(1, t.months?.() ?? 1), o = () => t.displayMode?.() ?? "month", s = () => t.disabled?.() ?? !1, l = () => t.readonly?.() ?? !1, u = () => t.locale?.() ?? xe(), d = () => t.dayNameFormat?.() ?? "short", p = () => t.monthNameFormat?.() ?? "long", m = e(h(he())), g = e(h(N(/* @__PURE__ */ new Date()))), _ = e("month"), v = e(h(N(/* @__PURE__ */ new Date()))), y = e(null), x = "fade", ee = e(0), te = E(() => ({
246
+ let n = () => t.selectionMode?.() ?? "one", r = () => t.firstDayOfWeek?.() ?? 0, i = () => t.weeks?.() ?? 6, a = () => Math.max(1, t.months?.() ?? 1), o = () => t.displayMode?.() ?? "month", c = () => t.disabled?.() ?? !1, l = () => t.readonly?.() ?? !1, u = () => t.locale?.() ?? xe(), f = () => t.dayNameFormat?.() ?? "short", p = () => t.monthNameFormat?.() ?? "long", m = v(s(me())), h = v(s(N(/* @__PURE__ */ new Date()))), g = v("month"), _ = v(s(N(/* @__PURE__ */ new Date()))), y = v(null), b = "fade", x = v(0), ee = w(() => ({
247
247
  min: t.min?.() ?? null,
248
248
  max: t.max?.() ?? null,
249
249
  restrictedDates: t.restrictedDates?.() ?? null
250
- })), S = E(() => !s() && !l()), C = "￿", w = !1;
251
- f(() => {
252
- let e = Se(t.value()), n = e.map((e) => e.getTime()).join(",");
253
- if (n !== C && (C = n, c(m, {
254
- dates: e,
255
- anchor: e[e.length - 1] ?? null,
250
+ })), S = w(() => !c() && !l()), C = "￿", T = !1;
251
+ d(() => {
252
+ let n = Se(t.value()), r = n.map((e) => e.getTime()).join(",");
253
+ if (r !== C && (C = r, e(m, {
254
+ dates: n,
255
+ anchor: n[n.length - 1] ?? null,
256
256
  rangeStart: null
257
- }, !0), !w)) {
258
- w = !0;
259
- let t = e[0] ?? N(/* @__PURE__ */ new Date());
260
- c(g, N(t), !0), c(v, N(t), !0), c(_, o(), !0);
257
+ }, !0), !T)) {
258
+ T = !0;
259
+ let t = n[0] ?? N(/* @__PURE__ */ new Date());
260
+ e(h, N(t), !0), e(_, N(t), !0), e(g, o(), !0);
261
261
  }
262
262
  });
263
- let T = E(() => new Intl.DateTimeFormat(u(), { weekday: d() })), D = E(() => new Intl.DateTimeFormat(u(), {
263
+ let te = w(() => new Intl.DateTimeFormat(u(), { weekday: f() })), D = w(() => new Intl.DateTimeFormat(u(), {
264
264
  month: p(),
265
265
  year: "numeric"
266
- })), O = E(() => new Intl.DateTimeFormat(u(), { month: "short" })), ne = E(() => new Intl.DateTimeFormat(u(), {
266
+ })), O = w(() => new Intl.DateTimeFormat(u(), { month: "short" })), ne = w(() => new Intl.DateTimeFormat(u(), {
267
267
  weekday: "long",
268
268
  year: "numeric",
269
269
  month: "long",
270
270
  day: "numeric"
271
- })), re = E(() => ue(r()).map((e) => {
271
+ })), re = w(() => le(r()).map((e) => {
272
272
  let t = new Date(2021, 7, 1 + e);
273
273
  return {
274
- label: k(T).format(t),
274
+ label: k(te).format(t),
275
275
  weekday: e
276
276
  };
277
- })), ie = E(() => Array.from({ length: a() }, (e, t) => {
278
- let n = R(k(g), t);
277
+ })), ie = w(() => Array.from({ length: a() }, (e, t) => {
278
+ let n = z(k(h), t);
279
279
  return {
280
280
  month: n,
281
281
  title: k(D).format(n),
282
- matrix: H(n, r(), i())
282
+ matrix: U(n, r(), i())
283
283
  };
284
- })), A = E(() => {
284
+ })), A = w(() => {
285
285
  if (n() !== "range") return null;
286
286
  let e = k(m).rangeStart;
287
- return !e || !k(y) ? null : Y(e, k(y));
288
- }), j = (e) => !!k(A) && k(A).some((t) => F(t, e));
289
- function ae(e, n) {
287
+ return !e || !k(y) ? null : X(e, k(y));
288
+ }), j = (e) => !!k(A) && k(A).some((t) => I(t, e));
289
+ function P(e, n) {
290
290
  return {
291
- disabled: ye(e, k(te)),
292
- selected: J(k(m).dates, e),
291
+ disabled: ye(e, k(ee)),
292
+ selected: Y(k(m).dates, e),
293
293
  important: be(e, t.importantDates?.() ?? null),
294
- today: F(e, /* @__PURE__ */ new Date()),
295
- outside: !ce(e, n),
296
- focused: F(e, k(v)),
294
+ today: I(e, /* @__PURE__ */ new Date()),
295
+ outside: !se(e, n),
296
+ focused: I(e, k(_)),
297
297
  preview: j(e),
298
- recurring: me(e, t.recurrence?.() ?? null)
298
+ recurring: pe(e, t.recurrence?.() ?? null)
299
299
  };
300
300
  }
301
- let oe = E(() => k(_) === "month" ? k(D).format(k(g)) : k(_) === "year" ? String(k(g).getFullYear()) : (() => {
302
- let { start: e, end: t } = le(k(g).getFullYear());
301
+ let ae = w(() => k(g) === "month" ? k(D).format(k(h)) : k(g) === "year" ? String(k(h).getFullYear()) : (() => {
302
+ let { start: e, end: t } = ce(k(h).getFullYear());
303
303
  return `${e} - ${t}`;
304
- })()), se = E(() => Array.from({ length: 12 }, (e, t) => ({
304
+ })()), oe = w(() => Array.from({ length: 12 }, (e, t) => ({
305
305
  index: t,
306
- label: k(O).format(new Date(k(g).getFullYear(), t, 1)),
307
- current: t === (/* @__PURE__ */ new Date()).getMonth() && k(g).getFullYear() === (/* @__PURE__ */ new Date()).getFullYear(),
308
- selected: k(m).dates.some((e) => e.getMonth() === t && e.getFullYear() === k(g).getFullYear())
309
- }))), P = E(() => {
310
- let { start: e } = le(k(g).getFullYear());
306
+ label: k(O).format(new Date(k(h).getFullYear(), t, 1)),
307
+ current: t === (/* @__PURE__ */ new Date()).getMonth() && k(h).getFullYear() === (/* @__PURE__ */ new Date()).getFullYear(),
308
+ selected: k(m).dates.some((e) => e.getMonth() === t && e.getFullYear() === k(h).getFullYear())
309
+ }))), F = w(() => {
310
+ let { start: e } = ce(k(h).getFullYear());
311
311
  return Array.from({ length: 12 }, (t, n) => {
312
312
  let r = e - 1 + n;
313
313
  return {
@@ -317,102 +317,102 @@ function Ce(t) {
317
317
  selected: k(m).dates.some((e) => e.getFullYear() === r)
318
318
  };
319
319
  });
320
- }), I = E(() => n() === "zeroOrOne" || n() === "zeroOrMany" || n() === "none");
321
- function B(e) {
322
- c(m, e, !0), C = e.dates.map((e) => e.getTime()).join(","), t.onChange?.(e.dates.map((e) => new Date(e.getTime())));
320
+ }), L = w(() => n() === "zeroOrOne" || n() === "zeroOrMany" || n() === "none");
321
+ function V(n) {
322
+ e(m, n, !0), C = n.dates.map((e) => e.getTime()).join(","), t.onChange?.(n.dates.map((e) => new Date(e.getTime())));
323
323
  }
324
- function V(e, t) {
325
- !k(S) || ye(e, k(te)) || (c(v, N(e), !0), B(ge(k(m), e, n(), {
326
- ctrl: t?.ctrlKey || t?.metaKey,
327
- shift: t?.shiftKey
324
+ function H(t, i) {
325
+ !k(S) || ye(t, k(ee)) || (e(_, N(t), !0), V(ge(k(m), t, n(), {
326
+ ctrl: i?.ctrlKey || i?.metaKey,
327
+ shift: i?.shiftKey
328
328
  }, r())));
329
329
  }
330
- function U(e, n = k(_)) {
331
- c(g, N(e), !0), c(_, n, !0), b(ee), t.onNavigate?.(k(g), k(_));
332
- }
333
- function W() {
334
- x = "drillUp", k(_) === "month" ? U(k(g), "year") : k(_) === "year" && U(k(g), "decade");
330
+ function W(n, r = k(g)) {
331
+ e(h, N(n), !0), e(g, r, !0), E(x), t.onNavigate?.(k(h), k(g));
335
332
  }
336
- function G(e) {
337
- x = e === 1 ? "next" : "prev", k(_) === "month" ? U(R(k(g), e)) : k(_) === "year" ? U(z(k(g), e)) : U(z(k(g), e * 10));
333
+ function G() {
334
+ b = "drillUp", k(g) === "month" ? W(k(h), "year") : k(g) === "year" && W(k(h), "decade");
338
335
  }
339
336
  function K(e) {
340
- x = "drillDown", U(new Date(k(g).getFullYear(), e, 1), "month"), c(v, new Date(k(g).getFullYear(), e, Math.min(k(v).getDate(), 28)), !0);
337
+ b = e === 1 ? "next" : "prev", k(g) === "month" ? W(z(k(h), e)) : k(g) === "year" ? W(B(k(h), e)) : W(B(k(h), e * 10));
338
+ }
339
+ function q(t) {
340
+ b = "drillDown", W(new Date(k(h).getFullYear(), t, 1), "month"), e(_, new Date(k(h).getFullYear(), t, Math.min(k(_).getDate(), 28)), !0);
341
341
  }
342
- function q(e) {
343
- x = "drillDown", U(new Date(e, k(g).getMonth(), 1), "year");
342
+ function J(e) {
343
+ b = "drillDown", W(new Date(e, k(h).getMonth(), 1), "year");
344
344
  }
345
- function de() {
346
- x = "fade";
347
- let e = /* @__PURE__ */ new Date();
348
- U(e, "month"), c(v, N(e), !0), k(S) && V(e);
345
+ function ue() {
346
+ b = "fade";
347
+ let t = /* @__PURE__ */ new Date();
348
+ W(t, "month"), e(_, N(t), !0), k(S) && H(t);
349
349
  }
350
- let fe = (e) => new Date(e.getFullYear(), e.getMonth(), 1);
351
- function pe(e) {
350
+ let de = (e) => new Date(e.getFullYear(), e.getMonth(), 1);
351
+ function fe(t) {
352
352
  if (!k(S)) return;
353
- let t = typeof e.value == "function" ? e.value() : e.value, n = Array.isArray(t), r = n ? t : [t, t], i = M(r[0]), a = M(r[1]);
354
- i && (c(v, N(i), !0), x = "fade", c(g, fe(i), !0), b(ee), B(n && a ? {
355
- dates: Y(i, a),
356
- anchor: N(a),
353
+ let n = typeof t.value == "function" ? t.value() : t.value, r = Array.isArray(n), i = r ? n : [n, n], a = M(i[0]), o = M(i[1]);
354
+ a && (e(_, N(a), !0), b = "fade", e(h, de(a), !0), E(x), V(r && o ? {
355
+ dates: X(a, o),
356
+ anchor: N(o),
357
357
  rangeStart: null
358
358
  } : {
359
- dates: [N(i)],
360
- anchor: N(i),
359
+ dates: [N(a)],
360
+ anchor: N(a),
361
361
  rangeStart: null
362
362
  }));
363
363
  }
364
- function X() {
365
- k(S) && B(he());
364
+ function he() {
365
+ k(S) && V(me());
366
366
  }
367
- let Z = (e) => c(y, e, !0);
367
+ let Z = (t) => e(y, t, !0);
368
368
  function Q(e) {
369
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), k(_) === "year" ? K(k(v).getMonth()) : q(k(v).getFullYear()));
369
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), k(g) === "year" ? q(k(_).getMonth()) : J(k(_).getFullYear()));
370
370
  }
371
- function _e(e) {
372
- if (k(_) !== "month") return Q(e);
373
- let t = null;
374
- switch (e.key) {
371
+ function _e(t) {
372
+ if (k(g) !== "month") return Q(t);
373
+ let n = null;
374
+ switch (t.key) {
375
375
  case "ArrowLeft":
376
- t = L(k(v), -1);
376
+ n = R(k(_), -1);
377
377
  break;
378
378
  case "ArrowRight":
379
- t = L(k(v), 1);
379
+ n = R(k(_), 1);
380
380
  break;
381
381
  case "ArrowUp":
382
- t = L(k(v), -7);
382
+ n = R(k(_), -7);
383
383
  break;
384
384
  case "ArrowDown":
385
- t = L(k(v), 7);
385
+ n = R(k(_), 7);
386
386
  break;
387
387
  case "Home":
388
- t = L(k(v), -((k(v).getDay() - r() + 7) % 7));
388
+ n = R(k(_), -((k(_).getDay() - r() + 7) % 7));
389
389
  break;
390
390
  case "End":
391
- t = L(k(v), 6 - (k(v).getDay() - r() + 7) % 7);
391
+ n = R(k(_), 6 - (k(_).getDay() - r() + 7) % 7);
392
392
  break;
393
393
  case "PageUp":
394
- t = e.shiftKey ? z(k(v), -1) : R(k(v), -1);
394
+ n = t.shiftKey ? B(k(_), -1) : z(k(_), -1);
395
395
  break;
396
396
  case "PageDown":
397
- t = e.shiftKey ? z(k(v), 1) : R(k(v), 1);
397
+ n = t.shiftKey ? B(k(_), 1) : z(k(_), 1);
398
398
  break;
399
399
  case "Enter":
400
400
  case " ":
401
- e.preventDefault(), V(k(v), e);
401
+ t.preventDefault(), H(k(_), t);
402
402
  return;
403
403
  default: return;
404
404
  }
405
- t && (e.preventDefault(), c(v, N(t), !0), ce(k(v), k(g)) || U(k(v), "month"));
405
+ n && (t.preventDefault(), e(_, N(n), !0), se(k(_), k(h)) || W(k(_), "month"));
406
406
  }
407
407
  return {
408
408
  get view() {
409
- return k(g);
409
+ return k(h);
410
410
  },
411
411
  get mode() {
412
- return k(_);
412
+ return k(g);
413
413
  },
414
414
  get title() {
415
- return k(oe);
415
+ return k(ae);
416
416
  },
417
417
  get panels() {
418
418
  return k(ie);
@@ -421,10 +421,10 @@ function Ce(t) {
421
421
  return k(re);
422
422
  },
423
423
  get yearCells() {
424
- return k(se);
424
+ return k(oe);
425
425
  },
426
426
  get decadeCells() {
427
- return k(P);
427
+ return k(F);
428
428
  },
429
429
  get selectedDates() {
430
430
  return k(m).dates;
@@ -433,63 +433,63 @@ function Ce(t) {
433
433
  return k(A);
434
434
  },
435
435
  get focusDate() {
436
- return k(v);
436
+ return k(_);
437
437
  },
438
438
  get hoverDate() {
439
439
  return k(y);
440
440
  },
441
441
  get canClear() {
442
- return k(I);
442
+ return k(L);
443
443
  },
444
444
  get isInteractive() {
445
445
  return k(S);
446
446
  },
447
447
  get navToken() {
448
- return k(ee);
448
+ return k(x);
449
449
  },
450
450
  get navDir() {
451
- return x;
451
+ return b;
452
452
  },
453
- dayState: ae,
453
+ dayState: P,
454
454
  inPreview: j,
455
455
  formatFullDate: (e) => k(ne).format(e),
456
456
  formatMonthTitle: (e) => k(D).format(e),
457
- pickDay: V,
458
- step: G,
459
- drillUp: W,
460
- pickMonth: K,
461
- pickYear: q,
462
- goToday: de,
463
- applyPreset: pe,
464
- clearSelection: X,
457
+ pickDay: H,
458
+ step: K,
459
+ drillUp: G,
460
+ pickMonth: q,
461
+ pickYear: J,
462
+ goToday: ue,
463
+ applyPreset: fe,
464
+ clearSelection: he,
465
465
  setHover: Z,
466
466
  onKeydown: _e,
467
467
  navProps(e) {
468
468
  return {
469
469
  type: "button",
470
- disabled: s(),
470
+ disabled: c(),
471
471
  "aria-label": e === 1 ? "Next" : "Previous",
472
- onclick: () => G(e)
472
+ onclick: () => K(e)
473
473
  };
474
474
  },
475
475
  titleProps() {
476
476
  return {
477
477
  type: "button",
478
- disabled: s() || k(_) === "decade",
478
+ disabled: c() || k(g) === "decade",
479
479
  "aria-live": "polite",
480
- onclick: W
480
+ onclick: G
481
481
  };
482
482
  },
483
483
  gridProps() {
484
484
  return {
485
485
  role: "grid",
486
- "aria-label": k(oe),
486
+ "aria-label": k(ae),
487
487
  tabindex: -1,
488
488
  onkeydown: _e
489
489
  };
490
490
  },
491
491
  dayProps(e, n) {
492
- let r = ae(e.date, n);
492
+ let r = P(e.date, n);
493
493
  return {
494
494
  type: "button",
495
495
  role: "gridcell",
@@ -499,8 +499,8 @@ function Ce(t) {
499
499
  "aria-label": k(ne).format(e.date),
500
500
  title: t.dateTooltip?.()?.(e.date) ?? void 0,
501
501
  tabindex: r.focused ? 0 : -1,
502
- disabled: r.disabled || s(),
503
- onclick: (t) => V(e.date, t),
502
+ disabled: r.disabled || c(),
503
+ onclick: (t) => H(e.date, t),
504
504
  onpointerenter: () => Z(e.date),
505
505
  onpointerleave: () => Z(null)
506
506
  };
@@ -508,143 +508,143 @@ function Ce(t) {
508
508
  monthCellProps(e) {
509
509
  return {
510
510
  type: "button",
511
- disabled: s(),
512
- onclick: () => K(e)
511
+ disabled: c(),
512
+ onclick: () => q(e)
513
513
  };
514
514
  },
515
515
  yearCellProps(e) {
516
516
  return {
517
517
  type: "button",
518
- disabled: s(),
519
- onclick: () => q(e)
518
+ disabled: c(),
519
+ onclick: () => J(e)
520
520
  };
521
521
  },
522
522
  presetProps(e) {
523
523
  return {
524
524
  type: "button",
525
525
  disabled: !k(S),
526
- onclick: () => pe(e)
526
+ onclick: () => fe(e)
527
527
  };
528
528
  }
529
529
  };
530
530
  }
531
531
  //#endregion
532
532
  //#region ../grid/dist/SvCalendar.svelte
533
- var we = o("<button> </button>"), Te = o("<div class=\"sv-cal__presets svelte-n0hrlh\" role=\"group\"></div>"), Ee = o("<div class=\"sv-cal__panel-title svelte-n0hrlh\"> </div>"), De = o("<span class=\"sv-cal__wk-head svelte-n0hrlh\" aria-hidden=\"true\">#</span>"), Oe = o("<span class=\"sv-cal__weekday svelte-n0hrlh\" role=\"columnheader\"> </span>"), ke = o("<div class=\"sv-cal__weekdays svelte-n0hrlh\" role=\"row\"><!> <!></div>"), Ae = o("<span class=\"sv-cal__wk svelte-n0hrlh\" aria-hidden=\"true\"> </span>"), je = o("<span class=\"sv-cal__day sv-cal__day--empty svelte-n0hrlh\" role=\"gridcell\" aria-hidden=\"true\"></span>"), Me = o("<span class=\"sv-cal__daybody svelte-n0hrlh\"><!></span>"), Ne = o("<button><span class=\"sv-cal__daynum svelte-n0hrlh\"> </span><!></button>"), Pe = o("<div class=\"sv-cal__week svelte-n0hrlh\" role=\"row\"><!> <!></div>"), Fe = o("<div class=\"sv-cal__panel\"><!> <!> <!></div>"), Ie = o("<div></div>"), Le = o("<button> </button>"), Re = o("<div></div>"), ze = o("<button> </button>"), Be = o("<div></div>"), Ve = o("<button type=\"button\" class=\"sv-cal__foot-btn svelte-n0hrlh\"> </button>"), He = o("<div class=\"sv-cal__footer svelte-n0hrlh\"><button type=\"button\" class=\"sv-cal__foot-btn svelte-n0hrlh\"> </button> <!></div>"), Ue = o("<input type=\"hidden\"/>"), We = o("<div role=\"group\"><!> <div class=\"sv-cal__main svelte-n0hrlh\"><div class=\"sv-cal__header svelte-n0hrlh\"><button><svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"svelte-n0hrlh\"><path d=\"M15 18l-6-6 6-6\"></path></svg></button> <button> </button> <button><svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"svelte-n0hrlh\"><path d=\"M9 18l6-6-6-6\"></path></svg></button></div> <div class=\"sv-cal__view svelte-n0hrlh\"><!></div> <!></div> <!></div>");
534
- function Ge(r, o) {
535
- T(o, !0);
536
- let h = (e) => {
537
- var r = We();
538
- let d;
539
- var f = i(r), h = (e) => {
533
+ var we = a("<button> </button>"), Te = a("<div class=\"sv-cal__presets svelte-n0hrlh\" role=\"group\"></div>"), Ee = a("<div class=\"sv-cal__panel-title svelte-n0hrlh\"> </div>"), De = a("<span class=\"sv-cal__wk-head svelte-n0hrlh\" aria-hidden=\"true\">#</span>"), Oe = a("<span class=\"sv-cal__weekday svelte-n0hrlh\" role=\"columnheader\"> </span>"), ke = a("<div class=\"sv-cal__weekdays svelte-n0hrlh\" role=\"row\"><!> <!></div>"), Ae = a("<span class=\"sv-cal__wk svelte-n0hrlh\" aria-hidden=\"true\"> </span>"), je = a("<span class=\"sv-cal__day sv-cal__day--empty svelte-n0hrlh\" role=\"gridcell\" aria-hidden=\"true\"></span>"), Me = a("<span class=\"sv-cal__daybody svelte-n0hrlh\"><!></span>"), Ne = a("<button><span class=\"sv-cal__daynum svelte-n0hrlh\"> </span><!></button>"), Pe = a("<div class=\"sv-cal__week svelte-n0hrlh\" role=\"row\"><!> <!></div>"), Fe = a("<div class=\"sv-cal__panel\"><!> <!> <!></div>"), Ie = a("<div></div>"), Le = a("<button> </button>"), Re = a("<div></div>"), ze = a("<button> </button>"), Be = a("<div></div>"), Ve = a("<button type=\"button\" class=\"sv-cal__foot-btn svelte-n0hrlh\"> </button>"), He = a("<div class=\"sv-cal__footer svelte-n0hrlh\"><button type=\"button\" class=\"sv-cal__foot-btn svelte-n0hrlh\"> </button> <!></div>"), Ue = a("<input type=\"hidden\"/>"), We = a("<div role=\"group\"><!> <div class=\"sv-cal__main svelte-n0hrlh\"><div class=\"sv-cal__header svelte-n0hrlh\"><button><svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"svelte-n0hrlh\"><path d=\"M15 18l-6-6 6-6\"></path></svg></button> <button> </button> <button><svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"svelte-n0hrlh\"><path d=\"M9 18l6-6-6-6\"></path></svg></button></div> <div class=\"sv-cal__view svelte-n0hrlh\"><!></div> <!></div> <!></div>");
534
+ function Ge(r, a) {
535
+ x(a, !0);
536
+ let s = (r) => {
537
+ var s = We();
538
+ let u;
539
+ var d = p(s), v = (e) => {
540
540
  var n = Te();
541
- O(n, 21, () => o.presets, l, (e, n) => {
541
+ O(n, 21, () => a.presets, c, (e, n) => {
542
542
  var r = we();
543
543
  D(r, (e) => ({
544
544
  class: "sv-cal__preset",
545
545
  ...e
546
546
  }), [() => Z.presetProps(k(n))], void 0, void 0, "svelte-n0hrlh");
547
- var a = i(r, !0);
548
- _(r), u(() => S(a, k(n).label)), t(e, r);
549
- }), _(n), u(() => x(n, "aria-label", k(J).shortcuts)), t(e, n);
547
+ var i = p(r, !0);
548
+ T(r), l(() => S(i, k(n).label)), t(e, r);
549
+ }), T(n), l(() => y(n, "aria-label", k(Y).shortcuts)), t(e, n);
550
550
  };
551
- n(f, (e) => {
552
- o.presets && o.presets.length && e(h);
551
+ n(d, (e) => {
552
+ a.presets && a.presets.length && e(v);
553
553
  });
554
- var b = p(f, 2), C = i(b), w = i(C);
555
- D(w, (e) => ({
554
+ var x = m(d, 2), C = p(x), te = p(C);
555
+ D(te, (e) => ({
556
556
  class: "sv-cal__nav",
557
557
  ...e
558
558
  }), [() => Z.navProps(-1)], void 0, void 0, "svelte-n0hrlh");
559
- var T = p(w, 2);
560
- D(T, (e) => ({
559
+ var E = m(te, 2);
560
+ D(E, (e) => ({
561
561
  class: "sv-cal__title",
562
562
  ...e
563
563
  }), [() => Z.titleProps()], void 0, void 0, "svelte-n0hrlh");
564
- var ie = i(T, !0);
565
- _(T);
566
- var A = p(T, 2);
564
+ var ie = p(E, !0);
565
+ T(E);
566
+ var A = m(E, 2);
567
567
  D(A, (e) => ({
568
568
  class: "sv-cal__nav",
569
569
  ...e
570
- }), [() => Z.navProps(1)], void 0, void 0, "svelte-n0hrlh"), _(C);
571
- var j = p(C, 2), M = i(j), ae = (e) => {
570
+ }), [() => Z.navProps(1)], void 0, void 0, "svelte-n0hrlh"), T(C);
571
+ var j = m(C, 2), M = p(j), P = (e) => {
572
572
  var r = Ie();
573
573
  D(r, (e) => ({
574
574
  class: "sv-cal__panels",
575
575
  ...e
576
576
  }), [() => Z.gridProps()], void 0, void 0, "svelte-n0hrlh"), O(r, 21, () => Z.panels, (e) => e.month.getTime(), (e, r) => {
577
- var a = Fe(), c = i(a), d = (e) => {
578
- var n = Ee(), a = i(n, !0);
579
- _(n), u(() => S(a, k(r).title)), t(e, n);
577
+ var i = Fe(), s = p(i), u = (e) => {
578
+ var n = Ee(), i = p(n, !0);
579
+ T(n), l(() => S(i, k(r).title)), t(e, n);
580
580
  };
581
- n(c, (e) => {
582
- L() > 1 && e(d);
581
+ n(s, (e) => {
582
+ R() > 1 && e(u);
583
583
  });
584
- var f = p(c, 2), h = (e) => {
585
- var r = ke(), a = i(r), o = (e) => {
584
+ var d = m(s, 2), h = (e) => {
585
+ var r = ke(), i = p(r), a = (e) => {
586
586
  var n = De();
587
587
  t(e, n);
588
588
  };
589
- n(a, (e) => {
590
- I() && e(o);
589
+ n(i, (e) => {
590
+ L() && e(a);
591
591
  });
592
- var s = p(a, 2);
593
- O(s, 17, () => Z.weekdayHeaders, (e) => e.weekday, (e, n) => {
594
- var r = Oe(), a = i(r, !0);
595
- _(r), u(() => S(a, k(n).label)), t(e, r);
596
- }), _(r), t(e, r);
592
+ var o = m(i, 2);
593
+ O(o, 17, () => Z.weekdayHeaders, (e) => e.weekday, (e, n) => {
594
+ var r = Oe(), i = p(r, !0);
595
+ T(r), l(() => S(i, k(n).label)), t(e, r);
596
+ }), T(r), t(e, r);
597
597
  };
598
- n(f, (e) => {
599
- R() || e(h);
598
+ n(d, (e) => {
599
+ z() || e(h);
600
600
  });
601
- var g = p(f, 2);
602
- O(g, 17, () => k(r).matrix, l, (e, a) => {
603
- var c = Pe(), l = i(c), d = (e) => {
604
- var n = Ae(), r = i(n, !0);
605
- _(n), u(() => S(r, k(a)[0]?.week)), t(e, n);
601
+ var _ = m(d, 2);
602
+ O(_, 17, () => k(r).matrix, c, (e, i) => {
603
+ var s = Pe(), c = p(s), u = (e) => {
604
+ var n = Ae(), r = p(n, !0);
605
+ T(n), l(() => S(r, k(i)[0]?.week)), t(e, n);
606
606
  };
607
- n(l, (e) => {
608
- I() && e(d);
607
+ n(c, (e) => {
608
+ L() && e(u);
609
609
  });
610
- var f = p(l, 2);
611
- O(f, 17, () => k(a), (e) => e.date.getTime(), (e, a) => {
612
- let c = E(() => Z.dayState(k(a).date, k(r).month));
613
- var l = te(), d = m(l), f = (e) => {
610
+ var d = m(c, 2);
611
+ O(d, 17, () => k(i), (e) => e.date.getTime(), (e, i) => {
612
+ let s = w(() => Z.dayState(k(i).date, k(r).month));
613
+ var c = ee(), u = f(c), d = (e) => {
614
614
  var n = je();
615
615
  t(e, n);
616
616
  }, h = (e) => {
617
- var l = Ne();
618
- D(l, (e) => ({
617
+ var c = Ne();
618
+ D(c, (e) => ({
619
619
  class: "sv-cal__day",
620
620
  ...e,
621
- [v]: {
622
- "is-selected": k(c).selected,
623
- "is-today": k(c).today,
624
- "is-outside": k(c).outside,
625
- "is-important": k(c).important,
626
- "is-preview": k(c).preview,
627
- "is-focused": k(c).focused,
628
- "is-recurring": k(c).recurring
621
+ [g]: {
622
+ "is-selected": k(s).selected,
623
+ "is-today": k(s).today,
624
+ "is-outside": k(s).outside,
625
+ "is-important": k(s).important,
626
+ "is-preview": k(s).preview,
627
+ "is-focused": k(s).focused,
628
+ "is-recurring": k(s).recurring
629
629
  }
630
- }), [() => Z.dayProps(k(a), k(r).month)], void 0, void 0, "svelte-n0hrlh");
631
- var d = i(l), f = i(d, !0);
632
- _(d);
633
- var m = p(d), h = (e) => {
634
- var n = Me(), r = i(n);
635
- s(r, () => o.day, () => k(a).date, () => k(c)), _(n), t(e, n);
630
+ }), [() => Z.dayProps(k(i), k(r).month)], void 0, void 0, "svelte-n0hrlh");
631
+ var u = p(c), d = p(u, !0);
632
+ T(u);
633
+ var f = m(u), h = (e) => {
634
+ var n = Me(), r = p(n);
635
+ o(r, () => a.day, () => k(i).date, () => k(s)), T(n), t(e, n);
636
636
  };
637
- n(m, (e) => {
638
- o.day && e(h);
639
- }), _(l), u((e) => S(f, e), [() => k(a).date.getDate()]), t(e, l);
637
+ n(f, (e) => {
638
+ a.day && e(h);
639
+ }), T(c), l((e) => S(d, e), [() => k(i).date.getDate()]), t(e, c);
640
640
  };
641
- n(d, (e) => {
642
- k(c).outside && k(X) ? e(f) : e(h, -1);
643
- }), t(e, l);
644
- }), _(c), t(e, c);
645
- }), _(a), t(e, a);
646
- }), _(r), t(e, r);
647
- }, oe = (e) => {
641
+ n(u, (e) => {
642
+ k(s).outside && k(he) ? e(d) : e(h, -1);
643
+ }), t(e, c);
644
+ }), T(s), t(e, s);
645
+ }), T(i), t(e, i);
646
+ }), T(r), t(e, r);
647
+ }, ae = (e) => {
648
648
  var n = Re();
649
649
  D(n, (e) => ({
650
650
  class: "sv-cal__grid-mode",
@@ -654,15 +654,15 @@ function Ge(r, o) {
654
654
  D(r, (e) => ({
655
655
  class: "sv-cal__cell",
656
656
  ...e,
657
- [v]: {
657
+ [g]: {
658
658
  "is-today": k(n).current,
659
659
  "is-selected": k(n).selected
660
660
  }
661
661
  }), [() => Z.monthCellProps(k(n).index)], void 0, void 0, "svelte-n0hrlh");
662
- var a = i(r, !0);
663
- _(r), u(() => S(a, k(n).label)), t(e, r);
664
- }), _(n), t(e, n);
665
- }, se = (e) => {
662
+ var i = p(r, !0);
663
+ T(r), l(() => S(i, k(n).label)), t(e, r);
664
+ }), T(n), t(e, n);
665
+ }, oe = (e) => {
666
666
  var n = Be();
667
667
  D(n, (e) => ({
668
668
  class: "sv-cal__grid-mode",
@@ -672,86 +672,86 @@ function Ge(r, o) {
672
672
  D(r, (e) => ({
673
673
  class: "sv-cal__cell",
674
674
  ...e,
675
- [v]: {
675
+ [g]: {
676
676
  "is-outside": k(n).outside,
677
677
  "is-today": k(n).current,
678
678
  "is-selected": k(n).selected
679
679
  }
680
680
  }), [() => Z.yearCellProps(k(n).year)], void 0, void 0, "svelte-n0hrlh");
681
- var a = i(r, !0);
682
- _(r), u(() => S(a, k(n).year)), t(e, r);
683
- }), _(n), t(e, n);
681
+ var i = p(r, !0);
682
+ T(r), l(() => S(i, k(n).year)), t(e, r);
683
+ }), T(n), t(e, n);
684
684
  };
685
685
  n(M, (e) => {
686
- Z.mode === "month" ? e(ae) : Z.mode === "year" ? e(oe, 1) : e(se, -1);
687
- }), _(j), g(j, (e) => c(Q, e), () => k(Q));
688
- var P = p(j, 2), F = (e) => {
689
- var r = He(), o = i(r), s = i(o, !0);
690
- _(o);
691
- var c = p(o, 2), l = (e) => {
692
- var n = Ve(), r = i(n, !0);
693
- _(n), u(() => {
694
- n.disabled = H(), S(r, k(J).clear);
695
- }), a("click", n, function(...e) {
686
+ Z.mode === "month" ? e(P) : Z.mode === "year" ? e(ae, 1) : e(oe, -1);
687
+ }), T(j), h(j, (t) => e(Q, t), () => k(Q));
688
+ var F = m(j, 2), I = (e) => {
689
+ var r = He(), a = p(r), o = p(a, !0);
690
+ T(a);
691
+ var s = m(a, 2), c = (e) => {
692
+ var n = Ve(), r = p(n, !0);
693
+ T(n), l(() => {
694
+ n.disabled = U(), S(r, k(Y).clear);
695
+ }), i("click", n, function(...e) {
696
696
  Z.clearSelection?.apply(this, e);
697
697
  }), t(e, n);
698
698
  };
699
- n(c, (e) => {
700
- Z.canClear && e(l);
701
- }), _(r), u(() => {
702
- o.disabled = H(), S(s, k(J).today);
703
- }), a("click", o, function(...e) {
699
+ n(s, (e) => {
700
+ Z.canClear && e(c);
701
+ }), T(r), l(() => {
702
+ a.disabled = U(), S(o, k(Y).today);
703
+ }), i("click", a, function(...e) {
704
704
  Z.goToday?.apply(this, e);
705
705
  }), t(e, r);
706
706
  };
707
- n(P, (e) => {
708
- le() && e(F);
709
- }), _(b), ne(b, (e) => ye?.(e));
710
- var ce = p(b, 2), z = (e) => {
707
+ n(F, (e) => {
708
+ ce() && e(I);
709
+ }), T(x), ne(x, (e) => ye?.(e));
710
+ var se = m(x, 2), B = (e) => {
711
711
  var n = Ue();
712
- y(n), u((e) => {
713
- x(n, "name", o.name), ee(n, e);
712
+ _(n), l((e) => {
713
+ y(n, "name", a.name), b(n, e);
714
714
  }, [() => Z.selectedDates.map((e) => e.toISOString()).join(",")]), t(e, n);
715
715
  };
716
- n(ce, (e) => {
717
- o.name && e(z);
718
- }), _(r), u(() => {
719
- d = re(r, 1, "sv-cal svelte-n0hrlh", null, d, {
720
- "sv-cal--disabled": H(),
721
- "sv-cal--invalid": fe(),
722
- "sv-cal--with-presets": o.presets && o.presets.length,
716
+ n(se, (e) => {
717
+ a.name && e(B);
718
+ }), T(s), l(() => {
719
+ u = re(s, 1, "sv-cal svelte-n0hrlh", null, u, {
720
+ "sv-cal--disabled": U(),
721
+ "sv-cal--invalid": de(),
722
+ "sv-cal--with-presets": a.presets && a.presets.length,
723
723
  "sv-cal--band": N() === "range" || N() === "week",
724
- "sv-cal--rich": !!o.day
725
- }), x(r, "id", k(me)), x(r, "aria-label", o.label ?? k(J).label), x(r, "aria-disabled", H()), x(r, "dir", k(Y)), S(ie, Z.title), r.dir = r.dir;
726
- }), t(e, r);
727
- }, b = {
724
+ "sv-cal--rich": !!a.day
725
+ }), y(s, "id", k(pe)), y(s, "aria-label", a.label ?? k(Y).label), y(s, "aria-disabled", U()), y(s, "dir", k(X)), S(ie, Z.title), s.dir = s.dir;
726
+ }), t(r, s);
727
+ }, E = {
728
728
  label: "Calendar",
729
729
  shortcuts: "Shortcuts",
730
730
  today: "Today",
731
731
  clear: "Clear",
732
732
  prev: "Previous",
733
733
  next: "Next"
734
- }, M = C(o, "value", 3, null), N = C(o, "selectionMode", 3, "one"), ae = C(o, "min", 3, null), oe = C(o, "max", 3, null), se = C(o, "restrictedDates", 3, null), P = C(o, "importantDates", 3, null), F = C(o, "firstDayOfWeek", 3, 0), ce = C(o, "weeks", 3, 6), I = C(o, "weekNumbers", 3, !1), L = C(o, "months", 3, 1), R = C(o, "hideDayNames", 3, !1), z = C(o, "hideOtherMonthDays", 3, !1), B = C(o, "dayNameFormat", 3, "short"), V = C(o, "monthNameFormat", 3, "long"), le = C(o, "footer", 3, !1), H = C(o, "disabled", 3, !1), ue = C(o, "readonly", 3, !1), U = C(o, "locale", 19, () => typeof navigator < "u" ? navigator.language : "en-US"), W = C(o, "displayMode", 3, "month"), G = C(o, "animate", 3, !1), K = C(o, "wheelNavigation", 3, !1), q = C(o, "recurrence", 3, null), de = C(o, "required", 3, !1), fe = C(o, "invalid", 3, !1), pe = A("sv-cal"), me = E(() => o.id ?? pe), he = E(() => !!(o.label || o.hint || o.error)), J = E(() => ie(b, o.messages)), Y = E(() => o.dir === "ltr" || o.dir === "rtl" ? o.dir : void 0), X = E(() => z() || L() > 1), Z = Ce({
734
+ }, M = C(a, "value", 3, null), N = C(a, "selectionMode", 3, "one"), P = C(a, "min", 3, null), ae = C(a, "max", 3, null), oe = C(a, "restrictedDates", 3, null), F = C(a, "importantDates", 3, null), I = C(a, "firstDayOfWeek", 3, 0), se = C(a, "weeks", 3, 6), L = C(a, "weekNumbers", 3, !1), R = C(a, "months", 3, 1), z = C(a, "hideDayNames", 3, !1), B = C(a, "hideOtherMonthDays", 3, !1), V = C(a, "dayNameFormat", 3, "short"), H = C(a, "monthNameFormat", 3, "long"), ce = C(a, "footer", 3, !1), U = C(a, "disabled", 3, !1), le = C(a, "readonly", 3, !1), W = C(a, "locale", 19, () => typeof navigator < "u" ? navigator.language : "en-US"), G = C(a, "displayMode", 3, "month"), K = C(a, "animate", 3, !1), q = C(a, "wheelNavigation", 3, !1), J = C(a, "recurrence", 3, null), ue = C(a, "required", 3, !1), de = C(a, "invalid", 3, !1), fe = A("sv-cal"), pe = w(() => a.id ?? fe), me = w(() => !!(a.label || a.hint || a.error)), Y = w(() => ie(E, a.messages)), X = w(() => a.dir === "ltr" || a.dir === "rtl" ? a.dir : void 0), he = w(() => B() || R() > 1), Z = Ce({
735
735
  value: () => M(),
736
- onChange: (e) => o.onChange?.(e),
737
- onNavigate: (e, t) => o.onNavigate?.(e, t),
736
+ onChange: (e) => a.onChange?.(e),
737
+ onNavigate: (e, t) => a.onNavigate?.(e, t),
738
738
  selectionMode: () => N(),
739
- min: () => ae(),
740
- max: () => oe(),
741
- restrictedDates: () => se(),
742
- importantDates: () => P(),
743
- firstDayOfWeek: () => F(),
744
- weeks: () => ce(),
745
- months: () => L(),
746
- displayMode: () => W(),
747
- disabled: () => H(),
748
- readonly: () => ue(),
749
- locale: () => U(),
750
- dayNameFormat: () => B(),
751
- monthNameFormat: () => V(),
752
- dateTooltip: () => o.dateTooltip,
753
- recurrence: () => q()
754
- }), ge = E(() => G() === !0 ? "slide" : G() || "none"), Q = e(void 0), _e = !1;
739
+ min: () => P(),
740
+ max: () => ae(),
741
+ restrictedDates: () => oe(),
742
+ importantDates: () => F(),
743
+ firstDayOfWeek: () => I(),
744
+ weeks: () => se(),
745
+ months: () => R(),
746
+ displayMode: () => G(),
747
+ disabled: () => U(),
748
+ readonly: () => le(),
749
+ locale: () => W(),
750
+ dayNameFormat: () => V(),
751
+ monthNameFormat: () => H(),
752
+ dateTooltip: () => a.dateTooltip,
753
+ recurrence: () => J()
754
+ }), ge = w(() => K() === !0 ? "slide" : K() || "none"), Q = v(void 0), _e = !1;
755
755
  function ve() {
756
756
  if (k(ge) === "none" || !k(Q) || typeof k(Q).animate != "function") return;
757
757
  let e = k(ge) === "slide", t = Z.navDir, n = e ? t === "next" ? {
@@ -778,50 +778,50 @@ function Ge(r, o) {
778
778
  easing: "cubic-bezier(0.16, 1, 0.3, 1)"
779
779
  });
780
780
  }
781
- f(() => {
781
+ d(() => {
782
782
  if (Z.navToken, !_e) {
783
783
  _e = !0;
784
784
  return;
785
785
  }
786
- d(ve);
786
+ u(ve);
787
787
  });
788
788
  function ye(e) {
789
789
  let t = (e) => {
790
- !K() || H() || (e.preventDefault(), Z.step(e.deltaY > 0 || e.deltaX > 0 ? 1 : -1));
790
+ !q() || U() || (e.preventDefault(), Z.step(e.deltaY > 0 || e.deltaX > 0 ? 1 : -1));
791
791
  };
792
792
  return e.addEventListener("wheel", t, { passive: !1 }), { destroy: () => e.removeEventListener("wheel", t) };
793
793
  }
794
- var be = te(), xe = m(be), Se = (e) => {
794
+ var be = ee(), xe = f(be), Se = (e) => {
795
795
  j(e, {
796
796
  get id() {
797
- return k(me);
797
+ return k(pe);
798
798
  },
799
799
  get label() {
800
- return o.label;
800
+ return a.label;
801
801
  },
802
802
  get hint() {
803
- return o.hint;
803
+ return a.hint;
804
804
  },
805
805
  get error() {
806
- return o.error;
806
+ return a.error;
807
807
  },
808
808
  get required() {
809
- return de();
809
+ return ue();
810
810
  },
811
811
  get dir() {
812
- return o.dir;
812
+ return a.dir;
813
813
  },
814
814
  children: (e, t) => {
815
- h(e);
815
+ s(e);
816
816
  },
817
817
  $$slots: { default: !0 }
818
818
  });
819
819
  }, Ge = (e) => {
820
- h(e);
820
+ s(e);
821
821
  };
822
822
  n(xe, (e) => {
823
- k(he) ? e(Se) : e(Ge, -1);
824
- }), t(r, be), w();
823
+ k(me) ? e(Se) : e(Ge, -1);
824
+ }), t(r, be), te();
825
825
  }
826
826
  r(["click"]);
827
827
  //#endregion
@@ -1125,4 +1125,4 @@ function it(e, t, n = "en-US", r = 2029, i) {
1125
1125
  return o.day != null && m.getDate() !== p || o.month != null && m.getMonth() !== f || isNaN(m.getTime()) ? null : m;
1126
1126
  }
1127
1127
  //#endregion
1128
- export { B as a, U as c, Y as i, it as n, N as o, Ge as r, M as s, et as t };
1128
+ export { V as a, W as c, X as i, it as n, N as o, Ge as r, M as s, et as t };