@nhtio/lucid-resourceful-vue-components 0.1.0-master-e14740ea → 0.1.0-master-54839a90

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 (181) hide show
  1. package/{VBtn-DhfYEt9V.mjs → VBtn-C4WCntKg.mjs} +8 -8
  2. package/{VBtn-DhfYEt9V.mjs.map → VBtn-C4WCntKg.mjs.map} +1 -1
  3. package/{VDatePicker-D0OTAyvJ.mjs → VDatePicker-DOCNk-HL.mjs} +166 -166
  4. package/{VDatePicker-D0OTAyvJ.mjs.map → VDatePicker-DOCNk-HL.mjs.map} +1 -1
  5. package/{VEmptyState-BFrXSTJ-.mjs → VEmptyState-CfouFZTg.mjs} +41 -41
  6. package/{VEmptyState-BFrXSTJ-.mjs.map → VEmptyState-CfouFZTg.mjs.map} +1 -1
  7. package/{VHover-DLvOmsjv.mjs → VHover-DvUhdfsL.mjs} +3 -3
  8. package/{VHover-DLvOmsjv.mjs.map → VHover-DvUhdfsL.mjs.map} +1 -1
  9. package/{VListItem-LNaoM8S4.mjs → VListItem-BT-NXJyi.mjs} +56 -56
  10. package/{VListItem-LNaoM8S4.mjs.map → VListItem-BT-NXJyi.mjs.map} +1 -1
  11. package/{VMenu-9rTbTKtH.mjs → VMenu-Bk2NN8qb.mjs} +28 -28
  12. package/{VMenu-9rTbTKtH.mjs.map → VMenu-Bk2NN8qb.mjs.map} +1 -1
  13. package/{VPicker-BGuRD0KW.mjs → VPicker-DmY6CdER.mjs} +5 -5
  14. package/{VPicker-BGuRD0KW.mjs.map → VPicker-DmY6CdER.mjs.map} +1 -1
  15. package/{VRadioGroup-Dx_wEqzl.mjs → VRadioGroup-BO7XdtLS.mjs} +21 -21
  16. package/{VRadioGroup-Dx_wEqzl.mjs.map → VRadioGroup-BO7XdtLS.mjs.map} +1 -1
  17. package/{VRow-DaLdbIGw.mjs → VRow-BhNJcY5-.mjs} +17 -17
  18. package/{VRow-DaLdbIGw.mjs.map → VRow-BhNJcY5-.mjs.map} +1 -1
  19. package/{VSheet-DnIfs-1c.mjs → VSheet-Bkr-m6FE.mjs} +14 -14
  20. package/{VSheet-DnIfs-1c.mjs.map → VSheet-Bkr-m6FE.mjs.map} +1 -1
  21. package/{actions-8bWGsB-p.mjs → actions-ORUmfJR5.mjs} +15 -15
  22. package/{actions-8bWGsB-p.mjs.map → actions-ORUmfJR5.mjs.map} +1 -1
  23. package/{alert-IW1AIWZw.mjs → alert-pFT7pWTZ.mjs} +97 -94
  24. package/alert-pFT7pWTZ.mjs.map +1 -0
  25. package/{bigint-Jmfa2L4S.mjs → bigint-CCM0aPaS.mjs} +6 -6
  26. package/{bigint-Jmfa2L4S.mjs.map → bigint-CCM0aPaS.mjs.map} +1 -1
  27. package/{boolean-BEY7eBxf.mjs → boolean-1-MOJPSu.mjs} +40 -40
  28. package/{boolean-BEY7eBxf.mjs.map → boolean-1-MOJPSu.mjs.map} +1 -1
  29. package/{clipboard-BoKd7mFG.mjs → clipboard-CdGABqm1.mjs} +51 -51
  30. package/{clipboard-BoKd7mFG.mjs.map → clipboard-CdGABqm1.mjs.map} +1 -1
  31. package/{colorUtils-DmtKYNgW.mjs → colorUtils-BdpqbLZS.mjs} +3 -3
  32. package/{colorUtils-DmtKYNgW.mjs.map → colorUtils-BdpqbLZS.mjs.map} +1 -1
  33. package/{common-BeDAn4wu.mjs → common-Bi5RUD-n.mjs} +8881 -8880
  34. package/common-Bi5RUD-n.mjs.map +1 -0
  35. package/{component-CjPpW_A2.mjs → component-DhEJuSE6.mjs} +2 -2
  36. package/{component-CjPpW_A2.mjs.map → component-DhEJuSE6.mjs.map} +1 -1
  37. package/components/autorefresh_controller.mjs +1 -1
  38. package/components/control_button.mjs +1 -1
  39. package/components/control_button_bar.mjs +2 -2
  40. package/components/control_menu.mjs +1 -1
  41. package/components/custom_field.mjs +1 -1
  42. package/components/exporter.mjs +1 -1
  43. package/components/fields/bigint.mjs +1 -1
  44. package/components/fields/boolean.mjs +1 -1
  45. package/components/fields/date.mjs +1 -1
  46. package/components/fields/date_time.mjs +1 -1
  47. package/components/fields/enum.mjs +1 -1
  48. package/components/fields/integer.mjs +1 -1
  49. package/components/fields/number.mjs +1 -1
  50. package/components/fields/string.mjs +1 -1
  51. package/components/fields/unsigned_integer.mjs +1 -1
  52. package/components/fields.mjs +9 -9
  53. package/components/form_with_validation.mjs +1 -1
  54. package/components/resourceful_alerter.mjs +1 -1
  55. package/components/resourceful_index.mjs +1 -1
  56. package/components/resourceful_record.mjs +2 -2
  57. package/components/resourceful_record_default_form.mjs +1 -1
  58. package/components/resourceful_record_form.mjs +1 -1
  59. package/components/sortable.mjs +1 -1
  60. package/components/svg_icon.mjs +1 -1
  61. package/components/timezone_picker.mjs +1 -1
  62. package/components.mjs +23 -23
  63. package/composables.mjs +8 -8
  64. package/{console-CRXioSFP.mjs → console-Dgoi3FwV.mjs} +2 -2
  65. package/{console-CRXioSFP.mjs.map → console-Dgoi3FwV.mjs.map} +1 -1
  66. package/{custom-Y1WJVKP9.mjs → custom-DQmbYYPh.mjs} +17 -17
  67. package/{custom-Y1WJVKP9.mjs.map → custom-DQmbYYPh.mjs.map} +1 -1
  68. package/{date-BxEeCNWD.mjs → date-E_8RP3gK.mjs} +21 -21
  69. package/{date-BxEeCNWD.mjs.map → date-E_8RP3gK.mjs.map} +1 -1
  70. package/{date_time-6kpv7eDF.mjs → date_time-BmYl2TFi.mjs} +300 -300
  71. package/{date_time-6kpv7eDF.mjs.map → date_time-BmYl2TFi.mjs.map} +1 -1
  72. package/{display-kAyhIPBH.mjs → display-B089h_sz.mjs} +30 -28
  73. package/display-B089h_sz.mjs.map +1 -0
  74. package/{display-CO0pTIEs.mjs → display-dv4cOwRN.mjs} +42 -42
  75. package/{display-CO0pTIEs.mjs.map → display-dv4cOwRN.mjs.map} +1 -1
  76. package/{display-DvzWa1QO.mjs → display-fXo4JeIS.mjs} +41 -41
  77. package/{display-DvzWa1QO.mjs.map → display-fXo4JeIS.mjs.map} +1 -1
  78. package/{elevation-CMzO50xm.mjs → elevation-YNOj0hSa.mjs} +82 -82
  79. package/{elevation-CMzO50xm.mjs.map → elevation-YNOj0hSa.mjs.map} +1 -1
  80. package/{enum-noYU2Cqh.mjs → enum-8itqseZa.mjs} +22 -22
  81. package/{enum-noYU2Cqh.mjs.map → enum-8itqseZa.mjs.map} +1 -1
  82. package/factories.mjs +1 -1
  83. package/{field_composer-DpJx0Oz1.mjs → field_composer-ugYyDQNY.mjs} +7 -7
  84. package/{field_composer-DpJx0Oz1.mjs.map → field_composer-ugYyDQNY.mjs.map} +1 -1
  85. package/{form-CDLcDPyU.mjs → form-BtDnRXYm.mjs} +45 -45
  86. package/{form-CDLcDPyU.mjs.map → form-BtDnRXYm.mjs.map} +1 -1
  87. package/{guards-B99p3BPj.mjs → guards-Cby4QwzY.mjs} +2 -2
  88. package/{guards-B99p3BPj.mjs.map → guards-Cby4QwzY.mjs.map} +1 -1
  89. package/guards.mjs +4 -4
  90. package/helpers.mjs +6 -6
  91. package/{index-C9UuBVyI.mjs → index-3XRUa28C.mjs} +12 -12
  92. package/{index-C9UuBVyI.mjs.map → index-3XRUa28C.mjs.map} +1 -1
  93. package/{index-CzI9mHIx.mjs → index-BCQmj6cf.mjs} +13 -13
  94. package/{index-CzI9mHIx.mjs.map → index-BCQmj6cf.mjs.map} +1 -1
  95. package/{index-bXmNb9jX.mjs → index-BgevbZTt.mjs} +10 -10
  96. package/{index-bXmNb9jX.mjs.map → index-BgevbZTt.mjs.map} +1 -1
  97. package/{index-BaWthszI.mjs → index-C-PCfO1S.mjs} +2 -2
  98. package/{index-BaWthszI.mjs.map → index-C-PCfO1S.mjs.map} +1 -1
  99. package/{index-Bi050X9r.mjs → index-CSyOYGEi.mjs} +8 -8
  100. package/{index-Bi050X9r.mjs.map → index-CSyOYGEi.mjs.map} +1 -1
  101. package/{index-CIvylvfa.mjs → index-D9i1PRci.mjs} +5701 -5698
  102. package/{index-CIvylvfa.mjs.map → index-D9i1PRci.mjs.map} +1 -1
  103. package/{index-B2rKM3mR.mjs → index-DWv9iKZs.mjs} +21 -21
  104. package/{index-B2rKM3mR.mjs.map → index-DWv9iKZs.mjs.map} +1 -1
  105. package/{index-slHxe6b-.mjs → index-VpcXNOpn.mjs} +2 -2
  106. package/{index-slHxe6b-.mjs.map → index-VpcXNOpn.mjs.map} +1 -1
  107. package/{index-BUpccfIz.mjs → index-fiZltUBs.mjs} +3 -3
  108. package/{index-BUpccfIz.mjs.map → index-fiZltUBs.mjs.map} +1 -1
  109. package/index.mjs +31 -31
  110. package/{integer-BIJ4_I8y.mjs → integer-W2_SlKV1.mjs} +5 -5
  111. package/{integer-BIJ4_I8y.mjs.map → integer-W2_SlKV1.mjs.map} +1 -1
  112. package/{mdi-CqMJqgQi.mjs → mdi-DC1jeTJJ.mjs} +55 -55
  113. package/{mdi-CqMJqgQi.mjs.map → mdi-DC1jeTJJ.mjs.map} +1 -1
  114. package/{number-z_LAINPM.mjs → number-DgwZBxOw.mjs} +101 -101
  115. package/{number-z_LAINPM.mjs.map → number-DgwZBxOw.mjs.map} +1 -1
  116. package/package.json +31 -31
  117. package/{position-Ai5XksAO.mjs → position-B9VPkbhU.mjs} +2 -2
  118. package/{position-Ai5XksAO.mjs.map → position-B9VPkbhU.mjs.map} +1 -1
  119. package/private/control-button-bar/props.d.ts +10 -10
  120. package/private/fields/bigint.d.ts +128 -128
  121. package/private/fields/boolean.d.ts +68 -68
  122. package/private/fields/common.d.ts +16 -16
  123. package/private/fields/custom.d.ts +2 -2
  124. package/private/fields/date.d.ts +24 -24
  125. package/private/fields/date_time.d.ts +24 -24
  126. package/private/fields/enum.d.ts +68 -68
  127. package/private/fields/integer.d.ts +107 -107
  128. package/private/fields/multiple.d.ts +17 -17
  129. package/private/fields/number.d.ts +46 -46
  130. package/private/fields/read_mode_renderer.d.ts +17 -17
  131. package/private/fields/string.d.ts +24 -24
  132. package/private/fields/unsigned_integer.d.ts +107 -107
  133. package/private/filtration/filter_group_condition_element.d.ts +36 -36
  134. package/private/resourceful-index/index.d.ts +17 -17
  135. package/private/resourceful-index/partials/_controls.d.ts +1 -1
  136. package/private/resourceful-index/partials/_per_page_selector.d.ts +1 -1
  137. package/private/resourceful-index/props.d.ts +34 -34
  138. package/private/resourceful-record/form.d.ts +12 -12
  139. package/private/resourceful-record/index.d.ts +13 -13
  140. package/private/resourceful-record/props.d.ts +20 -20
  141. package/private/sortable/index.d.ts +1 -1
  142. package/{props-p4f5Pa5h.mjs → props-COvhL78L.mjs} +4 -4
  143. package/{props-p4f5Pa5h.mjs.map → props-COvhL78L.mjs.map} +1 -1
  144. package/{props-BYX22zcE.mjs → props-GYFmAF5-.mjs} +6 -6
  145. package/{props-BYX22zcE.mjs.map → props-GYFmAF5-.mjs.map} +1 -1
  146. package/{renderers-BKUvrrVm.mjs → renderers-BP4li2WT.mjs} +13 -13
  147. package/{renderers-BKUvrrVm.mjs.map → renderers-BP4li2WT.mjs.map} +1 -1
  148. package/{string-Dmr8SRMf.mjs → string-RfpfCwEn.mjs} +137 -137
  149. package/{string-Dmr8SRMf.mjs.map → string-RfpfCwEn.mjs.map} +1 -1
  150. package/{unsigned_integer-BliPiCXO.mjs → unsigned_integer-Cg6tbRJj.mjs} +4 -4
  151. package/{unsigned_integer-BliPiCXO.mjs.map → unsigned_integer-Cg6tbRJj.mjs.map} +1 -1
  152. package/useRender-CfNJA_8a.mjs +9 -0
  153. package/{useRender-BD1xw5zG.mjs.map → useRender-CfNJA_8a.mjs.map} +1 -1
  154. package/{utils-DqXWb-4f.mjs → utils-D3ZGaTyv.mjs} +48 -48
  155. package/{utils-DqXWb-4f.mjs.map → utils-D3ZGaTyv.mjs.map} +1 -1
  156. package/{validation-DS3tTSk5.mjs → validation-BF_JkNWB.mjs} +4 -4
  157. package/{validation-DS3tTSk5.mjs.map → validation-BF_JkNWB.mjs.map} +1 -1
  158. package/VBtn.css +0 -1
  159. package/VDatePicker.css +0 -1
  160. package/VEmptyState.css +0 -1
  161. package/VListItem.css +0 -1
  162. package/VMenu.css +0 -1
  163. package/VPicker.css +0 -1
  164. package/VRadioGroup.css +0 -1
  165. package/VSheet.css +0 -1
  166. package/actions.css +0 -1
  167. package/alert-IW1AIWZw.mjs.map +0 -1
  168. package/boolean.css +0 -1
  169. package/clipboard.css +0 -1
  170. package/common-BeDAn4wu.mjs.map +0 -1
  171. package/common.css +0 -1
  172. package/date_time.css +0 -1
  173. package/display-kAyhIPBH.mjs.map +0 -1
  174. package/display.css +0 -1
  175. package/display2.css +0 -1
  176. package/elevation.css +0 -1
  177. package/index.css +0 -1
  178. package/mdi.css +0 -1
  179. package/number.css +0 -1
  180. package/string.css +0 -1
  181. package/useRender-BD1xw5zG.mjs +0 -9
@@ -1,18 +1,19 @@
1
- import { useDisplay as te } from "vuetify";
2
- import { z as ne, t as p, r as B } from "./utils-DqXWb-4f.mjs";
3
- import { S as se, I as U } from "./encoding-C1W2Cp3X-DzgQRCVx.mjs";
4
- import { shallowRef as A, reactive as ie, onMounted as oe, watch as a, onUnmounted as le, toRefs as re, triggerRef as S, nextTick as ae } from "vue";
5
- const ce = U && "ResizeObserver" in window, T = U && "visualViewport" in window, ve = (D, L = ne("resourcefulComposables")) => {
6
- const H = te({ mobile: null }, L), {
1
+ import { k as te } from "./ioc-Du_Tgg-1.mjs";
2
+ import { useDisplay as ne } from "vuetify";
3
+ import { A as se, t as p, r as B } from "./utils-D3ZGaTyv.mjs";
4
+ import { S as ie, I as U } from "./encoding-C1W2Cp3X-DzgQRCVx.mjs";
5
+ import { shallowRef as A, reactive as oe, onMounted as re, watch as a, onUnmounted as le, toRefs as ae, triggerRef as S, nextTick as ce } from "vue";
6
+ const de = U && "ResizeObserver" in window, T = U && "visualViewport" in window, we = (D, L = se("resourcefulComposables")) => {
7
+ const H = ne({ mobile: null }, L), {
7
8
  mobile: b,
8
9
  mobileBreakpoint: E,
9
10
  platform: R,
10
11
  thresholds: c,
11
12
  ssr: M,
12
- update: z
13
- } = H, l = [];
13
+ update: y
14
+ } = H, r = [];
14
15
  let u, m;
15
- const o = A(0), f = A(0), h = A(!1), x = A(!1), t = ie({
16
+ const o = A(0), f = A(0), h = A(!1), x = A(!1), t = oe({
16
17
  xs: !1,
17
18
  sm: !1,
18
19
  md: !1,
@@ -51,8 +52,8 @@ const ce = U && "ResizeObserver" in window, T = U && "visualViewport" in window,
51
52
  h.value = s, x.value = i, S(h), S(x);
52
53
  }, w = (e = 0, s = 0) => {
53
54
  o.value = e, f.value = s, S(o), S(f);
54
- }, y = () => {
55
- z();
55
+ }, z = () => {
56
+ y();
56
57
  const e = k();
57
58
  if (e) {
58
59
  const s = e.getBoundingClientRect();
@@ -60,7 +61,8 @@ const ce = U && "ResizeObserver" in window, T = U && "visualViewport" in window,
60
61
  } else
61
62
  w(0, 0);
62
63
  }, C = () => typeof t.mobileBreakpoint == "number" ? t.mobileBreakpoint : t.mobileBreakpoint in t.thresholds ? t.thresholds[t.mobileBreakpoint] : 600, O = (e) => {
63
- if (e) {
64
+ const s = te();
65
+ if (!(!e || s.ssr)) {
64
66
  if (e instanceof HTMLElement) return e;
65
67
  if ("$el" in e && e.$el instanceof HTMLElement)
66
68
  return e.$el;
@@ -77,36 +79,36 @@ const ce = U && "ResizeObserver" in window, T = U && "visualViewport" in window,
77
79
  const i = O(e), n = O(s ?? null);
78
80
  if (i === n) return;
79
81
  m && (n && m.unobserve(n), i && m.observe(i)), u && (n && u.unobserve(n), i && u.observe(i));
80
- const r = k();
81
- if (r) {
82
- const d = r.getBoundingClientRect();
82
+ const l = k();
83
+ if (l) {
84
+ const d = l.getBoundingClientRect();
83
85
  w(d.width, d.height);
84
86
  } else
85
87
  w(0, 0);
86
88
  }, I = B(() => {
87
89
  t.width = o.value, t.height = f.value, g(b.value);
88
- const e = o.value < c.value.sm, s = o.value < c.value.md && !e, i = o.value < c.value.lg && !(s || e), n = o.value < c.value.xl && !(i || s || e), r = o.value < c.value.xxl && !(n || i || s || e), d = o.value >= c.value.xxl, Z = e ? "xs" : s ? "sm" : i ? "md" : n ? "lg" : r ? "xl" : "xxl", j = !e, F = !(e || s), G = !(e || s || i), J = !(e || s || i || n), K = !(i || n || r || d), Q = !(n || r || d), X = !(r || d), Y = !d, ee = o.value > f.value ? "landscape" : f.value > o.value ? "portrait" : "square";
89
- t.xs = e, t.sm = s, t.md = i, t.lg = n, t.xl = r, t.xxl = d, t.name = Z, t.smAndUp = j, t.mdAndUp = F, t.lgAndUp = G, t.xlAndUp = J, t.smAndDown = K, t.mdAndDown = Q, t.lgAndDown = X, t.xlAndDown = Y, t.orientation = ee;
90
+ const e = o.value < c.value.sm, s = o.value < c.value.md && !e, i = o.value < c.value.lg && !(s || e), n = o.value < c.value.xl && !(i || s || e), l = o.value < c.value.xxl && !(n || i || s || e), d = o.value >= c.value.xxl, Z = e ? "xs" : s ? "sm" : i ? "md" : n ? "lg" : l ? "xl" : "xxl", j = !e, F = !(e || s), G = !(e || s || i), J = !(e || s || i || n), K = !(i || n || l || d), Q = !(n || l || d), X = !(l || d), Y = !d, ee = o.value > f.value ? "landscape" : f.value > o.value ? "portrait" : "square";
91
+ t.xs = e, t.sm = s, t.md = i, t.lg = n, t.xl = l, t.xxl = d, t.name = Z, t.smAndUp = j, t.mdAndUp = F, t.lgAndUp = G, t.xlAndUp = J, t.smAndDown = K, t.mdAndDown = Q, t.lgAndDown = X, t.xlAndDown = Y, t.orientation = ee;
90
92
  }, 50), V = B(() => {
91
93
  t.intersecting = h.value, t.visible = x.value;
92
94
  }, 50), v = B(() => {
93
- z(), ae(y);
95
+ y(), ce(z);
94
96
  }, 50);
95
- return oe(() => {
96
- l.push(a(b, g, { immediate: !0 })), l.push(
97
+ return re(() => {
98
+ r.push(a(b, g, { immediate: !0 })), r.push(
97
99
  a(E, _, { immediate: !0 })
98
- ), l.push(a(R, q, { immediate: !0 })), l.push(
100
+ ), r.push(a(R, q, { immediate: !0 })), r.push(
99
101
  a(c, $, { immediate: !0 })
100
- ), ce && (u = new ResizeObserver(P)), se && (m = new IntersectionObserver(N)), l.push(a(D, W, { immediate: !0 })), l.push(a(o, I, { immediate: !0 })), l.push(a(f, I, { immediate: !0 })), l.push(
102
+ ), de && (u = new ResizeObserver(P)), ie && (m = new IntersectionObserver(N)), r.push(a(D, W, { immediate: !0 })), r.push(a(o, I, { immediate: !0 })), r.push(a(f, I, { immediate: !0 })), r.push(
101
103
  a(h, V, { immediate: !0 })
102
- ), l.push(a(x, V, { immediate: !0 })), U && window.addEventListener("resize", v), T && (window.visualViewport.addEventListener("resize", v), window.visualViewport.addEventListener("scroll", v));
104
+ ), r.push(a(x, V, { immediate: !0 })), U && window.addEventListener("resize", v), T && (window.visualViewport.addEventListener("resize", v), window.visualViewport.addEventListener("scroll", v));
103
105
  }), le(() => {
104
- U && window.removeEventListener("resize", v), T && (window.visualViewport.removeEventListener("resize", v), window.visualViewport.removeEventListener("scroll", v)), l.forEach((e) => e()), l.splice(0, l.length), u && (u.disconnect(), u = void 0), m && (m.disconnect(), m = void 0);
105
- }), { ...re(t), update: y, ssr: !!M };
106
+ U && window.removeEventListener("resize", v), T && (window.visualViewport.removeEventListener("resize", v), window.visualViewport.removeEventListener("scroll", v)), r.forEach((e) => e()), r.splice(0, r.length), u && (u.disconnect(), u = void 0), m && (m.disconnect(), m = void 0);
107
+ }), { ...ae(t), update: z, ssr: !!M };
106
108
  };
107
109
  export {
108
- ce as S,
110
+ de as S,
109
111
  T as a,
110
- ve as u
112
+ we as u
111
113
  };
112
- //# sourceMappingURL=display-kAyhIPBH.mjs.map
114
+ //# sourceMappingURL=display-B089h_sz.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"display-B089h_sz.mjs","sources":["../src/private/ux/display.ts"],"sourcesContent":["import { useBrowser } from '../ioc'\nimport { useDisplay } from 'vuetify'\nimport { toUnreactive } from '../common/utils'\nimport { debounce } from '@nhtio/vuetifiable/util/helpers'\nimport { IN_BROWSER, SUPPORTS_INTERSECTION } from '@nhtio/vuetifiable/util/globals'\nimport { getCurrentInstanceName } from '@nhtio/vuetifiable/util/getCurrentInstance'\nimport {\n reactive,\n shallowRef,\n triggerRef,\n toRefs,\n watch,\n onMounted,\n onUnmounted,\n nextTick,\n} from 'vue'\nimport type { Ref, ComponentPublicInstance, UnwrapRef, WatchStopHandle } from 'vue'\nimport type { DisplayInstance, DisplayBreakpoint, DisplayThresholds } from 'vuetify'\n\nexport const SUPPORTS_RESIZE_OBSERVATION = IN_BROWSER && 'ResizeObserver' in window\n\nexport const SUPPORTS_VISUAL_VIEWPORT = IN_BROWSER && 'visualViewport' in window\n\ntype DisplayPlatform = DisplayInstance['platform']\n\nexport type ReferencedContainer = Ref<HTMLElement | ComponentPublicInstance | null>\n\nexport const ScopedDisplayOrientation = ['landscape', 'portrait', 'square'] as const\nexport type ScopedDisplayOrientation = (typeof ScopedDisplayOrientation)[number]\n\nexport type ScopedDisplayInstance = DisplayInstance & {\n ssr: boolean\n intersecting: Ref<boolean>\n visible: Ref<boolean>\n orientation: Ref<ScopedDisplayOrientation>\n}\n\n// Extract the ref types as non-ref types and exclude functions\ntype InternalReactiveScopedDisplayStateTypes = {\n [key in keyof ScopedDisplayInstance]: ScopedDisplayInstance[key] extends Ref<any>\n ? UnwrapRef<ScopedDisplayInstance[key]>\n : ScopedDisplayInstance[key] extends Function\n ? never\n : ScopedDisplayInstance[key]\n}\n\n// Create a type that only includes the non-excluded keys\ntype InternalReactiveScopedDisplayState = {\n [K in keyof InternalReactiveScopedDisplayStateTypes as InternalReactiveScopedDisplayStateTypes[K] extends never\n ? never\n : K]: InternalReactiveScopedDisplayStateTypes[K]\n}\n\nexport const useScopedDisplay = (\n container: ReferencedContainer,\n name: string = getCurrentInstanceName('resourcefulComposables')\n) => {\n const vuetifyState = useDisplay({ mobile: null }, name)\n const {\n mobile,\n mobileBreakpoint,\n platform,\n thresholds,\n ssr,\n update: vuetifyUseDisplayUpdate,\n } = vuetifyState\n // despite the urge to use a Set here, an array is more peformant for doing simple iterations\n const watchStopHandles: WatchStopHandle[] = []\n let resizeObserver: ResizeObserver | undefined\n let intersectionObserver: IntersectionObserver | undefined\n const width = shallowRef<number>(0)\n const height = shallowRef<number>(0)\n const intersecting = shallowRef<boolean>(false)\n const visible = shallowRef<boolean>(false)\n const state = reactive<Omit<InternalReactiveScopedDisplayState, 'ssr'>>({\n xs: false,\n sm: false,\n md: false,\n lg: false,\n xl: false,\n xxl: false,\n smAndUp: false,\n mdAndUp: false,\n lgAndUp: false,\n xlAndUp: false,\n smAndDown: false,\n mdAndDown: false,\n lgAndDown: false,\n xlAndDown: false,\n name: 'xs' as const,\n width: 0,\n height: 0,\n mobile: false,\n mobileBreakpoint: toUnreactive(mobileBreakpoint),\n platform: toUnreactive(platform),\n thresholds: toUnreactive(thresholds),\n intersecting: false,\n visible: false,\n orientation: 'square' as ScopedDisplayOrientation,\n })\n const resizeObserverHandler = (entries: ResizeObserverEntry[]) => {\n let w: number = 0\n let h: number = 0\n for (const entry of entries) {\n if ('contentBoxSize' in entry && 'undefined' !== typeof entry.contentBoxSize) {\n const contentBoxSize = Array.isArray(entry.contentBoxSize)\n ? (entry.contentBoxSize[0] as ResizeObserverSize)\n : // Old versions of Firefox treat ResizeObserverSize as a single item\n (entry.contentBoxSize as unknown as ResizeObserverSize)\n w = contentBoxSize.inlineSize\n } else {\n w = entry.contentRect.width\n }\n h = entry.contentRect.height\n updateDimensions(w, h)\n }\n }\n const intersectionObserverHandler = (entries: IntersectionObserverEntry[]) => {\n const isIntersecting = entries.some((entry) => entry.isIntersecting)\n const isVisible = entries.some((entry) =>\n 'isVisible' in entry ? (entry as any).isVisible : entry.isIntersecting\n )\n intersecting.value = isIntersecting\n visible.value = isVisible\n triggerRef(intersecting)\n triggerRef(visible)\n }\n // helper utility to ensure that the width and height are updated\n const updateDimensions = (w: number = 0, h: number = 0) => {\n width.value = w\n height.value = h\n triggerRef(width)\n triggerRef(height)\n }\n // an exposed method to force an update of the display state\n const update = () => {\n vuetifyUseDisplayUpdate()\n const el = getContainerHtmlElement()\n if (el) {\n const rect = el.getBoundingClientRect()\n updateDimensions(rect.width, rect.height)\n } else {\n updateDimensions(0, 0)\n }\n }\n // helper utility to get the mobile breakpoint as a number for comparisons\n const getMobileBreakpointAsNumber = () => {\n if (typeof state.mobileBreakpoint === 'number') {\n return state.mobileBreakpoint\n }\n if (state.mobileBreakpoint in state.thresholds) {\n return state.thresholds[state.mobileBreakpoint]\n }\n // fallback to 600\n return 600\n }\n // helper utility to get the element from a referenced value\n // used to get the container element from the reference, and in watchers\n const getReferencedHtmlElement = (value: HTMLElement | ComponentPublicInstance | null) => {\n const browser = useBrowser()\n if (!value || browser.ssr) return undefined\n if (value instanceof HTMLElement) return value\n if ('$el' in value && value.$el instanceof HTMLElement) {\n return value.$el\n }\n return undefined\n }\n // helper utility to get the referenced container element\n const getContainerHtmlElement = (): HTMLElement | undefined => {\n return getReferencedHtmlElement(container.value)\n }\n // observers for changes in the values from vuetify's useDisplay composable\n const vuetifyUseDisplayMobileObserver = (is: boolean) => {\n if (true === is) {\n state.mobile = true\n } else if (width.value < getMobileBreakpointAsNumber()) {\n state.mobile = true\n } else {\n state.mobile = false\n }\n }\n const vuetifyUseDisplayMobileBreakpointObserver = (is: number | DisplayBreakpoint) => {\n state.mobileBreakpoint = toUnreactive(is)\n queueMicrotask(() => vuetifyUseDisplayMobileObserver(mobile.value))\n }\n const vuetifyUseDisplayPlatformObserver = (is: DisplayPlatform) => {\n state.platform = toUnreactive(is)\n }\n const vuetifyUseDisplayThresholdsObserver = (is: DisplayThresholds) => {\n state.thresholds = toUnreactive(is)\n queueMicrotask(() => vuetifyUseDisplayMobileObserver(mobile.value))\n }\n const containerObserver = (\n is: HTMLElement | ComponentPublicInstance | null,\n was: HTMLElement | ComponentPublicInstance | null | undefined\n ) => {\n const newEl = getReferencedHtmlElement(is)\n const oldEl = getReferencedHtmlElement(was ?? null)\n if (newEl === oldEl) return\n if (intersectionObserver) {\n if (oldEl) {\n intersectionObserver.unobserve(oldEl)\n }\n if (newEl) {\n intersectionObserver.observe(newEl)\n }\n }\n if (resizeObserver) {\n if (oldEl) {\n resizeObserver.unobserve(oldEl)\n }\n if (newEl) {\n resizeObserver.observe(newEl)\n }\n }\n const el = getContainerHtmlElement()\n if (el) {\n const rect = el.getBoundingClientRect()\n updateDimensions(rect.width, rect.height)\n } else {\n updateDimensions(0, 0)\n }\n }\n const dimensionsObserver = debounce(() => {\n state.width = width.value\n state.height = height.value\n vuetifyUseDisplayMobileObserver(mobile.value)\n const xs = width.value < thresholds.value.sm\n const sm = width.value < thresholds.value.md && !xs\n const md = width.value < thresholds.value.lg && !(sm || xs)\n const lg = width.value < thresholds.value.xl && !(md || sm || xs)\n const xl = width.value < thresholds.value.xxl && !(lg || md || sm || xs)\n const xxl = width.value >= thresholds.value.xxl\n const breakpointName = xs ? 'xs' : sm ? 'sm' : md ? 'md' : lg ? 'lg' : xl ? 'xl' : 'xxl'\n const smAndUp = !xs\n const mdAndUp = !(xs || sm)\n const lgAndUp = !(xs || sm || md)\n const xlAndUp = !(xs || sm || md || lg)\n const smAndDown = !(md || lg || xl || xxl)\n const mdAndDown = !(lg || xl || xxl)\n const lgAndDown = !(xl || xxl)\n const xlAndDown = !xxl\n const orientation: ScopedDisplayOrientation =\n width.value > height.value ? 'landscape' : height.value > width.value ? 'portrait' : 'square'\n state.xs = xs\n state.sm = sm\n state.md = md\n state.lg = lg\n state.xl = xl\n state.xxl = xxl\n state.name = breakpointName\n state.smAndUp = smAndUp\n state.mdAndUp = mdAndUp\n state.lgAndUp = lgAndUp\n state.xlAndUp = xlAndUp\n state.smAndDown = smAndDown\n state.mdAndDown = mdAndDown\n state.lgAndDown = lgAndDown\n state.xlAndDown = xlAndDown\n state.orientation = orientation\n }, 50)\n const intersectionAndVisibilityObserver = debounce(() => {\n state.intersecting = intersecting.value\n state.visible = visible.value\n }, 50)\n const windowResizeHandler = debounce(() => {\n // Update Vuetify's display state (handles viewport breakpoints)\n vuetifyUseDisplayUpdate()\n // Give the process a tick and then force an update\n nextTick(update)\n }, 50)\n onMounted(() => {\n watchStopHandles.push(watch(mobile, vuetifyUseDisplayMobileObserver, { immediate: true }))\n watchStopHandles.push(\n watch(mobileBreakpoint, vuetifyUseDisplayMobileBreakpointObserver, { immediate: true })\n )\n watchStopHandles.push(watch(platform, vuetifyUseDisplayPlatformObserver, { immediate: true }))\n watchStopHandles.push(\n watch(thresholds, vuetifyUseDisplayThresholdsObserver, { immediate: true })\n )\n if (SUPPORTS_RESIZE_OBSERVATION) {\n resizeObserver = new ResizeObserver(resizeObserverHandler)\n }\n if (SUPPORTS_INTERSECTION) {\n intersectionObserver = new IntersectionObserver(intersectionObserverHandler)\n }\n watchStopHandles.push(watch(container, containerObserver, { immediate: true }))\n watchStopHandles.push(watch(width, dimensionsObserver, { immediate: true }))\n watchStopHandles.push(watch(height, dimensionsObserver, { immediate: true }))\n watchStopHandles.push(\n watch(intersecting, intersectionAndVisibilityObserver, { immediate: true })\n )\n watchStopHandles.push(watch(visible, intersectionAndVisibilityObserver, { immediate: true }))\n // Add window resize listener\n if (IN_BROWSER) {\n window.addEventListener('resize', windowResizeHandler)\n }\n // Add visual viewport listeners\n if (SUPPORTS_VISUAL_VIEWPORT) {\n window.visualViewport!.addEventListener('resize', windowResizeHandler)\n window.visualViewport!.addEventListener('scroll', windowResizeHandler)\n }\n })\n onUnmounted(() => {\n // Remove window resize listener\n if (IN_BROWSER) {\n window.removeEventListener('resize', windowResizeHandler)\n }\n // Remove visual viewport listeners\n if (SUPPORTS_VISUAL_VIEWPORT) {\n window.visualViewport!.removeEventListener('resize', windowResizeHandler)\n window.visualViewport!.removeEventListener('scroll', windowResizeHandler)\n }\n // clear all of the watch stop handles\n watchStopHandles.forEach((stopHandle) => stopHandle())\n watchStopHandles.splice(0, watchStopHandles.length)\n // cleanup the resize observer\n if (resizeObserver) {\n resizeObserver.disconnect()\n resizeObserver = undefined\n }\n // cleanup the intersection observer\n if (intersectionObserver) {\n intersectionObserver.disconnect()\n intersectionObserver = undefined\n }\n })\n return { ...toRefs(state), update, ssr: !!ssr }\n}\n"],"names":["SUPPORTS_RESIZE_OBSERVATION","IN_BROWSER","SUPPORTS_VISUAL_VIEWPORT","useScopedDisplay","container","name","getCurrentInstanceName","vuetifyState","useDisplay","mobile","mobileBreakpoint","platform","thresholds","ssr","vuetifyUseDisplayUpdate","watchStopHandles","resizeObserver","intersectionObserver","width","shallowRef","height","intersecting","visible","state","reactive","toUnreactive","resizeObserverHandler","entries","w","h","entry","updateDimensions","intersectionObserverHandler","isIntersecting","isVisible","triggerRef","update","el","getContainerHtmlElement","rect","getMobileBreakpointAsNumber","getReferencedHtmlElement","value","browser","useBrowser","vuetifyUseDisplayMobileObserver","is","vuetifyUseDisplayMobileBreakpointObserver","vuetifyUseDisplayPlatformObserver","vuetifyUseDisplayThresholdsObserver","containerObserver","was","newEl","oldEl","dimensionsObserver","debounce","xs","sm","md","lg","xl","xxl","breakpointName","smAndUp","mdAndUp","lgAndUp","xlAndUp","smAndDown","mdAndDown","lgAndDown","xlAndDown","orientation","intersectionAndVisibilityObserver","windowResizeHandler","nextTick","onMounted","watch","SUPPORTS_INTERSECTION","onUnmounted","stopHandle","toRefs"],"mappings":";;;;;AAmBO,MAAMA,KAA8BC,KAAc,oBAAoB,QAEhEC,IAA2BD,KAAc,oBAAoB,QAgC7DE,KAAmB,CAC9BC,GACAC,IAAeC,GAAuB,wBAAwB,MAC3D;AACH,QAAMC,IAAeC,GAAW,EAAE,QAAQ,KAAA,GAAQH,CAAI,GAChD;AAAA,IACJ,QAAAI;AAAA,IACA,kBAAAC;AAAA,IACA,UAAAC;AAAA,IACA,YAAAC;AAAA,IACA,KAAAC;AAAA,IACA,QAAQC;AAAA,EAAA,IACNP,GAEEQ,IAAsC,CAAA;AAC5C,MAAIC,GACAC;AACJ,QAAMC,IAAQC,EAAmB,CAAC,GAC5BC,IAASD,EAAmB,CAAC,GAC7BE,IAAeF,EAAoB,EAAK,GACxCG,IAAUH,EAAoB,EAAK,GACnCI,IAAQC,GAA0D;AAA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W,GAAA,CAAM,CAAC,GAC5EvC,EAAiB;AAAA,MACf6D,EAAMvD,GAAcmD,GAAmC,EAAE,WAAW,IAAM;AAAA,IAAA,GAE5EzD,EAAiB,KAAK6D,EAAMtD,GAASkD,GAAmC,EAAE,WAAW,GAAA,CAAM,CAAC,GAExFvE,KACF,OAAO,iBAAiB,UAAUwE,CAAmB,GAGnDvE,MACF,OAAO,eAAgB,iBAAiB,UAAUuE,CAAmB,GACrE,OAAO,eAAgB,iBAAiB,UAAUA,CAAmB;AAAA,EAEzE,CAAC,GACDK,GAAY,MAAM;AAEhB,IAAI7E,KACF,OAAO,oBAAoB,UAAUwE,CAAmB,GAGtDvE,MACF,OAAO,eAAgB,oBAAoB,UAAUuE,CAAmB,GACxE,OAAO,eAAgB,oBAAoB,UAAUA,CAAmB,IAG1E1D,EAAiB,QAAQ,CAACgE,MAAeA,EAAA,CAAY,GACrDhE,EAAiB,OAAO,GAAGA,EAAiB,MAAM,GAE9CC,MACFA,EAAe,WAAA,GACfA,IAAiB,SAGfC,MACFA,EAAqB,WAAA,GACrBA,IAAuB;AAAA,EAE3B,CAAC,GACM,EAAE,GAAG+D,GAAOzD,CAAK,GAAG,QAAAa,GAAQ,KAAK,CAAC,CAACvB,EAAA;AAC5C;"}
@@ -1,14 +1,14 @@
1
1
  import { ref as Dt, onBeforeUnmount as Ot, watch as xe, nextTick as Pe, mergeProps as ce, createVNode as Le } from "vue";
2
- import { o as zt, q as $e, r as At, s as Ft, t as Ht } from "./mdi-CqMJqgQi.mjs";
3
- import { g as Mt, p as Wt, u as jt, j as Ut, k as Kt, l as qt, h as Ve } from "./display-DvzWa1QO.mjs";
4
- import { p as w, z as W, Q as y, a1 as Ie, C as O, V as j, B as k, Y as Ce, aa as Ze, a0 as X, E as h, F as _e, O as D, ab as Se, ac as Gt, M as ie, X as Xt, ad as Je, a5 as fe, ae as Yt, af as se, ag as et, ah as Qt, Z as Zt, ai as tt, aj as Jt, a6 as en, ak as tn, al as oe, w as S, W as H, am as nn, an as nt, a9 as on, ao as an, G as J, D as ot, ap as we, aq as rn, a3 as at, ar as sn, as as ln, at as un, au as cn, av as dn, aw as vn, ax as fn, ay as Be, az as Ne, aA as rt, H as Re, aB as mn, aC as De, P as it, aD as me, L as ge, aE as gn, aF as hn, S as Oe, U as pn } from "./utils-DqXWb-4f.mjs";
5
- import { c as bn } from "./console-CRXioSFP.mjs";
6
- import { g as ee, p as yn, I as Cn, e as _n } from "./elevation-CMzO50xm.mjs";
7
- import { m as le } from "./component-CjPpW_A2.mjs";
8
- import { u as ue } from "./useRender-BD1xw5zG.mjs";
2
+ import { o as At, q as $e, r as zt, s as Ft, t as Ht } from "./mdi-DC1jeTJJ.mjs";
3
+ import { g as Mt, p as Wt, u as jt, D as Ut, o as Kt, E as qt, C as Ve } from "./display-fXo4JeIS.mjs";
4
+ import { p as w, A as W, Q as y, a1 as Ie, B as O, V as j, C as k, Y as Ce, a2 as Ze, a0 as X, E as h, F as _e, O as D, a3 as Se, a4 as Gt, M as ie, X as Xt, a5 as Je, a6 as fe, a7 as Yt, a8 as se, a9 as et, aa as Qt, Z as Zt, ab as tt, ac as Jt, ad as en, ae as tn, af as oe, z as S, W as H, ag as nn, ah as nt, ai as on, aj as an, G as J, D as ot, ak as we, al as rn, am as at, an as sn, ao as ln, ap as un, aq as cn, ar as dn, as as vn, at as fn, au as Be, av as Ne, aw as rt, H as Re, ax as mn, ay as De, P as it, az as me, L as ge, aA as gn, aB as hn, S as Oe, U as pn } from "./utils-D3ZGaTyv.mjs";
5
+ import { c as bn } from "./console-Dgoi3FwV.mjs";
6
+ import { g as ee, p as yn, I as Cn, e as _n } from "./elevation-YNOj0hSa.mjs";
7
+ import { m as le } from "./component-DhEJuSE6.mjs";
8
+ import { u as ue } from "./useRender-CfNJA_8a.mjs";
9
9
  import { S as Ee, I as st } from "./encoding-C1W2Cp3X-DzgQRCVx.mjs";
10
- import { a as ze, i as Sn, p as wn, g as En } from "./colorUtils-DmtKYNgW.mjs";
11
- import './display.css';const kn = Wt({
10
+ import { a as Ae, i as Sn, p as wn, g as En } from "./colorUtils-BdpqbLZS.mjs";
11
+ const kn = Wt({
12
12
  fullscreen: Boolean,
13
13
  retainFocus: {
14
14
  type: Boolean,
@@ -38,7 +38,7 @@ import './display.css';const kn = Wt({
38
38
  } = t;
39
39
  const r = jt(e, "modelValue"), {
40
40
  scopeId: a
41
- } = zt(), i = Dt();
41
+ } = At(), i = Dt();
42
42
  async function u(d) {
43
43
  const s = d.relatedTarget, f = d.target;
44
44
  await Pe(), r.value && s !== f && i.value?.contentEl && // We're the topmost dialog
@@ -112,7 +112,7 @@ import './display.css';const kn = Wt({
112
112
  });
113
113
  }
114
114
  });
115
- }), At({}, i);
115
+ }), zt({}, i);
116
116
  }
117
117
  }), $o = w(
118
118
  {
@@ -187,7 +187,7 @@ function ke(e) {
187
187
  return Ze(() => {
188
188
  const t = X(e), n = [], o = {};
189
189
  if (t.background)
190
- if (ze(t.background)) {
190
+ if (Ae(t.background)) {
191
191
  if (o.backgroundColor = t.background, !t.text && Sn(t.background)) {
192
192
  const r = wn(t.background);
193
193
  if (r.a == null || r.a === 1) {
@@ -197,7 +197,7 @@ function ke(e) {
197
197
  }
198
198
  } else
199
199
  n.push(`bg-${t.background}`);
200
- return t.text && (ze(t.text) ? (o.color = t.text, o.caretColor = t.text) : n.push(`text-${t.text}`)), { colorClasses: n, colorStyles: o };
200
+ return t.text && (Ae(t.text) ? (o.color = t.text, o.caretColor = t.text) : n.push(`text-${t.text}`)), { colorClasses: n, colorStyles: o };
201
201
  });
202
202
  }
203
203
  function vt(e) {
@@ -380,7 +380,7 @@ function Oo(e, t, n = !0) {
380
380
  group: a
381
381
  };
382
382
  }
383
- function zo(e, t) {
383
+ function Ao(e, t) {
384
384
  let n = !1;
385
385
  const o = fe([]), r = ft(
386
386
  e,
@@ -483,7 +483,7 @@ const In = w({
483
483
  reset: [Number, String],
484
484
  root: [Boolean, String],
485
485
  scoped: Boolean
486
- }, "VDefaultsProvider"), Ao = ee(!1)({
486
+ }, "VDefaultsProvider"), zo = ee(!1)({
487
487
  name: "VDefaultsProvider",
488
488
  props: In(),
489
489
  setup(e, {
@@ -631,7 +631,7 @@ function Ho(e, t = "content") {
631
631
  contentRect: an(o)
632
632
  };
633
633
  }
634
- const zn = w(
634
+ const An = w(
635
635
  {
636
636
  height: [Number, String],
637
637
  maxHeight: [Number, String],
@@ -642,7 +642,7 @@ const zn = w(
642
642
  },
643
643
  "dimension"
644
644
  );
645
- function An(e) {
645
+ function zn(e) {
646
646
  return { dimensionStyles: y(() => {
647
647
  const n = {}, o = S(e.height), r = S(e.maxHeight), a = S(e.maxWidth), i = S(e.minHeight), u = S(e.minWidth), l = S(e.width);
648
648
  return o != null && (n.height = o), r != null && (n.maxHeight = r), a != null && (n.maxWidth = a), i != null && (n.minHeight = i), u != null && (n.minWidth = u), l != null && (n.width = l), n;
@@ -665,11 +665,11 @@ const pt = ["top", "bottom"], Fn = ["start", "end", "left", "right"];
665
665
  function Hn(e, t) {
666
666
  let [n, o] = e.split(" ");
667
667
  return o || (o = oe(pt, n) ? "start" : oe(Fn, n) ? "top" : "center"), {
668
- side: Ae(n, t),
669
- align: Ae(o, t)
668
+ side: ze(n, t),
669
+ align: ze(o, t)
670
670
  };
671
671
  }
672
- function Ae(e, t) {
672
+ function ze(e, t) {
673
673
  return e === "start" ? t ? "right" : "left" : e === "end" ? t ? "left" : "right" : e;
674
674
  }
675
675
  function Wo(e) {
@@ -807,14 +807,14 @@ function _t(e) {
807
807
  onBeforeAppear: B = E,
808
808
  onAppear: U = x,
809
809
  onAppearCancelled: K = T
810
- } = t, L = (v, C, $, A) => {
811
- v._enterCancelled = A, R(v, C ? m : u), R(v, C ? c : i), $ && $();
812
- }, z = (v, C) => {
810
+ } = t, L = (v, C, $, z) => {
811
+ v._enterCancelled = z, R(v, C ? m : u), R(v, C ? c : i), $ && $();
812
+ }, A = (v, C) => {
813
813
  v._isLeaving = !1, R(v, d), R(v, f), R(v, s), C && C();
814
814
  }, b = (v) => (C, $) => {
815
- const A = v ? U : x, Te = () => L(C, v, $);
816
- F(A, [C, Te]), We(() => {
817
- R(C, v ? l : a), V(C, v ? m : u), Me(A) || je(C, o, p, Te);
815
+ const z = v ? U : x, Te = () => L(C, v, $);
816
+ F(z, [C, Te]), We(() => {
817
+ R(C, v ? l : a), V(C, v ? m : u), Me(z) || je(C, o, p, Te);
818
818
  });
819
819
  };
820
820
  return we(t, {
@@ -828,7 +828,7 @@ function _t(e) {
828
828
  onAppear: b(!0),
829
829
  onLeave(v, C) {
830
830
  v._isLeaving = !0;
831
- const $ = () => z(v, C);
831
+ const $ = () => A(v, C);
832
832
  V(v, d), v._enterCancelled ? (V(v, s), pe()) : (pe(), V(v, s)), We(() => {
833
833
  v._isLeaving && (R(v, d), V(v, f), Me(I) || je(v, o, _, $));
834
834
  }), F(I, [v, $]);
@@ -840,7 +840,7 @@ function _t(e) {
840
840
  L(v, !0, void 0, !0), F(K, [v]);
841
841
  },
842
842
  onLeaveCancelled(v) {
843
- z(v), F(M, [v]);
843
+ A(v), F(M, [v]);
844
844
  }
845
845
  });
846
846
  }
@@ -1123,10 +1123,10 @@ const no = ["ctrl", "shift", "alt", "meta"], oo = {
1123
1123
  function K(L) {
1124
1124
  if (!_.value) return;
1125
1125
  const {
1126
- left: z,
1126
+ left: A,
1127
1127
  right: b,
1128
1128
  width: v
1129
- } = _.value.getBoundingClientRect(), C = B.value ? v - L.clientX + (b - v) : L.clientX - z;
1129
+ } = _.value.getBoundingClientRect(), C = B.value ? v - L.clientX + (b - v) : L.clientX - A;
1130
1130
  n.value = Math.round(C / v * x.value);
1131
1131
  }
1132
1132
  return ue(() => h(e.tag, {
@@ -1463,7 +1463,7 @@ const Nt = w({
1463
1463
  contentClass: null,
1464
1464
  inline: Boolean,
1465
1465
  ...le(),
1466
- ...zn()
1466
+ ...An()
1467
1467
  }, "VResponsive"), Qe = ee()({
1468
1468
  name: "VResponsive",
1469
1469
  props: Nt(),
@@ -1474,7 +1474,7 @@ const Nt = w({
1474
1474
  aspectStyles: n
1475
1475
  } = fo(e), {
1476
1476
  dimensionStyles: o
1477
- } = An(e);
1477
+ } = zn(e);
1478
1478
  return ue(() => {
1479
1479
  var r;
1480
1480
  return h("div", {
@@ -1645,9 +1645,9 @@ const ho = {
1645
1645
  if (clearTimeout(x), i.isUnmounted) return;
1646
1646
  const {
1647
1647
  naturalHeight: $,
1648
- naturalWidth: A
1648
+ naturalWidth: z
1649
1649
  } = b;
1650
- $ || A ? (m.value = A, d.value = $) : !b.complete && c.value === "loading" && v != null ? x = window.setTimeout(C, v) : (b.currentSrc.endsWith(".svg") || b.currentSrc.startsWith("data:image/svg+xml")) && (m.value = 1, d.value = 1);
1650
+ $ || z ? (m.value = z, d.value = $) : !b.complete && c.value === "loading" && v != null ? x = window.setTimeout(C, v) : (b.currentSrc.endsWith(".svg") || b.currentSrc.startsWith("data:image/svg+xml")) && (m.value = 1, d.value = 1);
1651
1651
  };
1652
1652
  C();
1653
1653
  }
@@ -1714,12 +1714,12 @@ const ho = {
1714
1714
  style: {
1715
1715
  backgroundImage: `linear-gradient(${e.gradient})`
1716
1716
  }
1717
- }, null) : null, z = H(!1);
1717
+ }, null) : null, A = H(!1);
1718
1718
  {
1719
1719
  const b = D(f, (v) => {
1720
1720
  v && (requestAnimationFrame(() => {
1721
1721
  requestAnimationFrame(() => {
1722
- z.value = !0;
1722
+ A.value = !0;
1723
1723
  });
1724
1724
  }), b());
1725
1725
  });
@@ -1729,7 +1729,7 @@ const ho = {
1729
1729
  return Oe(h(Qe, ge({
1730
1730
  class: ["v-img", {
1731
1731
  "v-img--absolute": e.absolute,
1732
- "v-img--booting": !z.value
1732
+ "v-img--booting": !A.value
1733
1733
  }, o.value, a.value, e.class],
1734
1734
  style: [{
1735
1735
  width: S(e.width === "auto" ? m.value : e.width)
@@ -1803,12 +1803,12 @@ export {
1803
1803
  Nn as a,
1804
1804
  ea as a0,
1805
1805
  kn as a1,
1806
- zn as b,
1807
- An as c,
1806
+ An as b,
1807
+ zn as c,
1808
1808
  ra as d,
1809
1809
  na as e,
1810
1810
  Fo as f,
1811
- Ao as g,
1811
+ zo as g,
1812
1812
  Bo as h,
1813
1813
  ct as i,
1814
1814
  lt as j,
@@ -1818,7 +1818,7 @@ export {
1818
1818
  ut as n,
1819
1819
  Ro as o,
1820
1820
  Tn as p,
1821
- zo as q,
1821
+ Ao as q,
1822
1822
  Rn as r,
1823
1823
  vt as s,
1824
1824
  On as t,
@@ -1829,4 +1829,4 @@ export {
1829
1829
  Go as y,
1830
1830
  Do as z
1831
1831
  };
1832
- //# sourceMappingURL=display-CO0pTIEs.mjs.map
1832
+ //# sourceMappingURL=display-dv4cOwRN.mjs.map