monobill-mintui 0.6.641 → 0.6.643

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 (106) hide show
  1. package/dist/components/alert/browser.js +3 -3
  2. package/dist/components/alert/index.cjs +1 -1
  3. package/dist/components/alert/index.js +3 -3
  4. package/dist/components/back-button/browser.js +2 -2
  5. package/dist/components/back-button/index.cjs +1 -1
  6. package/dist/components/back-button/index.js +2 -2
  7. package/dist/components/bottom-navigation/browser.js +2 -2
  8. package/dist/components/bottom-navigation/index.cjs +1 -1
  9. package/dist/components/bottom-navigation/index.js +2 -2
  10. package/dist/components/button/browser.js +1 -1
  11. package/dist/components/button/index.cjs +1 -1
  12. package/dist/components/button/index.js +1 -1
  13. package/dist/components/checkbox/browser.js +2 -2
  14. package/dist/components/checkbox/index.cjs +1 -1
  15. package/dist/components/checkbox/index.js +2 -2
  16. package/dist/components/chip/browser.js +1 -1
  17. package/dist/components/chip/index.cjs +1 -1
  18. package/dist/components/chip/index.js +1 -1
  19. package/dist/components/chunks/{button-BNLP47mK.js → button-DMoaxqbf.js} +1 -1
  20. package/dist/components/chunks/{button-DPSkBQsf.js → button-hmAnS0R0.js} +2 -2
  21. package/dist/components/chunks/{caret-down-BEZ03ALe.js → caret-down-DpiutKeA.js} +1 -1
  22. package/dist/components/chunks/caret-down-ZX0Kvdb5.js +1 -0
  23. package/dist/components/chunks/{caret-right-B2bXPFkY.js → caret-right-CDPbeTEb.js} +1 -1
  24. package/dist/components/chunks/caret-right-DzhujJ3u.js +1 -0
  25. package/dist/components/chunks/{caret-up-DPGZf8ya.js → caret-up-BgQx7BXU.js} +1 -1
  26. package/dist/components/chunks/caret-up-bxudEL8g.js +1 -0
  27. package/dist/components/chunks/{chip-Dl4i0Kiy.js → chip-CVJdu4J8.js} +3 -3
  28. package/dist/components/chunks/{chip-QIGZRmc3.js → chip-dr93YHC5.js} +1 -1
  29. package/dist/components/chunks/{close-yUq-JzG7.js → close-3IqD6I8C.js} +1 -1
  30. package/dist/components/chunks/close-CwUdQlxT.js +1 -0
  31. package/dist/components/chunks/{confirm-action-BQVO6aFn.js → confirm-action-B1uUHkvF.js} +1 -1
  32. package/dist/components/chunks/{confirm-action-THfH8TEH.js → confirm-action-Cf0A7PG_.js} +2 -2
  33. package/dist/components/chunks/{icon-NUvffC5m.js → icon-C-eV4VGF.js} +21 -14
  34. package/dist/components/chunks/icon-DF1kvSw1.js +1 -0
  35. package/dist/components/chunks/icon-DiWej_T-.js +1 -0
  36. package/dist/components/chunks/{icon-JJfYHBiG.js → icon-FUJudEjA.js} +11 -1
  37. package/dist/components/chunks/{input-D_Lw8-Tf.js → input--6oYmnY6.js} +4 -4
  38. package/dist/components/chunks/{input-BYgCqs0P.js → input-xoRzxNGy.js} +1 -1
  39. package/dist/components/chunks/{modal-DVc8n49b.js → modal-CAuR_w-x.js} +2 -2
  40. package/dist/components/chunks/{modal-B8dq9uff.js → modal-aRP0z0wD.js} +1 -1
  41. package/dist/components/chunks/{search-B2lYd40B.js → search-Bb5GNX7M.js} +1 -1
  42. package/dist/components/chunks/search-Bfjmwor1.js +1 -0
  43. package/dist/components/confirm-action/browser.js +1 -1
  44. package/dist/components/confirm-action/index.cjs +1 -1
  45. package/dist/components/confirm-action/index.js +1 -1
  46. package/dist/components/date-picker/browser.js +4 -4
  47. package/dist/components/date-picker/index.cjs +1 -1
  48. package/dist/components/date-picker/index.js +4 -4
  49. package/dist/components/dropzone/browser.js +3 -3
  50. package/dist/components/dropzone/index.cjs +1 -1
  51. package/dist/components/dropzone/index.js +3 -3
  52. package/dist/components/icon/browser.js +1 -1
  53. package/dist/components/icon/icons/index.d.ts +1 -0
  54. package/dist/components/icon/icons/index.d.ts.map +1 -1
  55. package/dist/components/icon/icons/products.d.ts +3 -0
  56. package/dist/components/icon/icons/products.d.ts.map +1 -0
  57. package/dist/components/icon/index.cjs +1 -1
  58. package/dist/components/icon/index.js +1 -1
  59. package/dist/components/input/browser.js +1 -1
  60. package/dist/components/input/index.cjs +1 -1
  61. package/dist/components/input/index.js +1 -1
  62. package/dist/components/modal/browser.js +1 -1
  63. package/dist/components/modal/index.cjs +1 -1
  64. package/dist/components/modal/index.js +1 -1
  65. package/dist/components/navigation/browser.js +2 -2
  66. package/dist/components/navigation/index.cjs +1 -1
  67. package/dist/components/navigation/index.js +2 -2
  68. package/dist/components/off-canvas/browser.js +2 -2
  69. package/dist/components/off-canvas/index.cjs +1 -1
  70. package/dist/components/off-canvas/index.js +2 -2
  71. package/dist/components/resource-table/browser.js +7 -7
  72. package/dist/components/resource-table/index.cjs +1 -1
  73. package/dist/components/resource-table/index.js +7 -7
  74. package/dist/components/search/browser.js +7 -7
  75. package/dist/components/search/index.cjs +1 -1
  76. package/dist/components/search/index.js +7 -7
  77. package/dist/components/select/browser.js +4 -4
  78. package/dist/components/select/index.cjs +1 -1
  79. package/dist/components/select/index.js +4 -4
  80. package/dist/components/side-navigation/browser.js +4 -4
  81. package/dist/components/side-navigation/index.cjs +1 -1
  82. package/dist/components/side-navigation/index.js +4 -4
  83. package/dist/components/switch/browser.js +2 -2
  84. package/dist/components/switch/index.cjs +1 -1
  85. package/dist/components/switch/index.js +2 -2
  86. package/dist/components/tags/browser.js +3 -3
  87. package/dist/components/tags/index.cjs +1 -1
  88. package/dist/components/tags/index.js +3 -3
  89. package/dist/components/time-picker/browser.js +2 -2
  90. package/dist/components/time-picker/index.cjs +1 -1
  91. package/dist/components/time-picker/index.js +2 -2
  92. package/dist/components/tree/browser.js +3 -3
  93. package/dist/components/tree/index.cjs +1 -1
  94. package/dist/components/tree/index.js +3 -3
  95. package/dist/icons/products.svg +11 -0
  96. package/dist/index.cjs +16 -6
  97. package/dist/index.js +161 -154
  98. package/dist/navigation-search.json +7 -0
  99. package/package.json +1 -1
  100. package/dist/components/chunks/caret-down-BAb6wdmc.js +0 -1
  101. package/dist/components/chunks/caret-right-DJGdf2wM.js +0 -1
  102. package/dist/components/chunks/caret-up-CjzR9-3k.js +0 -1
  103. package/dist/components/chunks/close-BzkX2kT6.js +0 -1
  104. package/dist/components/chunks/icon--Phz6jFp.js +0 -1
  105. package/dist/components/chunks/icon-Cvg6P_4Z.js +0 -1
  106. package/dist/components/chunks/search-BrcqVhiu.js +0 -1
package/dist/index.js CHANGED
@@ -1362,9 +1362,16 @@ var Ut = {
1362
1362
  strokeWidth: "1.8"
1363
1363
  };
1364
1364
  s(Ut);
1365
+ var Wt = {
1366
+ name: "products",
1367
+ viewBox: "0 0 24 24",
1368
+ path: "M8 7h3l7 7-9 9-7-7v-5a4 4 0 014-4z",
1369
+ customSvg: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <defs>\n <mask id=\"products-front-tag-mask\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"24\" height=\"24\">\n <rect width=\"24\" height=\"24\" fill=\"white\" />\n <path d=\"M8 7h3l7 7-9 9-7-7v-5a4 4 0 014-4z\" fill=\"black\" stroke=\"none\" />\n </mask>\n </defs>\n <path d=\"M12 2h3l7 7-9 9-8-8V6a4 4 0 014-4z\" mask=\"url(#products-front-tag-mask)\" />\n <path d=\"M8 7h3l7 7-9 9-7-7v-5a4 4 0 014-4z\" />\n <circle cx=\"7.5\" cy=\"11.5\" r=\"0.7\" />\n</svg>"
1370
+ };
1371
+ s(Wt);
1365
1372
  //#endregion
1366
1373
  //#region src/components/icon/icons/loyalty-points.js
1367
- var Wt = {
1374
+ var Gt = {
1368
1375
  name: "loyalty-points",
1369
1376
  viewBox: "0 0 24 24",
1370
1377
  path: "M12 3l2.4 4.8 5.3.8-3.8 3.7.9 5.2-4.8-2.5-4.8 2.5.9-5.2-3.8-3.7 5.3-.8L12 3zm-3 13v5l3-1.7 3 1.7v-5",
@@ -1372,10 +1379,10 @@ var Wt = {
1372
1379
  strokeLinejoin: "round",
1373
1380
  strokeWidth: "1.8"
1374
1381
  };
1375
- s(Wt);
1382
+ s(Gt);
1376
1383
  //#endregion
1377
1384
  //#region src/components/icon/icons/membership.js
1378
- var Gt = {
1385
+ var Kt = {
1379
1386
  name: "membership",
1380
1387
  viewBox: "0 0 24 24",
1381
1388
  path: "M5 3.5h14a2 2 0 012 2v13a2 2 0 01-2 2H5a2 2 0 01-2-2v-13a2 2 0 012-2zm-2 4h12m2-4v6l1.5-1.2L20 9.5v-6M8.5 11.5a1.3 1.3 0 100 2.6 1.3 1.3 0 000-2.6zm-2.3 5.1c.5-.9 1.3-1.3 2.3-1.3s1.8.4 2.3 1.3M13.5 12.5h4.5m-4.5 3h4.5",
@@ -1383,10 +1390,10 @@ var Gt = {
1383
1390
  strokeLinejoin: "round",
1384
1391
  strokeWidth: "1.8"
1385
1392
  };
1386
- s(Gt);
1393
+ s(Kt);
1387
1394
  //#endregion
1388
1395
  //#region src/components/icon/icons/inventory.js
1389
- var Kt = {
1396
+ var qt = {
1390
1397
  name: "inventory",
1391
1398
  viewBox: "0 0 24 24",
1392
1399
  path: "M8 4h8a2 2 0 012 2v1h2v14H4V7h2V6a2 2 0 012-2zm1 0V3h6v1M8 11h8m-8 4h8",
@@ -1394,10 +1401,10 @@ var Kt = {
1394
1401
  strokeLinejoin: "round",
1395
1402
  strokeWidth: "1.8"
1396
1403
  };
1397
- s(Kt);
1404
+ s(qt);
1398
1405
  //#endregion
1399
1406
  //#region src/components/icon/icons/out-of-stock.js
1400
- var qt = {
1407
+ var Jt = {
1401
1408
  name: "out-of-stock",
1402
1409
  viewBox: "0 0 24 24",
1403
1410
  path: "M4 5h16v14H4V5zm3 3l10 8m0-8L7 16m-3 5h16",
@@ -1405,10 +1412,10 @@ var qt = {
1405
1412
  strokeLinejoin: "round",
1406
1413
  strokeWidth: "1.8"
1407
1414
  };
1408
- s(qt);
1415
+ s(Jt);
1409
1416
  //#endregion
1410
1417
  //#region src/components/icon/icons/pickup.js
1411
- var Jt = {
1418
+ var Yt = {
1412
1419
  name: "pickup",
1413
1420
  viewBox: "0 0 24 24",
1414
1421
  path: "M5.5 2.8a1.6 1.6 0 100 3.2 1.6 1.6 0 000-3.2zm-.8 5.1-1 5.8 2.2 1.7 2.5 5.1m-4.7-6.8L2.5 20m2.2-12.1 3.8 2.8 3.2.1m-.2-5.1l4.5-2 4.5 2-4.5 2-4.5-2zm0 0v5l4.5 2 4.5-2v-5m-4.5 1v6.5",
@@ -1416,10 +1423,10 @@ var Jt = {
1416
1423
  strokeLinejoin: "round",
1417
1424
  strokeWidth: "1.8"
1418
1425
  };
1419
- s(Jt);
1426
+ s(Yt);
1420
1427
  //#endregion
1421
1428
  //#region src/components/icon/icons/secure-checkout.js
1422
- var Yt = {
1429
+ var Xt = {
1423
1430
  name: "secure-checkout",
1424
1431
  viewBox: "0 0 24 24",
1425
1432
  path: "M12 3l7 3v5c0 5-3 8-7 10-4-2-7-5-7-10V6l7-3zm-3 9l2 2 4-4",
@@ -1427,10 +1434,10 @@ var Yt = {
1427
1434
  strokeLinejoin: "round",
1428
1435
  strokeWidth: "1.8"
1429
1436
  };
1430
- s(Yt);
1437
+ s(Xt);
1431
1438
  //#endregion
1432
1439
  //#region src/components/icon/icons/refund.js
1433
- var Xt = {
1440
+ var Zt = {
1434
1441
  name: "refund",
1435
1442
  viewBox: "0 0 24 24",
1436
1443
  path: "M14 5.5a6.5 6.5 0 110 13 6.5 6.5 0 010-13zm0 2.5v8m2-6.2c-.4-.8-1.1-1.2-2-1.2-1.2 0-2 .6-2 1.5 0 2 4 1 4 3s-.8 1.6-2 1.6c-.9 0-1.7-.4-2.1-1.2M6.5 7H3m0 0l2-2M3 7l2 2",
@@ -1438,10 +1445,10 @@ var Xt = {
1438
1445
  strokeLinejoin: "round",
1439
1446
  strokeWidth: "1.5"
1440
1447
  };
1441
- s(Xt), s(u), s(d), s(f), s(p), s(m), s(h), s(g), s(_), s(v), s(y), s(b), s(x), s(S), s(C), s(w), s(T), s(E), s(D), s(O), s(k), s(A), s(j), s(ee), s(te), s(ne), s(re), s(ie), s(ae), s(oe), s(se), s(ce), s(le), s(ue), s(de), s(fe), s(pe), s(me), s(he), s(ge), s(_e), s(ve), s(ye), s(be), s(xe), s(Se), s(Ce), s(we), s(Te), s(Ee), s(De), s(Oe), s(ke), s(Ae), s(je), s(Me), s(Ne), s(Pe), s(Fe), s(Ie), s(Le), s(Re), s(ze), s(Be), s(Ve), s(He), s(Ue), s(We), s(Ge), s(Ke), s(qe), s(Je), s(Ye), s(Xe), s(Ze), s(Qe), s($e), s(et), s(tt), s(nt), s(rt), s(it), s(at), s(ot), s(st), s(ct), s(lt), s(ut), s(dt), s(ft), s(pt), s(mt), s(ht), s(gt), s(_t), s(vt), s(yt), s(bt), s(xt), s(St), s(Ct), s(wt), s(Tt), s(Et), s(Dt), s(Ot), s(kt), s(At), s(jt), s(Mt), s(Nt), s(Pt), s(Ft), s(It), s(Lt), s(Rt), s(zt), s(Bt), s(Vt), s(Ht), s(Ut), s(Wt), s(Gt), s(Kt), s(qt), s(Jt), s(Yt), s(Xt);
1448
+ s(Zt), s(u), s(d), s(f), s(p), s(m), s(h), s(g), s(_), s(v), s(y), s(b), s(x), s(S), s(C), s(w), s(T), s(E), s(D), s(O), s(k), s(A), s(j), s(ee), s(te), s(ne), s(re), s(ie), s(ae), s(oe), s(se), s(ce), s(le), s(ue), s(de), s(fe), s(pe), s(me), s(he), s(ge), s(_e), s(ve), s(ye), s(be), s(xe), s(Se), s(Ce), s(we), s(Te), s(Ee), s(De), s(Oe), s(ke), s(Ae), s(je), s(Me), s(Ne), s(Pe), s(Fe), s(Ie), s(Le), s(Re), s(ze), s(Be), s(Ve), s(He), s(Ue), s(We), s(Ge), s(Ke), s(qe), s(Je), s(Ye), s(Xe), s(Ze), s(Qe), s($e), s(et), s(tt), s(nt), s(rt), s(it), s(at), s(ot), s(st), s(ct), s(lt), s(ut), s(dt), s(ft), s(pt), s(mt), s(ht), s(gt), s(_t), s(vt), s(yt), s(bt), s(xt), s(St), s(Ct), s(wt), s(Tt), s(Et), s(Dt), s(Ot), s(kt), s(At), s(jt), s(Mt), s(Nt), s(Pt), s(Ft), s(It), s(Lt), s(Rt), s(zt), s(Bt), s(Vt), s(Ht), s(Ut), s(Wt), s(Gt), s(Kt), s(qt), s(Jt), s(Yt), s(Xt), s(Zt);
1442
1449
  //#endregion
1443
1450
  //#region src/components/spinner/Spinner.js
1444
- var Zt = class extends HTMLElement {
1451
+ var Qt = class extends HTMLElement {
1445
1452
  static get observedAttributes() {
1446
1453
  return [
1447
1454
  "size",
@@ -1544,7 +1551,7 @@ var Zt = class extends HTMLElement {
1544
1551
  `.trim();
1545
1552
  }
1546
1553
  };
1547
- typeof customElements < "u" && !customElements.get("mint-spinner") && a("mint-spinner", Zt);
1554
+ typeof customElements < "u" && !customElements.get("mint-spinner") && a("mint-spinner", Qt);
1548
1555
  //#endregion
1549
1556
  //#region src/components/button/Button.ts
1550
1557
  var M = class extends HTMLElement {
@@ -1921,7 +1928,7 @@ var M = class extends HTMLElement {
1921
1928
  customElements.get("mint-button") || a("mint-button", M);
1922
1929
  //#endregion
1923
1930
  //#region src/components/switch/Switch.js
1924
- var Qt = class extends HTMLElement {
1931
+ var $t = class extends HTMLElement {
1925
1932
  static get observedAttributes() {
1926
1933
  return [
1927
1934
  "checked",
@@ -2102,10 +2109,10 @@ var Qt = class extends HTMLElement {
2102
2109
  n && (n.id = `${e}-info`, t.push(n.id)), r && (r.id = `${e}-error`, t.push(r.id)), t.length ? this._button.setAttribute("aria-describedby", Array.from(new Set(t)).join(" ")) : this._button.removeAttribute("aria-describedby");
2103
2110
  }
2104
2111
  };
2105
- customElements.get("mint-switch") || a("mint-switch", Qt);
2112
+ customElements.get("mint-switch") || a("mint-switch", $t);
2106
2113
  //#endregion
2107
2114
  //#region src/components/text/Text.js
2108
- var $t = class extends HTMLElement {
2115
+ var en = class extends HTMLElement {
2109
2116
  static get observedAttributes() {
2110
2117
  return [
2111
2118
  "variant",
@@ -2167,10 +2174,10 @@ var $t = class extends HTMLElement {
2167
2174
  }
2168
2175
  render() {}
2169
2176
  };
2170
- typeof customElements < "u" && !customElements.get("mint-text") && a("mint-text", $t);
2177
+ typeof customElements < "u" && !customElements.get("mint-text") && a("mint-text", en);
2171
2178
  //#endregion
2172
2179
  //#region src/components/stack/Stack.js
2173
- var en = class extends HTMLElement {
2180
+ var tn = class extends HTMLElement {
2174
2181
  static get observedAttributes() {
2175
2182
  return [
2176
2183
  "direction",
@@ -2218,10 +2225,10 @@ var en = class extends HTMLElement {
2218
2225
  }[t] : "flex-start"), this.style.setProperty("--mint-stack-text-align", n || "initial");
2219
2226
  }
2220
2227
  };
2221
- typeof customElements < "u" && !customElements.get("mint-stack") && a("mint-stack", en);
2228
+ typeof customElements < "u" && !customElements.get("mint-stack") && a("mint-stack", tn);
2222
2229
  //#endregion
2223
2230
  //#region src/components/card/Card.js
2224
- var tn = class extends HTMLElement {
2231
+ var nn = class extends HTMLElement {
2225
2232
  static get observedAttributes() {
2226
2233
  return ["heading", "flush"];
2227
2234
  }
@@ -2251,10 +2258,10 @@ var tn = class extends HTMLElement {
2251
2258
  e ? (this._headingElement || (this._headingElement = document.createElement("mint-text"), this._headingElement.setAttribute("size", "sub-heading"), this._headingElement.setAttribute("role", "heading"), this._headingElement.setAttribute("aria-level", "2"), this.insertBefore(this._headingElement, this.firstChild)), this._headingElement.textContent = e) : this._headingElement?.parentNode && (this._headingElement.remove(), this._headingElement = null);
2252
2259
  }
2253
2260
  };
2254
- typeof customElements < "u" && !customElements.get("mint-card") && a("mint-card", tn);
2261
+ typeof customElements < "u" && !customElements.get("mint-card") && a("mint-card", nn);
2255
2262
  //#endregion
2256
2263
  //#region src/components/link/Link.js
2257
- var nn = class extends HTMLElement {
2264
+ var rn = class extends HTMLElement {
2258
2265
  static get observedAttributes() {
2259
2266
  return ["href", "target"];
2260
2267
  }
@@ -2287,10 +2294,10 @@ var nn = class extends HTMLElement {
2287
2294
  this._link.className = n.filter(Boolean).join(" ");
2288
2295
  }
2289
2296
  };
2290
- typeof customElements < "u" && !customElements.get("mint-link") && a("mint-link", nn);
2297
+ typeof customElements < "u" && !customElements.get("mint-link") && a("mint-link", rn);
2291
2298
  //#endregion
2292
2299
  //#region src/components/page/Page.js
2293
- var rn = class extends HTMLElement {
2300
+ var an = class extends HTMLElement {
2294
2301
  static get observedAttributes() {
2295
2302
  return [
2296
2303
  "heading",
@@ -2345,19 +2352,19 @@ var rn = class extends HTMLElement {
2345
2352
  this.dispatchEvent(i) && (n && window.history.length > 1 ? window.history.back() : window.location.href = this.getFallbackHref());
2346
2353
  }
2347
2354
  };
2348
- typeof customElements < "u" && !customElements.get("mint-page") && a("mint-page", rn);
2355
+ typeof customElements < "u" && !customElements.get("mint-page") && a("mint-page", an);
2349
2356
  //#endregion
2350
2357
  //#region src/components/grid/Grid.js
2351
- var an = class extends HTMLElement {
2358
+ var on = class extends HTMLElement {
2352
2359
  constructor() {
2353
2360
  super();
2354
2361
  }
2355
2362
  };
2356
- typeof customElements < "u" && !customElements.get("mint-grid") && a("mint-grid", an);
2363
+ typeof customElements < "u" && !customElements.get("mint-grid") && a("mint-grid", on);
2357
2364
  //#endregion
2358
2365
  //#region src/components/modal/Modal.js
2359
2366
  var N = /* @__PURE__ */ new Set(), P = null;
2360
- function on(e) {
2367
+ function sn(e) {
2361
2368
  if (!N.has(e)) {
2362
2369
  if (N.size === 0) {
2363
2370
  let e = document.documentElement;
@@ -2381,7 +2388,7 @@ function F(e) {
2381
2388
  behavior: "instant"
2382
2389
  });
2383
2390
  }
2384
- var sn = class extends HTMLElement {
2391
+ var cn = class extends HTMLElement {
2385
2392
  static get observedAttributes() {
2386
2393
  return [
2387
2394
  "id",
@@ -2427,7 +2434,7 @@ var sn = class extends HTMLElement {
2427
2434
  let e = this.getId(), t = this.getHeading(), n = this.isOpen();
2428
2435
  if (e && (this.id = e), this._overlay || (this._overlay = document.createElement("div"), this._overlay.className = "mint-modal-overlay", this._overlay.addEventListener("click", () => this.close()), this.appendChild(this._overlay)), this._modal || (this._modal = document.createElement("div"), this._modal.className = "mint-modal-shell", this.appendChild(this._modal)), n) {
2429
2436
  let e = this._modal.querySelector(".modal-content");
2430
- e || (e = document.createElement("div"), e.className = "modal-content", this._modal.appendChild(e)), this._renderedOpen || (this._renderedOpen = !0, on(this), this._animateEnter());
2437
+ e || (e = document.createElement("div"), e.className = "modal-content", this._modal.appendChild(e)), this._renderedOpen || (this._renderedOpen = !0, sn(this), this._animateEnter());
2431
2438
  } else this._renderedOpen && (this._renderedOpen = !1, this._animateExit());
2432
2439
  let r = this._modal.querySelector(".modal-content");
2433
2440
  r || (r = document.createElement("div"), r.className = "modal-content", this._modal.appendChild(r)), this._header || (this._header = document.createElement("div"), this._header.className = "mint-modal-header", r.appendChild(this._header)), this._headingSlot || (this._headingSlot = document.createElement("div"), this._headingSlot.className = "mint-modal-heading", this._headingSlot.setAttribute("slot", "heading"), this._header.appendChild(this._headingSlot));
@@ -2527,15 +2534,15 @@ var sn = class extends HTMLElement {
2527
2534
  }, 280);
2528
2535
  }
2529
2536
  };
2530
- typeof customElements < "u" && !customElements.get("mint-modal") && a("mint-modal", sn);
2537
+ typeof customElements < "u" && !customElements.get("mint-modal") && a("mint-modal", cn);
2531
2538
  //#endregion
2532
2539
  //#region src/components/popover/Popover.js
2533
- var cn = new Set([
2540
+ var ln = new Set([
2534
2541
  "up",
2535
2542
  "down",
2536
2543
  "left",
2537
2544
  "right"
2538
- ]), ln = class extends HTMLElement {
2545
+ ]), un = class extends HTMLElement {
2539
2546
  static get observedAttributes() {
2540
2547
  return [
2541
2548
  "direction",
@@ -2562,7 +2569,7 @@ var cn = new Set([
2562
2569
  }
2563
2570
  getDirection() {
2564
2571
  let e = this.getAttribute("direction") || "down";
2565
- return cn.has(e) ? e : "down";
2572
+ return ln.has(e) ? e : "down";
2566
2573
  }
2567
2574
  getTriggerId() {
2568
2575
  return this.getAttribute("trigger-id") || "";
@@ -2715,7 +2722,7 @@ var cn = new Set([
2715
2722
  } else this.dataset.state = "closed";
2716
2723
  }
2717
2724
  };
2718
- typeof customElements < "u" && !customElements.get("mint-popover") && a("mint-popover", ln), s({
2725
+ typeof customElements < "u" && !customElements.get("mint-popover") && a("mint-popover", un), s({
2719
2726
  name: "check",
2720
2727
  viewBox: "0 0 24 24",
2721
2728
  path: "M5 13l4 4L19 7",
@@ -2725,7 +2732,7 @@ typeof customElements < "u" && !customElements.get("mint-popover") && a("mint-po
2725
2732
  });
2726
2733
  //#endregion
2727
2734
  //#region src/components/checkbox/Checkbox.js
2728
- var un = class extends HTMLElement {
2735
+ var dn = class extends HTMLElement {
2729
2736
  static get observedAttributes() {
2730
2737
  return [
2731
2738
  "checked",
@@ -2856,10 +2863,10 @@ var un = class extends HTMLElement {
2856
2863
  }
2857
2864
  }
2858
2865
  };
2859
- typeof customElements < "u" && !customElements.get("mint-checkbox") && a("mint-checkbox", un);
2866
+ typeof customElements < "u" && !customElements.get("mint-checkbox") && a("mint-checkbox", dn);
2860
2867
  //#endregion
2861
2868
  //#region src/components/choice/Choice.js
2862
- var dn = class extends HTMLElement {
2869
+ var fn = class extends HTMLElement {
2863
2870
  static get observedAttributes() {
2864
2871
  return [
2865
2872
  "checked",
@@ -3078,7 +3085,7 @@ var dn = class extends HTMLElement {
3078
3085
  this.dispatchEvent(t);
3079
3086
  }
3080
3087
  }
3081
- }, fn = class extends HTMLElement {
3088
+ }, pn = class extends HTMLElement {
3082
3089
  static get observedAttributes() {
3083
3090
  return [
3084
3091
  "value",
@@ -3112,7 +3119,7 @@ var dn = class extends HTMLElement {
3112
3119
  r || (r = document.createElement("span"), r.className = "mint-choice-option-label", n.appendChild(r)), r.textContent = this._labelText;
3113
3120
  }
3114
3121
  };
3115
- typeof customElements < "u" && !customElements.get("mint-choice") && a("mint-choice", dn), typeof customElements < "u" && !customElements.get("mint-choice-option") && a("mint-choice-option", fn), s({
3122
+ typeof customElements < "u" && !customElements.get("mint-choice") && a("mint-choice", fn), typeof customElements < "u" && !customElements.get("mint-choice-option") && a("mint-choice-option", pn), s({
3116
3123
  name: "arrow-left",
3117
3124
  viewBox: "0 0 24 24",
3118
3125
  path: "M19 12H5m7-7l-7 7 7 7",
@@ -3121,7 +3128,7 @@ typeof customElements < "u" && !customElements.get("mint-choice") && a("mint-cho
3121
3128
  });
3122
3129
  //#endregion
3123
3130
  //#region src/components/button/Button.js
3124
- var pn = class extends HTMLElement {
3131
+ var mn = class extends HTMLElement {
3125
3132
  static get observedAttributes() {
3126
3133
  return [
3127
3134
  "variant",
@@ -3281,10 +3288,10 @@ var pn = class extends HTMLElement {
3281
3288
  });
3282
3289
  }
3283
3290
  };
3284
- typeof customElements < "u" && !customElements.get("mint-button") && a("mint-button", pn);
3291
+ typeof customElements < "u" && !customElements.get("mint-button") && a("mint-button", mn);
3285
3292
  //#endregion
3286
3293
  //#region src/components/back-button/BackButton.js
3287
- var mn = class extends HTMLElement {
3294
+ var hn = class extends HTMLElement {
3288
3295
  static get observedAttributes() {
3289
3296
  return ["href", "fallback-href"];
3290
3297
  }
@@ -3328,10 +3335,10 @@ var mn = class extends HTMLElement {
3328
3335
  this._button || (this._button = document.createElement("mint-button"), this._button.setAttribute("variant", "neutral"), this._button.setAttribute("icon", "arrow-left"), this._button.addEventListener("click", (e) => this.handleClick(e)), this.appendChild(this._button));
3329
3336
  }
3330
3337
  };
3331
- typeof customElements < "u" && !customElements.get("mint-back-button") && a("mint-back-button", mn);
3338
+ typeof customElements < "u" && !customElements.get("mint-back-button") && a("mint-back-button", hn);
3332
3339
  //#endregion
3333
3340
  //#region src/components/navigation/Navigation.js
3334
- var hn = 0, gn = class extends HTMLElement {
3341
+ var gn = 0, _n = class extends HTMLElement {
3335
3342
  static get observedAttributes() {
3336
3343
  return [
3337
3344
  "brand",
@@ -3343,7 +3350,7 @@ var hn = 0, gn = class extends HTMLElement {
3343
3350
  ];
3344
3351
  }
3345
3352
  constructor() {
3346
- super(), this._built = !1, this._brand = null, this._brandLink = null, this._leadingActions = null, this._items = null, this._toggle = null, this._toggleLabel = null, this._mobileActions = null, this._mobileActionNodes = [], this._instanceId = ++hn, this._dropdowns = [], this._content = null, this._actions = null, this._activeDropdown = null, this._layoutObserver = null;
3353
+ super(), this._built = !1, this._brand = null, this._brandLink = null, this._leadingActions = null, this._items = null, this._toggle = null, this._toggleLabel = null, this._mobileActions = null, this._mobileActionNodes = [], this._instanceId = ++gn, this._dropdowns = [], this._content = null, this._actions = null, this._activeDropdown = null, this._layoutObserver = null;
3347
3354
  }
3348
3355
  connectedCallback() {
3349
3356
  this._built || this._build(), this._observeDropdowns(), this._syncResponsiveDropdowns(), this._syncMobileActions(), typeof ResizeObserver < "u" && (this._layoutObserver = new ResizeObserver(() => {
@@ -3503,7 +3510,7 @@ var hn = 0, gn = class extends HTMLElement {
3503
3510
  this.hasAttribute("open") ? this.closeMenu() : this.openMenu();
3504
3511
  }
3505
3512
  };
3506
- typeof customElements < "u" && !customElements.get("mint-navigation") && a("mint-navigation", gn), s({
3513
+ typeof customElements < "u" && !customElements.get("mint-navigation") && a("mint-navigation", _n), s({
3507
3514
  name: "info",
3508
3515
  viewBox: "0 0 24 24",
3509
3516
  path: "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z",
@@ -3537,7 +3544,7 @@ typeof customElements < "u" && !customElements.get("mint-navigation") && a("mint
3537
3544
  });
3538
3545
  //#endregion
3539
3546
  //#region src/components/alert/Alert.ts
3540
- var _n = class extends HTMLElement {
3547
+ var vn = class extends HTMLElement {
3541
3548
  static get observedAttributes() {
3542
3549
  return [
3543
3550
  "heading",
@@ -3653,7 +3660,7 @@ var _n = class extends HTMLElement {
3653
3660
  }
3654
3661
  }
3655
3662
  };
3656
- customElements.get("mint-alert") || a("mint-alert", _n);
3663
+ customElements.get("mint-alert") || a("mint-alert", vn);
3657
3664
  //#endregion
3658
3665
  //#region src/components/bottom-navigation/BottomNavigation.ts
3659
3666
  var I = class extends HTMLElement {
@@ -3684,7 +3691,7 @@ var I = class extends HTMLElement {
3684
3691
  customElements.get("mint-bottom-navigation") || a("mint-bottom-navigation", I);
3685
3692
  //#endregion
3686
3693
  //#region src/components/bottom-navigation/BottomNavItem.ts
3687
- var vn = class extends HTMLElement {
3694
+ var yn = class extends HTMLElement {
3688
3695
  constructor(...e) {
3689
3696
  super(...e), this._root = null;
3690
3697
  }
@@ -3728,10 +3735,10 @@ var vn = class extends HTMLElement {
3728
3735
  s.className = "mint-bottom-nav-label", s.textContent = t, i.appendChild(o), i.appendChild(s), this.replaceChildren(i), this._root = i;
3729
3736
  }
3730
3737
  };
3731
- customElements.get("mint-bottom-nav-item") || a("mint-bottom-nav-item", vn);
3738
+ customElements.get("mint-bottom-nav-item") || a("mint-bottom-nav-item", yn);
3732
3739
  //#endregion
3733
3740
  //#region src/components/bottom-navigation/index.ts
3734
- var yn = I, bn = class e extends HTMLElement {
3741
+ var bn = I, xn = class e extends HTMLElement {
3735
3742
  static get observedAttributes() {
3736
3743
  return [
3737
3744
  "type",
@@ -5056,10 +5063,10 @@ var yn = I, bn = class e extends HTMLElement {
5056
5063
  });
5057
5064
  }
5058
5065
  };
5059
- customElements.get("mint-chart") || a("mint-chart", bn);
5066
+ customElements.get("mint-chart") || a("mint-chart", xn);
5060
5067
  //#endregion
5061
5068
  //#region src/components/chip/Chip.ts
5062
- var xn = class extends HTMLElement {
5069
+ var Sn = class extends HTMLElement {
5063
5070
  constructor(...e) {
5064
5071
  super(...e), this._root = null, this._label = null, this._dismissBtn = null, this._clickHandler = null;
5065
5072
  }
@@ -5109,10 +5116,10 @@ var xn = class extends HTMLElement {
5109
5116
  }, e.addEventListener("click", this._clickHandler), this._dismissBtn = e;
5110
5117
  }
5111
5118
  };
5112
- customElements.get("mint-chip") || a("mint-chip", xn);
5119
+ customElements.get("mint-chip") || a("mint-chip", Sn);
5113
5120
  //#endregion
5114
5121
  //#region src/components/clickable/Clickable.ts
5115
- var Sn = class extends HTMLElement {
5122
+ var Cn = class extends HTMLElement {
5116
5123
  constructor(...e) {
5117
5124
  super(...e), this._clickHandler = null, this._keydownHandler = null, this._target = null, this._observer = null, this._managedRole = !1, this._managedTabindex = !1;
5118
5125
  }
@@ -5171,10 +5178,10 @@ var Sn = class extends HTMLElement {
5171
5178
  e === "disabled" && this.isConnected && this._syncTarget();
5172
5179
  }
5173
5180
  };
5174
- customElements.get("mint-clickable") || a("mint-clickable", Sn);
5181
+ customElements.get("mint-clickable") || a("mint-clickable", Cn);
5175
5182
  //#endregion
5176
5183
  //#region src/components/collapsible/Collapsible.ts
5177
- var Cn = class extends HTMLElement {
5184
+ var wn = class extends HTMLElement {
5178
5185
  static get observedAttributes() {
5179
5186
  return [
5180
5187
  "id",
@@ -5325,10 +5332,10 @@ var Cn = class extends HTMLElement {
5325
5332
  }), this._contentAnimation.onfinish = o;
5326
5333
  }
5327
5334
  };
5328
- customElements.get("mint-collapsible") || a("mint-collapsible", Cn);
5335
+ customElements.get("mint-collapsible") || a("mint-collapsible", wn);
5329
5336
  //#endregion
5330
5337
  //#region src/components/confirm-action/ConfirmAction.ts
5331
- var wn = class extends HTMLElement {
5338
+ var Tn = class extends HTMLElement {
5332
5339
  constructor(...e) {
5333
5340
  super(...e), this._modal = null, this._actionsFooter = null, this._confirmButton = null, this._cancelButton = null, this._pendingResolve = null, this._modalObserver = null, this._lastAction = null, this._onConfirmClick = null, this._onCancelClick = null;
5334
5341
  }
@@ -5375,11 +5382,11 @@ var wn = class extends HTMLElement {
5375
5382
  }));
5376
5383
  }
5377
5384
  };
5378
- customElements.get("mint-confirm-action") || a("mint-confirm-action", wn);
5385
+ customElements.get("mint-confirm-action") || a("mint-confirm-action", Tn);
5379
5386
  //#endregion
5380
5387
  //#region src/components/confirm-action/ConfirmActionApi.ts
5381
5388
  var L = [], R = !1;
5382
- function Tn() {
5389
+ function En() {
5383
5390
  return typeof document > "u" || document.body ? Promise.resolve() : new Promise((e) => {
5384
5391
  if (typeof window > "u") {
5385
5392
  e();
@@ -5388,26 +5395,26 @@ function Tn() {
5388
5395
  window.addEventListener("DOMContentLoaded", () => e(), { once: !0 });
5389
5396
  });
5390
5397
  }
5391
- async function En() {
5392
- if (await Tn(), typeof document > "u") throw Error("mintui.confirm is only available in browser environments.");
5398
+ async function Dn() {
5399
+ if (await En(), typeof document > "u") throw Error("mintui.confirm is only available in browser environments.");
5393
5400
  let e = document.querySelector("mint-confirm-action[data-mint-confirm-action-root=\"true\"]");
5394
5401
  if (e) return e;
5395
5402
  let t = document.createElement("mint-confirm-action");
5396
5403
  return t.setAttribute("data-mint-confirm-action-root", "true"), document.body.appendChild(t), t;
5397
5404
  }
5398
- function Dn(e) {
5405
+ function On(e) {
5399
5406
  let t = (e || "action").toString().trim().toLowerCase().replace(/^tone:\s*/, "");
5400
5407
  return t === "action" || t === "info" || t === "warning" || t === "danger" ? t : "action";
5401
5408
  }
5402
- async function On() {
5409
+ async function kn() {
5403
5410
  if (!R) {
5404
5411
  R = !0;
5405
5412
  try {
5406
5413
  for (; L.length > 0;) {
5407
5414
  let e = L.shift();
5408
- e && (await (await En()).showConfirm({
5415
+ e && (await (await Dn()).showConfirm({
5409
5416
  question: e.question,
5410
- tone: Dn(e.tone),
5417
+ tone: On(e.tone),
5411
5418
  confirmLabel: e.confirmLabel || "Confirm",
5412
5419
  cancelLabel: e.cancelLabel || "Cancel"
5413
5420
  }) ? e.confirmed?.() : e.cancelled?.());
@@ -5417,7 +5424,7 @@ async function On() {
5417
5424
  }
5418
5425
  }
5419
5426
  }
5420
- function kn(e, t, n, r = "action", i = "Confirm", a = "Cancel") {
5427
+ function An(e, t, n, r = "action", i = "Confirm", a = "Cancel") {
5421
5428
  typeof window > "u" || (L.push({
5422
5429
  question: e,
5423
5430
  confirmed: t,
@@ -5425,11 +5432,11 @@ function kn(e, t, n, r = "action", i = "Confirm", a = "Cancel") {
5425
5432
  tone: r,
5426
5433
  confirmLabel: i,
5427
5434
  cancelLabel: a
5428
- }), On());
5435
+ }), kn());
5429
5436
  }
5430
5437
  if (typeof window < "u") {
5431
5438
  let e = window.mintui || {};
5432
- e.confirm = kn, window.mintui = e;
5439
+ e.confirm = An, window.mintui = e;
5433
5440
  }
5434
5441
  s({
5435
5442
  name: "calendar",
@@ -5464,7 +5471,7 @@ s({
5464
5471
  });
5465
5472
  //#endregion
5466
5473
  //#region src/components/input/Input.ts
5467
- var An = class extends HTMLElement {
5474
+ var jn = class extends HTMLElement {
5468
5475
  static get observedAttributes() {
5469
5476
  return [
5470
5477
  "type",
@@ -5789,10 +5796,10 @@ var An = class extends HTMLElement {
5789
5796
  }
5790
5797
  }
5791
5798
  };
5792
- customElements.get("mint-input") || a("mint-input", An);
5799
+ customElements.get("mint-input") || a("mint-input", jn);
5793
5800
  //#endregion
5794
5801
  //#region src/components/date-picker/DatePicker.ts
5795
- var jn = class extends HTMLElement {
5802
+ var Mn = class extends HTMLElement {
5796
5803
  static get observedAttributes() {
5797
5804
  return [
5798
5805
  "value",
@@ -7038,7 +7045,7 @@ var jn = class extends HTMLElement {
7038
7045
  this._focusTrapHandler &&= (document.removeEventListener("keydown", this._focusTrapHandler, !0), null), this._escapeHandler &&= (document.removeEventListener("keydown", this._escapeHandler, !0), null);
7039
7046
  }
7040
7047
  };
7041
- customElements.get("mint-date-picker") || a("mint-date-picker", jn), s({
7048
+ customElements.get("mint-date-picker") || a("mint-date-picker", Mn), s({
7042
7049
  name: "upload",
7043
7050
  viewBox: "0 0 24 24",
7044
7051
  path: "M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12",
@@ -7053,7 +7060,7 @@ customElements.get("mint-date-picker") || a("mint-date-picker", jn), s({
7053
7060
  });
7054
7061
  //#endregion
7055
7062
  //#region src/components/dropzone/Dropzone.ts
7056
- var Mn = class extends HTMLElement {
7063
+ var Nn = class extends HTMLElement {
7057
7064
  static get observedAttributes() {
7058
7065
  return [
7059
7066
  "label",
@@ -7371,10 +7378,10 @@ var Mn = class extends HTMLElement {
7371
7378
  return this._selectedFiles.some((t) => t.name === e.name && t.size === e.size && t.lastModified === e.lastModified);
7372
7379
  }
7373
7380
  };
7374
- customElements.get("mint-dropzone") || a("mint-dropzone", Mn);
7381
+ customElements.get("mint-dropzone") || a("mint-dropzone", Nn);
7375
7382
  //#endregion
7376
7383
  //#region src/components/form/Form.ts
7377
- var Nn = class extends HTMLElement {
7384
+ var Pn = class extends HTMLElement {
7378
7385
  static get observedAttributes() {
7379
7386
  return [
7380
7387
  "action",
@@ -8349,7 +8356,7 @@ var Nn = class extends HTMLElement {
8349
8356
  this._reactiveDataObserver !== null && (cancelAnimationFrame(this._reactiveDataObserver), this._reactiveDataObserver = null), this._reactiveDataProxy = null, this._lastDataSnapshot = null, this._lastAppliedDataSnapshot = null;
8350
8357
  }
8351
8358
  };
8352
- customElements.get("mint-form") || a("mint-form", Nn), typeof window < "u" && (window.mintForm = window.mintForm || {
8359
+ customElements.get("mint-form") || a("mint-form", Pn), typeof window < "u" && (window.mintForm = window.mintForm || {
8353
8360
  defaults: { headers: { common: {} } },
8354
8361
  interceptors: { response: { handlers: [] } }
8355
8362
  }, window.mintForm.interceptors.response.use || (window.mintForm.interceptors.response.use = function(e, t) {
@@ -8360,7 +8367,7 @@ customElements.get("mint-form") || a("mint-form", Nn), typeof window < "u" && (w
8360
8367
  }));
8361
8368
  //#endregion
8362
8369
  //#region src/components/off-canvas/OffCanvas.ts
8363
- var Pn = class extends HTMLElement {
8370
+ var Fn = class extends HTMLElement {
8364
8371
  static get observedAttributes() {
8365
8372
  return [
8366
8373
  "id",
@@ -8524,7 +8531,7 @@ var Pn = class extends HTMLElement {
8524
8531
  }, 300);
8525
8532
  }
8526
8533
  };
8527
- customElements.get("mint-off-canvas") || a("mint-off-canvas", Pn), s({
8534
+ customElements.get("mint-off-canvas") || a("mint-off-canvas", Fn), s({
8528
8535
  name: "search",
8529
8536
  viewBox: "0 0 24 24",
8530
8537
  path: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z",
@@ -8533,7 +8540,7 @@ customElements.get("mint-off-canvas") || a("mint-off-canvas", Pn), s({
8533
8540
  });
8534
8541
  //#endregion
8535
8542
  //#region src/components/resource-table/utility-aliases.js
8536
- var Fn = {
8543
+ var In = {
8537
8544
  "-mr-1": "rtu-8956a4275",
8538
8545
  "-translate-y-1/2": "rtu-36b381be4",
8539
8546
  "[&>*]:m-0": "rtu-7b41b3d11",
@@ -8695,7 +8702,7 @@ var Fn = {
8695
8702
  "z-10": "rtu-236812d64",
8696
8703
  "z-20": "rtu-145745bf5",
8697
8704
  "z-30": "rtu-0f2fff0ae"
8698
- }, In = class extends HTMLElement {
8705
+ }, Ln = class extends HTMLElement {
8699
8706
  constructor(...e) {
8700
8707
  super(...e), this._observer = null;
8701
8708
  }
@@ -8755,10 +8762,10 @@ var Fn = {
8755
8762
  e.dataset.mtProcessed = "", e.innerHTML = n, Object.entries(t).forEach(([t, n]) => e.setAttribute(t, n));
8756
8763
  }
8757
8764
  };
8758
- customElements.get("mint-table") || a("mint-table", In);
8765
+ customElements.get("mint-table") || a("mint-table", Ln);
8759
8766
  //#endregion
8760
8767
  //#region src/components/resource-table/ResourceTable.ts
8761
- var Ln = class extends HTMLElement {
8768
+ var Rn = class extends HTMLElement {
8762
8769
  static get observedAttributes() {
8763
8770
  return [
8764
8771
  "configuration",
@@ -9668,7 +9675,7 @@ var Ln = class extends HTMLElement {
9668
9675
  return e.class && n.push(e.class.trim()), e.align === "center" ? n.push("text-center") : e.align === "right" && n.push("text-right"), e.sortable && !t && n.push("cursor-pointer"), e.stickLeft && n.push("sticky-left"), e.stickRight && n.push("sticky-right"), n.join(" ");
9669
9676
  }
9670
9677
  _replaceUtilityClasses() {
9671
- let e = Fn, t = [this, ...Array.from(this.querySelectorAll("[class]"))];
9678
+ let e = In, t = [this, ...Array.from(this.querySelectorAll("[class]"))];
9672
9679
  for (let n of t) for (let t of Array.from(n.classList)) {
9673
9680
  let r = e[t];
9674
9681
  r && n.classList.replace(t, r);
@@ -9868,10 +9875,10 @@ var Ln = class extends HTMLElement {
9868
9875
  e !== null && (this._currentPage = e, this._offset = (this._currentPage - 1) * this._perPage);
9869
9876
  }
9870
9877
  };
9871
- customElements.get("mint-resource-table") || a("mint-resource-table", Ln);
9878
+ customElements.get("mint-resource-table") || a("mint-resource-table", Rn);
9872
9879
  //#endregion
9873
9880
  //#region src/components/resource-table/ResourceTableContextMenu.ts
9874
- var Rn = 550, zn = 12, Bn = { passive: !0 }, Vn = class extends HTMLElement {
9881
+ var zn = 550, Bn = 12, Vn = { passive: !0 }, Hn = class extends HTMLElement {
9875
9882
  constructor(...e) {
9876
9883
  super(...e), this._table = null, this._anchor = null, this._popover = null, this._menuRoot = null, this._baseId = "", this._touchTimer = null, this._touchStart = null, this._slotObserver = null, this._scrollCloseTargets = [], this._onScrollClose = () => {
9877
9884
  this._closePopover();
@@ -9898,7 +9905,7 @@ var Rn = 550, zn = 12, Bn = { passive: !0 }, Vn = class extends HTMLElement {
9898
9905
  let t = e.touches[0];
9899
9906
  if (!t) return;
9900
9907
  let n = t.clientX - this._touchStart.x, r = t.clientY - this._touchStart.y;
9901
- n * n + r * r > zn * zn && (this._clearTouchTimer(), this._touchStart = null);
9908
+ n * n + r * r > Bn * Bn && (this._clearTouchTimer(), this._touchStart = null);
9902
9909
  }, this._onTouchEnd = () => {
9903
9910
  this._clearTouchTimer(), this._touchStart = null;
9904
9911
  };
@@ -9921,7 +9928,7 @@ var Rn = 550, zn = 12, Bn = { passive: !0 }, Vn = class extends HTMLElement {
9921
9928
  }
9922
9929
  _longPressMs() {
9923
9930
  let e = parseInt(this.getAttribute("long-press-ms") || "", 10);
9924
- return !Number.isNaN(e) && e > 100 ? e : Rn;
9931
+ return !Number.isNaN(e) && e > 100 ? e : zn;
9925
9932
  }
9926
9933
  _resolveTable() {
9927
9934
  let e = this.getAttribute("for")?.trim();
@@ -9975,12 +9982,12 @@ var Rn = 550, zn = 12, Bn = { passive: !0 }, Vn = class extends HTMLElement {
9975
9982
  return this._elementIsScrollContainer(e) && r(e), t;
9976
9983
  }
9977
9984
  _detachScrollCloseListeners() {
9978
- for (let e of this._scrollCloseTargets) e.removeEventListener("scroll", this._onScrollClose, Bn);
9985
+ for (let e of this._scrollCloseTargets) e.removeEventListener("scroll", this._onScrollClose, Vn);
9979
9986
  this._scrollCloseTargets = [];
9980
9987
  }
9981
9988
  _attachScrollCloseListeners(e) {
9982
9989
  this._detachScrollCloseListeners(), this._scrollCloseTargets = this._collectScrollCloseTargets(e);
9983
- for (let e of this._scrollCloseTargets) e.addEventListener("scroll", this._onScrollClose, Bn);
9990
+ for (let e of this._scrollCloseTargets) e.addEventListener("scroll", this._onScrollClose, Vn);
9984
9991
  }
9985
9992
  _closePopover() {
9986
9993
  if (this._detachScrollCloseListeners(), !this._popover?.hasAttribute("open")) return;
@@ -10021,10 +10028,10 @@ var Rn = 550, zn = 12, Bn = { passive: !0 }, Vn = class extends HTMLElement {
10021
10028
  l && this._attachScrollCloseListeners(l);
10022
10029
  }
10023
10030
  };
10024
- customElements.get("mint-resource-table-context-menu") || a("mint-resource-table-context-menu", Vn);
10031
+ customElements.get("mint-resource-table-context-menu") || a("mint-resource-table-context-menu", Hn);
10025
10032
  //#endregion
10026
10033
  //#region src/components/search/Search.ts
10027
- var Hn = class e extends HTMLElement {
10034
+ var Un = class e extends HTMLElement {
10028
10035
  constructor(...e) {
10029
10036
  super(...e), this._shell = null, this._desktopInput = null, this._panel = null, this._panelInner = null, this._resultsId = "", this._panelInput = null, this._panelFiltersWrap = null, this._panelFiltersMainRow = null, this._panelFiltersChips = null, this._panelFiltersShowAllWrap = null, this._panelFiltersShowAllBtn = null, this._panelFiltersMorePanel = null, this._filtersMoreOpen = !1, this._filterOverflowObserver = null, this._filterOverflowZeroWidthRetries = 0, this._desktopFilterWrap = null, this._mobileFilterWrap = null, this._resultsWrap = null, this._stateWrap = null, this._customResultsWrap = null, this._query = "", this._searchOpen = !1, this._selectedFilters = [], this._selectedFilterBackspaceArmed = !1, this._debounceId = null, this._abortController = null, this._docPointerDownHandler = null, this._globalKeydownHandler = null, this._focusOutHandler = null, this._resizeHandler = null, this._scrollHandler = null, this._desktopShortcutHint = null, this._panelSearchBar = null, this._contentObserver = null, this._renderFrame = null;
10030
10037
  }
@@ -10674,10 +10681,10 @@ var Hn = class e extends HTMLElement {
10674
10681
  this._shell && this._shell.classList.toggle("is-collapsed", e), this._panelSearchBar && (this._panelSearchBar.classList.toggle("is-hidden", !e), this._panelSearchBar.classList.toggle("is-collapsed", e));
10675
10682
  }
10676
10683
  };
10677
- customElements.get("mint-search") || a("mint-search", Hn);
10684
+ customElements.get("mint-search") || a("mint-search", Un);
10678
10685
  //#endregion
10679
10686
  //#region src/components/select/Select.ts
10680
- var z = "data-mint-select-part", Un = class extends HTMLElement {
10687
+ var z = "data-mint-select-part", Wn = class extends HTMLElement {
10681
10688
  static get observedAttributes() {
10682
10689
  return [
10683
10690
  "name",
@@ -10938,10 +10945,10 @@ var z = "data-mint-select-part", Un = class extends HTMLElement {
10938
10945
  n && (n.id = `${e}-info`, t.push(n.id)), r && (r.id = `${e}-error`, t.push(r.id)), t.length ? this._select.setAttribute("aria-describedby", Array.from(new Set(t)).join(" ")) : this._select.removeAttribute("aria-describedby");
10939
10946
  }
10940
10947
  };
10941
- customElements.get("mint-select") || a("mint-select", Un);
10948
+ customElements.get("mint-select") || a("mint-select", Wn);
10942
10949
  //#endregion
10943
10950
  //#region src/components/side-navigation/SideNavigationLink.ts
10944
- var Wn = class extends HTMLElement {
10951
+ var Gn = class extends HTMLElement {
10945
10952
  constructor(...e) {
10946
10953
  super(...e), this._trigger = null, this._submenuContainer = null, this._contentObserver = null, this._renderFrame = null;
10947
10954
  }
@@ -11075,10 +11082,10 @@ var Wn = class extends HTMLElement {
11075
11082
  this._hasSubmenu() && !this._isSubmenuItem() ? this._buildDropdownLink() : this._buildSimpleLink();
11076
11083
  }
11077
11084
  };
11078
- customElements.get("mint-sidenav-link") || a("mint-sidenav-link", Wn);
11085
+ customElements.get("mint-sidenav-link") || a("mint-sidenav-link", Gn);
11079
11086
  //#endregion
11080
11087
  //#region src/components/side-navigation/SideNavigationLinks.ts
11081
- var Gn = class extends HTMLElement {
11088
+ var Kn = class extends HTMLElement {
11082
11089
  constructor(...e) {
11083
11090
  super(...e), this._container = null, this._title = null, this._titleLabel = null, this._titleCaret = null, this._titleIsInteractive = null, this._list = null, this._titleClickHandler = null, this._listenerCounts = /* @__PURE__ */ new Map();
11084
11091
  }
@@ -11141,10 +11148,10 @@ var Gn = class extends HTMLElement {
11141
11148
  });
11142
11149
  }
11143
11150
  };
11144
- customElements.get("mint-sidenav-links") || a("mint-sidenav-links", Gn);
11151
+ customElements.get("mint-sidenav-links") || a("mint-sidenav-links", Kn);
11145
11152
  //#endregion
11146
11153
  //#region src/components/side-navigation/SideNavigationActionLinks.ts
11147
- var Kn = class extends HTMLElement {
11154
+ var qn = class extends HTMLElement {
11148
11155
  static get observedAttributes() {
11149
11156
  return ["separated"];
11150
11157
  }
@@ -11161,10 +11168,10 @@ var Kn = class extends HTMLElement {
11161
11168
  this.className = this._isSeparated() ? "mint-sidenav-action-links is-separated" : "mint-sidenav-action-links";
11162
11169
  }
11163
11170
  };
11164
- customElements.get("mint-sidenav-action-links") || a("mint-sidenav-action-links", Kn);
11171
+ customElements.get("mint-sidenav-action-links") || a("mint-sidenav-action-links", qn);
11165
11172
  //#endregion
11166
11173
  //#region src/components/side-navigation/SideNavigationActionMenu.ts
11167
- var qn = class extends HTMLElement {
11174
+ var Jn = class extends HTMLElement {
11168
11175
  constructor(...e) {
11169
11176
  super(...e), this._wrapper = null, this._trigger = null, this._popover = null, this._triggerId = "", this._contentObserver = null, this._renderFrame = null;
11170
11177
  }
@@ -11231,11 +11238,11 @@ var qn = class extends HTMLElement {
11231
11238
  }) : a.appendChild(this._createDefaultGroup()), this._popover.appendChild(a), this._wrapper.appendChild(this._trigger), this._wrapper.appendChild(this._popover);
11232
11239
  }
11233
11240
  };
11234
- customElements.get("mint-sidenav-action-menu") || a("mint-sidenav-action-menu", qn);
11241
+ customElements.get("mint-sidenav-action-menu") || a("mint-sidenav-action-menu", Jn);
11235
11242
  //#endregion
11236
11243
  //#region src/components/side-navigation/SideNavigation.ts
11237
11244
  var B = "mint:url-change";
11238
- function Jn() {
11245
+ function Yn() {
11239
11246
  if (window.__mintUrlChangePatched) return;
11240
11247
  window.__mintUrlChangePatched = !0;
11241
11248
  let e = () => {
@@ -11249,7 +11256,7 @@ function Jn() {
11249
11256
  };
11250
11257
  t("pushState"), t("replaceState");
11251
11258
  }
11252
- var Yn = class extends HTMLElement {
11259
+ var Xn = class extends HTMLElement {
11253
11260
  constructor(...e) {
11254
11261
  super(...e), this._backdrop = null, this._container = null, this._header = null, this._content = null, this._footer = null, this._escapeHandler = null, this._mediaQuery = null, this._mediaListener = null, this._accordionHandler = null, this._urlChangeHandler = null, this._contentObserver = null, this._renderFrame = null, this._onMobileNavNavigateClick = (e) => {
11255
11262
  if (this._mediaQuery?.matches) return;
@@ -11312,7 +11319,7 @@ var Yn = class extends HTMLElement {
11312
11319
  this._accordionHandler &&= (this.removeEventListener("mint-sidenav-accordion", this._accordionHandler), null);
11313
11320
  }
11314
11321
  _attachUrlChangeListener() {
11315
- this._urlChangeHandler || (Jn(), this._urlChangeHandler = () => {
11322
+ this._urlChangeHandler || (Yn(), this._urlChangeHandler = () => {
11316
11323
  this._mediaQuery?.matches || this._isOpen() && this.removeAttribute("open");
11317
11324
  }, window.addEventListener("popstate", this._urlChangeHandler), window.addEventListener("hashchange", this._urlChangeHandler), window.addEventListener(B, this._urlChangeHandler));
11318
11325
  }
@@ -11375,10 +11382,10 @@ var Yn = class extends HTMLElement {
11375
11382
  this._ensureBackdrop(), this._ensureContainer(), this._syncShell(), this._buildUserHeader(), this._buildContent(), this._buildFooter();
11376
11383
  }
11377
11384
  };
11378
- customElements.get("mint-side-navigation") || a("mint-side-navigation", Yn);
11385
+ customElements.get("mint-side-navigation") || a("mint-side-navigation", Xn);
11379
11386
  //#endregion
11380
11387
  //#region src/components/side-navigation/index.ts
11381
- var Xn = Yn, V = "mint-sortable-placeholder", H = "mint-sortable-dragging", Zn = class e extends HTMLElement {
11388
+ var Zn = Xn, V = "mint-sortable-placeholder", H = "mint-sortable-dragging", Qn = class e extends HTMLElement {
11382
11389
  static get observedAttributes() {
11383
11390
  return [
11384
11391
  "direction",
@@ -11795,10 +11802,10 @@ var Xn = Yn, V = "mint-sortable-placeholder", H = "mint-sortable-dragging", Zn =
11795
11802
  this._placeholder?.remove(), this._placeholder = null, this._dragEl = null, this._pointerId = null, this._restoreAfter = null, this._originListRoot = null, this._originNextSibling = null, this._dropList = null, this._dropRejected = !1;
11796
11803
  }
11797
11804
  };
11798
- customElements.get("mint-sortable") || a("mint-sortable", Zn);
11805
+ customElements.get("mint-sortable") || a("mint-sortable", Qn);
11799
11806
  //#endregion
11800
11807
  //#region src/components/tabs/Tab.ts
11801
- var Qn = class extends HTMLElement {
11808
+ var $n = class extends HTMLElement {
11802
11809
  static get observedAttributes() {
11803
11810
  return [
11804
11811
  "active",
@@ -11857,10 +11864,10 @@ var Qn = class extends HTMLElement {
11857
11864
  })));
11858
11865
  }
11859
11866
  };
11860
- customElements.get("mint-tab") || a("mint-tab", Qn);
11867
+ customElements.get("mint-tab") || a("mint-tab", $n);
11861
11868
  //#endregion
11862
11869
  //#region src/components/tabs/TabList.ts
11863
- var $n = class extends HTMLElement {
11870
+ var er = class extends HTMLElement {
11864
11871
  static get observedAttributes() {
11865
11872
  return ["position"];
11866
11873
  }
@@ -11880,10 +11887,10 @@ var $n = class extends HTMLElement {
11880
11887
  this.setAttribute("role", "tablist"), !this.hasAttribute("aria-label") && !this.hasAttribute("aria-labelledby") && this.setAttribute("aria-label", "Tabs"), this.setAttribute("aria-orientation", this.getPosition() === "top" ? "horizontal" : "vertical");
11881
11888
  }
11882
11889
  };
11883
- customElements.get("mint-tab-list") || a("mint-tab-list", $n);
11890
+ customElements.get("mint-tab-list") || a("mint-tab-list", er);
11884
11891
  //#endregion
11885
11892
  //#region src/components/tabs/TabContent.ts
11886
- var er = class extends HTMLElement {
11893
+ var tr = class extends HTMLElement {
11887
11894
  static get observedAttributes() {
11888
11895
  return ["id"];
11889
11896
  }
@@ -11921,10 +11928,10 @@ var er = class extends HTMLElement {
11921
11928
  this.setAttribute("role", "tabpanel"), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0");
11922
11929
  }
11923
11930
  };
11924
- customElements.get("mint-tab-content") || a("mint-tab-content", er);
11931
+ customElements.get("mint-tab-content") || a("mint-tab-content", tr);
11925
11932
  //#endregion
11926
11933
  //#region src/components/tabs/Tabs.ts
11927
- var tr = class e extends HTMLElement {
11934
+ var nr = class e extends HTMLElement {
11928
11935
  static {
11929
11936
  this._id = 0;
11930
11937
  }
@@ -12030,10 +12037,10 @@ var tr = class e extends HTMLElement {
12030
12037
  });
12031
12038
  }
12032
12039
  };
12033
- customElements.get("mint-tabs") || a("mint-tabs", tr);
12040
+ customElements.get("mint-tabs") || a("mint-tabs", nr);
12034
12041
  //#endregion
12035
12042
  //#region src/components/tags/Tags.ts
12036
- var nr = class extends HTMLElement {
12043
+ var rr = class extends HTMLElement {
12037
12044
  constructor(...e) {
12038
12045
  super(...e), this._container = null, this._chipsWrap = null, this._input = null, this._tags = [], this._predefinedTags = [], this._placeholder = "Add tag", this._predefinedPopoverOpenListenersAttached = !1, this._predefinedBlurCloseTimer = null, this._suppressNextPredefinedBlurClose = !1, this._dragIndex = null, this._dragChip = null, this._isPointerDragging = !1, this._pointerMoveHandler = null, this._pointerUpHandler = null, this._containerFocusRingListeners = !1, this._predefinedFieldResizeObserver = null, this._predefinedPopoverBodyEl = null;
12039
12046
  }
@@ -12446,10 +12453,10 @@ var nr = class extends HTMLElement {
12446
12453
  }
12447
12454
  }
12448
12455
  };
12449
- customElements.get("mint-tags") || a("mint-tags", nr);
12456
+ customElements.get("mint-tags") || a("mint-tags", rr);
12450
12457
  //#endregion
12451
12458
  //#region src/components/time-picker/TimePicker.ts
12452
- var rr = class extends HTMLElement {
12459
+ var ir = class extends HTMLElement {
12453
12460
  constructor(...e) {
12454
12461
  super(...e), this._triggerId = `mint-time-picker-trigger-${Math.random().toString(36).slice(2, 10)}`, this._popover = null, this._popoverObserver = null, this._inputEl = null, this._hiddenInput = null, this._single = {
12455
12462
  hour: 9,
@@ -12787,10 +12794,10 @@ var rr = class extends HTMLElement {
12787
12794
  i.setAttribute("data-mint-time-picker-body", "true"), i.className = "mint-time-picker-popover", this._buildPopoverContent(i), this._popover.appendChild(i), r.appendChild(this._popover), this._setupPopoverOpenObserver(), this.appendChild(r);
12788
12795
  }
12789
12796
  };
12790
- customElements.get("mint-time-picker") || a("mint-time-picker", rr);
12797
+ customElements.get("mint-time-picker") || a("mint-time-picker", ir);
12791
12798
  //#endregion
12792
12799
  //#region src/components/toast/Toast.ts
12793
- var ir = class extends HTMLElement {
12800
+ var ar = class extends HTMLElement {
12794
12801
  constructor(...e) {
12795
12802
  super(...e), this._messageEl = null, this._hideTimer = null, this._hideResolve = null, this._bottomNavObserver = null, this._bodyObserver = null;
12796
12803
  }
@@ -12867,11 +12874,11 @@ var ir = class extends HTMLElement {
12867
12874
  this.classList.toggle("mint-toast-is-open", e), this._messageEl ||= (this.innerHTML = "<div class=\"mint-toast-surface\">\n <span data-mint-toast-message></span>\n </div>", this.querySelector("[data-mint-toast-message]")), this._messageEl && (this._messageEl.textContent = t);
12868
12875
  }
12869
12876
  };
12870
- customElements.get("mint-toast") || a("mint-toast", ir);
12877
+ customElements.get("mint-toast") || a("mint-toast", ar);
12871
12878
  //#endregion
12872
12879
  //#region src/components/toast/ToastApi.ts
12873
- var ar = 2200, U = [], W = !1, G = null;
12874
- function or() {
12880
+ var or = 2200, U = [], W = !1, G = null;
12881
+ function sr() {
12875
12882
  return typeof document > "u" || document.body ? Promise.resolve() : new Promise((e) => {
12876
12883
  if (typeof window > "u") {
12877
12884
  e();
@@ -12882,14 +12889,14 @@ function or() {
12882
12889
  }, { once: !0 });
12883
12890
  });
12884
12891
  }
12885
- async function sr() {
12886
- if (await or(), typeof document > "u") throw Error("mintui.toast is only available in browser environments.");
12892
+ async function cr() {
12893
+ if (await sr(), typeof document > "u") throw Error("mintui.toast is only available in browser environments.");
12887
12894
  let e = document.querySelector("mint-toast[data-mint-toast-root=\"true\"]");
12888
12895
  if (e) return e;
12889
12896
  let t = document.createElement("mint-toast");
12890
12897
  return t.setAttribute("data-mint-toast-root", "true"), document.body.appendChild(t), t;
12891
12898
  }
12892
- async function cr() {
12899
+ async function lr() {
12893
12900
  if (!W) {
12894
12901
  W = !0;
12895
12902
  try {
@@ -12898,9 +12905,9 @@ async function cr() {
12898
12905
  if (!e) continue;
12899
12906
  let t = e.message.trim().slice(0, 120);
12900
12907
  if (!t) continue;
12901
- let n = await sr();
12908
+ let n = await cr();
12902
12909
  G = n;
12903
- let r = e.options?.duration ?? ar, i = e.options?.type ?? "neutral";
12910
+ let r = e.options?.duration ?? or, i = e.options?.type ?? "neutral";
12904
12911
  await n.showToast(t, r, i);
12905
12912
  }
12906
12913
  } finally {
@@ -12912,9 +12919,9 @@ function K(e, t) {
12912
12919
  typeof window > "u" || (U.push({
12913
12920
  message: e,
12914
12921
  options: t
12915
- }), W && G && G.hideToast(), cr());
12922
+ }), W && G && G.hideToast(), lr());
12916
12923
  }
12917
- var lr = { toast: K };
12924
+ var ur = { toast: K };
12918
12925
  if (typeof window < "u") {
12919
12926
  let e = window.mintui || {};
12920
12927
  e.toast = K, window.mintui = e;
@@ -12922,7 +12929,7 @@ if (typeof window < "u") {
12922
12929
  //#endregion
12923
12930
  //#region src/components/tree/tree-utils.js
12924
12931
  function q(e = []) {
12925
- fr(e);
12932
+ pr(e);
12926
12933
  let t = (e) => e.map((e) => ({
12927
12934
  ...e,
12928
12935
  children: Array.isArray(e.children) ? t(e.children) : []
@@ -12951,11 +12958,11 @@ function Y(e, t, n = null) {
12951
12958
  }
12952
12959
  return null;
12953
12960
  }
12954
- function ur(e, t, n = 0) {
12961
+ function dr(e, t, n = 0) {
12955
12962
  let r = String(t);
12956
12963
  for (let t of e) {
12957
12964
  if (String(t.id) === r) return n;
12958
- let e = ur(t.children || [], r, n + 1);
12965
+ let e = dr(t.children || [], r, n + 1);
12959
12966
  if (e >= 0) return e;
12960
12967
  }
12961
12968
  return -1;
@@ -12964,10 +12971,10 @@ function X(e) {
12964
12971
  let t = Array.isArray(e?.children) ? e.children : [];
12965
12972
  return t.length ? 1 + Math.max(...t.map(X)) : 1;
12966
12973
  }
12967
- function dr(e, t) {
12968
- return String(e.id) === String(t) ? !0 : (e.children || []).some((e) => dr(e, t));
12974
+ function fr(e, t) {
12975
+ return String(e.id) === String(t) ? !0 : (e.children || []).some((e) => fr(e, t));
12969
12976
  }
12970
- function fr(e) {
12977
+ function pr(e) {
12971
12978
  let t = /* @__PURE__ */ new Set(), n = (e) => {
12972
12979
  for (let r of e) {
12973
12980
  if (r.id === null || r.id === void 0 || String(r.id) === "") throw Error("Every tree item must have a non-empty identifier.");
@@ -12984,7 +12991,7 @@ function Z(e, t, n, r, i = {}) {
12984
12991
  if (o.item.disabled || o.item.draggable === !1) throw Error("Disabled tree items cannot be moved.");
12985
12992
  let s = n == null || n === "" ? null : J(a, n);
12986
12993
  if (n != null && n !== "" && !s) throw Error(`Target parent ${n} was not found.`);
12987
- if (s && dr(o.item, s.id)) throw Error("A tree item cannot be moved inside itself or one of its descendants.");
12994
+ if (s && fr(o.item, s.id)) throw Error("A tree item cannot be moved inside itself or one of its descendants.");
12988
12995
  if (s?.disabled) throw Error("Disabled tree items cannot contain children.");
12989
12996
  if (i.allowNesting === !1 && s) throw Error("Nesting is disabled for this tree.");
12990
12997
  if (s?.canHaveChildren === !1) throw Error("The target item cannot contain children.");
@@ -12992,7 +12999,7 @@ function Z(e, t, n, r, i = {}) {
12992
12999
  let c = s ? s.children : a, l = o.siblings.findIndex((e) => String(e.id) === String(t)), [u] = o.siblings.splice(l, 1), d = Math.min(Math.max(0, Number.isFinite(r) ? Math.trunc(r) : c.length), c.length);
12993
13000
  c.splice(d, 0, u);
12994
13001
  let f = Number.isFinite(i.maxDepth) ? Math.max(1, Math.trunc(i.maxDepth)) : Infinity;
12995
- if ((s ? ur(a, s.id) + 1 : 0) + X(u) > f) throw Error(`Moving this branch would exceed the maximum tree depth of ${f}.`);
13002
+ if ((s ? dr(a, s.id) + 1 : 0) + X(u) > f) throw Error(`Moving this branch would exceed the maximum tree depth of ${f}.`);
12996
13003
  return {
12997
13004
  items: a,
12998
13005
  item: u,
@@ -13004,7 +13011,7 @@ function Z(e, t, n, r, i = {}) {
13004
13011
  }
13005
13012
  //#endregion
13006
13013
  //#region src/components/tree/Tree.ts
13007
- var pr = 0;
13014
+ var mr = 0;
13008
13015
  function Q(e, t, n) {
13009
13016
  e.dispatchEvent(new CustomEvent(t, {
13010
13017
  bubbles: !0,
@@ -13012,16 +13019,16 @@ function Q(e, t, n) {
13012
13019
  detail: n
13013
13020
  }));
13014
13021
  }
13015
- function mr(e, t) {
13022
+ function hr(e, t) {
13016
13023
  let n = e.getAttribute(t);
13017
13024
  return n === "" || n === "true";
13018
13025
  }
13019
13026
  function $(e) {
13020
13027
  return e == null || e === "" ? null : String(e);
13021
13028
  }
13022
- var hr = class extends HTMLElement {
13029
+ var gr = class extends HTMLElement {
13023
13030
  constructor(...e) {
13024
- super(...e), this._items = [], this._undoStack = [], this._redoStack = [], this._selectedId = null, this._expandedIds = /* @__PURE__ */ new Set(), this._root = null, this._confirm = null, this._treeId = `mint-tree-${++pr}`, this._liveRegion = null, this._dragExpansion = null, this._autoExpandedIds = /* @__PURE__ */ new Set(), this._dragHoverExpandedId = null, this._keyboardFocusRestore = null, this._onClick = (e) => {
13031
+ super(...e), this._items = [], this._undoStack = [], this._redoStack = [], this._selectedId = null, this._expandedIds = /* @__PURE__ */ new Set(), this._root = null, this._confirm = null, this._treeId = `mint-tree-${++mr}`, this._liveRegion = null, this._dragExpansion = null, this._autoExpandedIds = /* @__PURE__ */ new Set(), this._dragHoverExpandedId = null, this._keyboardFocusRestore = null, this._onClick = (e) => {
13025
13032
  let t = e.target instanceof Element ? e.target.closest("[data-tree-command]") : null;
13026
13033
  if (!t || !this.contains(t)) return;
13027
13034
  let n = t.getAttribute("data-tree-command"), r = t.getAttribute("data-tree-id");
@@ -13318,13 +13325,13 @@ var hr = class extends HTMLElement {
13318
13325
  return Number.isFinite(e) && e > 0 ? e : Infinity;
13319
13326
  }
13320
13327
  _allowNesting() {
13321
- return !this.hasAttribute("allow-nesting") || mr(this, "allow-nesting");
13328
+ return !this.hasAttribute("allow-nesting") || hr(this, "allow-nesting");
13322
13329
  }
13323
13330
  _disabled() {
13324
- return mr(this, "disabled");
13331
+ return hr(this, "disabled");
13325
13332
  }
13326
13333
  _isLoading() {
13327
- return mr(this, "loading");
13334
+ return hr(this, "loading");
13328
13335
  }
13329
13336
  _render() {
13330
13337
  let e = document.activeElement instanceof HTMLElement ? document.activeElement.closest("[data-mint-tree-row]") : null, t = e && this.contains(e) ? e.getAttribute("data-tree-id") : null;
@@ -13648,6 +13655,6 @@ var hr = class extends HTMLElement {
13648
13655
  [...this._root?.querySelectorAll("[data-mint-tree-row]") ?? []].find((t) => t.getAttribute("data-tree-id") === e)?.focus({ preventScroll: !0 });
13649
13656
  }
13650
13657
  };
13651
- customElements.get("mint-tree") || a("mint-tree", hr);
13658
+ customElements.get("mint-tree") || a("mint-tree", gr);
13652
13659
  //#endregion
13653
- export { _n as Alert, mn as BackButton, yn as BottomNavigation, M as Button, M as default, tn as Card, bn as Chart, un as Checkbox, xn as Chip, dn as Choice, Sn as Clickable, Cn as Collapsible, wn as ConfirmAction, jn as DatePicker, Mn as Dropzone, Nn as Form, an as Grid, l as Icon, An as Input, nn as Link, vn as MintBottomNavItem, I as MintBottomNavigation, Kn as MintSidenavActionLinks, qn as MintSidenavActionMenu, Wn as MintSidenavLink, Gn as MintSidenavLinks, hr as MintTree, hr as Tree, sn as Modal, gn as Navigation, Pn as OffCanvas, rn as Page, ln as Popover, Ln as ResourceTable, Hn as Search, Un as Select, Xn as SideNavigation, Zn as Sortable, Zt as Spinner, en as Stack, Qt as Switch, Qn as Tab, er as TabContent, $n as TabList, In as Table, tr as Tabs, nr as Tags, $t as Text, rr as TimePicker, ir as Toast, kn as confirm, lr as mintui, K as toast };
13660
+ export { vn as Alert, hn as BackButton, bn as BottomNavigation, M as Button, M as default, nn as Card, xn as Chart, dn as Checkbox, Sn as Chip, fn as Choice, Cn as Clickable, wn as Collapsible, Tn as ConfirmAction, Mn as DatePicker, Nn as Dropzone, Pn as Form, on as Grid, l as Icon, jn as Input, rn as Link, yn as MintBottomNavItem, I as MintBottomNavigation, qn as MintSidenavActionLinks, Jn as MintSidenavActionMenu, Gn as MintSidenavLink, Kn as MintSidenavLinks, gr as MintTree, gr as Tree, cn as Modal, _n as Navigation, Fn as OffCanvas, an as Page, un as Popover, Rn as ResourceTable, Un as Search, Wn as Select, Zn as SideNavigation, Qn as Sortable, Qt as Spinner, tn as Stack, $t as Switch, $n as Tab, tr as TabContent, er as TabList, Ln as Table, nr as Tabs, rr as Tags, en as Text, ir as TimePicker, ar as Toast, An as confirm, ur as mintui, K as toast };