@revolugo/elements 6.8.3 → 6.9.0-beta.0

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 (179) hide show
  1. package/README.md +1 -1
  2. package/dist/css/fonts.css +1 -1
  3. package/dist/css/revolugo.cancellationpoliciesbadge.BCmMv5CR.css +1 -0
  4. package/dist/css/revolugo.index.ClC0OVqq.css +5 -0
  5. package/dist/css/{revolugo.vtoolbar.BZert82L.css → revolugo.preferencesmenu.7UfG9ius.css} +1 -1
  6. package/dist/css/{revolugo.webcomponentwrapper.DRCKFwuk.css → revolugo.webcomponentwrapper.C3K3E5wv.css} +2 -2
  7. package/dist/index.es.min.js +2033 -2172
  8. package/dist/index.es.min.js.map +1 -1
  9. package/dist/index.min.js +6 -6
  10. package/dist/index.min.js.map +1 -1
  11. package/dist/revolugo.banktransferdetails.DIwmwiki.min.js +37 -0
  12. package/dist/revolugo.bookingdetailssidebar.CURYxT7w.min.js +38 -0
  13. package/dist/revolugo.bookingmanager.BgJVEAba.min.js +25 -0
  14. package/dist/revolugo.cancellationpoliciesbadge.CxO1HyOA.min.js +25 -0
  15. package/dist/revolugo.cancellationpoliciesbadge.props.D3C9w_OV.min.js +30875 -0
  16. package/dist/revolugo.cancellationpolicieslist.CClF7R0p.min.js +25 -0
  17. package/dist/revolugo.creditcardform.BLv484O_.min.js +25 -0
  18. package/dist/revolugo.creditcardpayment.BB0ucanh.min.js +25 -0
  19. package/dist/revolugo.currencypickerbtn.DMgpKcz0.min.js +25 -0
  20. package/dist/revolugo.fastbookingflow.D2tOZmpu.min.js +35 -0
  21. package/dist/revolugo.fullbookingflow.BIfijAae.min.js +25 -0
  22. package/dist/revolugo.hoteldescriptionview.C8P4XIvR.min.js +25 -0
  23. package/dist/revolugo.hotelofferlist.CXHGfElj.min.js +25 -0
  24. package/dist/revolugo.hoteloffersearchmenu.CcjkzhZJ.min.js +73 -0
  25. package/dist/revolugo.hoteloffersmap.BsVCYroc.min.js +25 -0
  26. package/dist/revolugo.hoteloffersview.B64f1wvS.min.js +20 -0
  27. package/dist/revolugo.hotelroomofferlist.CfDXaxwp.min.js +25 -0
  28. package/dist/revolugo.hotelroomoffersbookingflow.DH6meEzW.min.js +25 -0
  29. package/dist/revolugo.hotelroomoffersearchmenu.C6m4k_Rr.min.js +25 -0
  30. package/dist/revolugo.hotelroomoffersview.6hxfrH3M.min.js +25 -0
  31. package/dist/revolugo.index.UaUDIMS5.min.js +106 -0
  32. package/dist/{revolugo.index.wc.7I5uexuc.min.js → revolugo.index.wc.DEo_xTvj.min.js} +12071 -12302
  33. package/dist/revolugo.langpickerbtn.B_B4BQwa.min.js +30 -0
  34. package/dist/revolugo.min.js +1 -1
  35. package/dist/revolugo.prebookform.Btuuk21Q.min.js +25 -0
  36. package/dist/revolugo.preferencesmenu.BDPlWGes.min.js +24 -0
  37. package/dist/revolugo.preferencesmenu.BVPHimYi.min.js +1098 -0
  38. package/dist/revolugo.roominglisteditor.B55oRlzf.min.js +25 -0
  39. package/dist/revolugo.storybooktoolbar.DFiFAYLL.min.js +846 -0
  40. package/dist/revolugo.termsandconditions.C2oiRbjY.min.js +24 -0
  41. package/dist/revolugo.webcomponentwrapper.CKFKL54u.min.js +28590 -0
  42. package/package.json +5 -5
  43. package/dist/css/revolugo.bdaterangepicker.CHUExWGL.css +0 -1
  44. package/dist/css/revolugo.bhoteloffersfilterbar.BcnNI4uS.css +0 -1
  45. package/dist/css/revolugo.bhotelroomsdetails.ZHH0C1yQ.css +0 -1
  46. package/dist/css/revolugo.bhotelsearchbar.Bl5_UFe8.css +0 -1
  47. package/dist/css/revolugo.bimagecarousel.BvgD1yrr.css +0 -1
  48. package/dist/css/revolugo.bookingdetailssidebar.CNP_D5F3.css +0 -1
  49. package/dist/css/revolugo.bstarrating.Dxd1LjMb.css +0 -1
  50. package/dist/css/revolugo.btag.g-q3eChG.css +0 -1
  51. package/dist/css/revolugo.cancellationpoliciesbadge.CwgZ0PpX.css +0 -1
  52. package/dist/css/revolugo.creditcardform.DWne0Lnv.css +0 -1
  53. package/dist/css/revolugo.creditcardpayment.D2PE5FCt.css +0 -1
  54. package/dist/css/revolugo.currencypicker.DO0IrmRK.css +0 -1
  55. package/dist/css/revolugo.fullbookingflow.Bm8JAQF7.css +0 -1
  56. package/dist/css/revolugo.hoteldescriptionview.DWuzEuGF.css +0 -1
  57. package/dist/css/revolugo.hotelofferlist.BkctzTMI.css +0 -1
  58. package/dist/css/revolugo.hoteloffersmap.2oSkomDb.css +0 -1
  59. package/dist/css/revolugo.hoteloffersview.Bo2dQWYt.css +0 -1
  60. package/dist/css/revolugo.hotelroomofferlist.DpLXIpgU.css +0 -1
  61. package/dist/css/revolugo.hotelroomoffersbookingflow.LHa5iHB7.css +0 -1
  62. package/dist/css/revolugo.index.DQ3Yd6SO.css +0 -1
  63. package/dist/css/revolugo.index.XNPQF1ia.css +0 -5
  64. package/dist/css/revolugo.langpickerbtn.D2iA6mCb.css +0 -1
  65. package/dist/css/revolugo.position.7fn84IQ5.css +0 -1
  66. package/dist/css/revolugo.prebookform.DmCR7hLv.css +0 -1
  67. package/dist/css/revolugo.termsandconditions.DCvNJQQL.css +0 -1
  68. package/dist/css/revolugo.vautocomplete.CuVjyvcC.css +0 -1
  69. package/dist/css/revolugo.vbadge.BQrRJ9S0.css +0 -1
  70. package/dist/css/revolugo.vbtn.BU0YQ6en.css +0 -1
  71. package/dist/css/revolugo.vcard.B8jNYFn_.css +0 -1
  72. package/dist/css/revolugo.vcheckboxbtn.BQ05xI0T.css +0 -1
  73. package/dist/css/revolugo.vdialog.DwTSAOeg.css +0 -1
  74. package/dist/css/revolugo.vdivider.CTbbZwnv.css +0 -1
  75. package/dist/css/revolugo.vexpansionpanels.RsCANmDP.css +0 -1
  76. package/dist/css/revolugo.vinput.BPiFMorL.css +0 -1
  77. package/dist/css/revolugo.vlabel.BvKaKg7Y.css +0 -1
  78. package/dist/css/revolugo.vlist.BkGS0yqt.css +0 -1
  79. package/dist/css/revolugo.vmenu.DvKwEp1j.css +0 -1
  80. package/dist/css/revolugo.vselect.C5CKHFYB.css +0 -1
  81. package/dist/css/revolugo.vsheet.Dmcoj8cr.css +0 -1
  82. package/dist/css/revolugo.vskeletonloader.BlK8uFkX.css +0 -1
  83. package/dist/css/revolugo.vsnackbar.Cj7AcupY.css +0 -1
  84. package/dist/css/revolugo.vtextarea.HYL6WUNS.css +0 -1
  85. package/dist/css/revolugo.vtextfield.BIH_AWWP.css +0 -1
  86. package/dist/css/revolugo.vtooltip.O8QDYs1J.css +0 -1
  87. package/dist/css/revolugo.vwindowitem.CWBhiE_Y.css +0 -1
  88. package/dist/revolugo._basefor.CodrYJxd.min.js +0 -15
  89. package/dist/revolugo.banktransferdetails.BdulCgI5.min.js +0 -373
  90. package/dist/revolugo.bdaterangepicker.XZNoMSi5.min.js +0 -8435
  91. package/dist/revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.D9Qs1dZa.min.js +0 -61
  92. package/dist/revolugo.bhoteloffersfilterbar.Bryijtf6.min.js +0 -4685
  93. package/dist/revolugo.bhotelroomsdetails.orWBBD_o.min.js +0 -1013
  94. package/dist/revolugo.bhotelsearchbar.DxxqZWkN.min.js +0 -947
  95. package/dist/revolugo.bimagecarousel.DIPN99VA.min.js +0 -598
  96. package/dist/revolugo.bookingdetailssidebar.CD4SMOkC.min.js +0 -24
  97. package/dist/revolugo.bookingdetailssidebar.JOU68R1_.min.js +0 -880
  98. package/dist/revolugo.bookingmanager.B5cM9Mi5.min.js +0 -1789
  99. package/dist/revolugo.bpricesummaryskeleton.YKfKKB5n.min.js +0 -79
  100. package/dist/revolugo.bstarrating.vue_vue_type_script_setup_true_lang.2z9RUthr.min.js +0 -623
  101. package/dist/revolugo.btag.DjjDRtQ7.min.js +0 -387
  102. package/dist/revolugo.cancellationpoliciesbadge.D8ou6oFl.min.js +0 -225
  103. package/dist/revolugo.cancellationpoliciesbadge.jgFCG7yZ.min.js +0 -24
  104. package/dist/revolugo.cancellationpolicieslist.CZImqgN3.min.js +0 -24
  105. package/dist/revolugo.cancellationpolicieslist.D097ASNF.min.js +0 -176
  106. package/dist/revolugo.case-transformers.Dr1oSJkZ.min.js +0 -123
  107. package/dist/revolugo.common.D-l8b0V5.min.js +0 -10
  108. package/dist/revolugo.creditcardform.DNOMVOgZ.min.js +0 -2161
  109. package/dist/revolugo.creditcardform.DvHcDx2P.min.js +0 -24
  110. package/dist/revolugo.creditcardpayment.BLP3RXk4.min.js +0 -893
  111. package/dist/revolugo.creditcardpayment.D3lPKmx1.min.js +0 -24
  112. package/dist/revolugo.currencypicker.CzzS1Adp.min.js +0 -330
  113. package/dist/revolugo.currencypickerbtn.ChUEouGw.min.js +0 -163
  114. package/dist/revolugo.currencypickerbtn.DWnyc54P.min.js +0 -24
  115. package/dist/revolugo.dialog-attach.O2HXPGzj.min.js +0 -28
  116. package/dist/revolugo.dialog-transition.C6S7Ci1s.min.js +0 -114
  117. package/dist/revolugo.fastbookingflow.ChNa4jgv.min.js +0 -34
  118. package/dist/revolugo.forwardrefs.-bfQnFea.min.js +0 -71
  119. package/dist/revolugo.fullbookingflow.ByKmNqgi.min.js +0 -451
  120. package/dist/revolugo.hoteldescriptionview.CbtxEPGG.min.js +0 -3091
  121. package/dist/revolugo.hoteldescriptionview.D3JTbFxn.min.js +0 -24
  122. package/dist/revolugo.hotelofferitemlayout.tBOOIdeT.min.js +0 -259
  123. package/dist/revolugo.hotelofferlist.BVySEYbq.min.js +0 -5744
  124. package/dist/revolugo.hotelofferlist.puK2FNBR.min.js +0 -24
  125. package/dist/revolugo.hotelofferrequestcreator.CbCau_4i.min.js +0 -230
  126. package/dist/revolugo.hoteloffersearchmenu.iiAtyddA.min.js +0 -46
  127. package/dist/revolugo.hoteloffersmap.BRVm5s6N.min.js +0 -8394
  128. package/dist/revolugo.hoteloffersmap.DqKpfjbt.min.js +0 -24
  129. package/dist/revolugo.hoteloffersview.3LJ-m6BY.min.js +0 -620
  130. package/dist/revolugo.hoteloffersview.DsGyT5s7.min.js +0 -19
  131. package/dist/revolugo.hotelroomofferlist.DdMr5qEZ.min.js +0 -24
  132. package/dist/revolugo.hotelroomofferlist.M-3bowQa.min.js +0 -2934
  133. package/dist/revolugo.hotelroomofferrequestcreator.props.CUwZUDcm.min.js +0 -171
  134. package/dist/revolugo.hotelroomoffersbookingflow.Bef_aJFl.min.js +0 -1306
  135. package/dist/revolugo.hotelroomoffersearchmenu.D9Zn_Gjy.min.js +0 -25
  136. package/dist/revolugo.hotelroomoffersearchmenu.Fkf-MQ_8.min.js +0 -232
  137. package/dist/revolugo.hotelroomoffersview.BSth8Xsz.min.js +0 -305
  138. package/dist/revolugo.hotelroomoffersview.oxTgBMSk.min.js +0 -24
  139. package/dist/revolugo.index.D0uSQdJV.min.js +0 -13
  140. package/dist/revolugo.index.gIPq0z7C.min.js +0 -1037
  141. package/dist/revolugo.langpicker.CLdiic9k.min.js +0 -107
  142. package/dist/revolugo.langpickerbtn.BIHQAnjv.min.js +0 -24
  143. package/dist/revolugo.langpickerbtn.DF-m4pCF.min.js +0 -178
  144. package/dist/revolugo.position.hqKd4K_h.min.js +0 -322
  145. package/dist/revolugo.prebookform.B8aMLMuG.min.js +0 -1531
  146. package/dist/revolugo.prebookform.CxK0iSDo.min.js +0 -24
  147. package/dist/revolugo.roominglisteditor.D7WzDtw6.min.js +0 -24
  148. package/dist/revolugo.roominglisteditor.Do-pe811.min.js +0 -391
  149. package/dist/revolugo.rounded.Dnxang6X.min.js +0 -68
  150. package/dist/revolugo.ssrboot.ByGq44eI.min.js +0 -18
  151. package/dist/revolugo.storybooktoolbar.DY_mbXuP.min.js +0 -882
  152. package/dist/revolugo.termsandconditions.DXNFR45_.min.js +0 -423
  153. package/dist/revolugo.termsandconditions.DfGTVPYa.min.js +0 -23
  154. package/dist/revolugo.use-breakpoint-service.CJltQiSH.min.js +0 -106
  155. package/dist/revolugo.vautocomplete.BjPSa1jg.min.js +0 -466
  156. package/dist/revolugo.vbadge.D1RCkHoZ.min.js +0 -118
  157. package/dist/revolugo.vbtn.CQ9EDLRJ.min.js +0 -417
  158. package/dist/revolugo.vcard.DNU4i52n.min.js +0 -329
  159. package/dist/revolugo.vcheckboxbtn.De-k8-O3.min.js +0 -491
  160. package/dist/revolugo.vdialog.CjEajxIC.min.js +0 -139
  161. package/dist/revolugo.vdivider.Cp9bHPnI.min.js +0 -77
  162. package/dist/revolugo.vexpansionpanels.L2ZpX4zd.min.js +0 -276
  163. package/dist/revolugo.vform.Bw9rddZZ.min.js +0 -50
  164. package/dist/revolugo.vinput.P34xrpIC.min.js +0 -477
  165. package/dist/revolugo.vlabel.CLHrAz78.min.js +0 -51
  166. package/dist/revolugo.vlist.hRQlcp5M.min.js +0 -1348
  167. package/dist/revolugo.vmenu.BRFw3Jzk.min.js +0 -152
  168. package/dist/revolugo.vselect.u2C25NCe.min.js +0 -688
  169. package/dist/revolugo.vsheet.8UeU7qQn.min.js +0 -72
  170. package/dist/revolugo.vskeletonloader.Dk0enVo6.min.js +0 -137
  171. package/dist/revolugo.vsnackbar.18JqJsZ2.min.js +0 -202
  172. package/dist/revolugo.vspacer.CPbtu_-W.min.js +0 -7
  173. package/dist/revolugo.vtextarea.Cjuqcka5.min.js +0 -2102
  174. package/dist/revolugo.vtextfield.BUNcwTRK.min.js +0 -509
  175. package/dist/revolugo.vtoolbar.CvbAGFXR.min.js +0 -188
  176. package/dist/revolugo.vtooltip.CsXJFD-V.min.js +0 -395
  177. package/dist/revolugo.vwindowitem.DGRfRU3q.min.js +0 -329
  178. package/dist/revolugo.watch-list.D0FxBTWy.min.js +0 -16
  179. package/dist/revolugo.webcomponentwrapper.DFYGhYzz.min.js +0 -2148
@@ -1,1348 +0,0 @@
1
- import { ai as H, a5 as M, ak as Y, a3 as ye, bV as C, _ as T, C as L, a2 as J, D as g, W as ge, bN as nt, ab as w, aE as at, b1 as Se, Z as N, a as m, bW as lt, H as he, I as it, $ as E, M as st, aD as be, bX as rt, aA as ut, y as ee, aF as pe, a0 as G, F as oe, t as ce, a8 as ot, bY as ke, aV as Ce, bI as ct, aU as O, a6 as we, aQ as dt, bS as vt } from "./revolugo.index.wc.7I5uexuc.min.js";
2
- import { a as te, c as ft, R as mt, p as yt, n as Ie, q as Ve, e as Ae, g as gt, h as de, V as ve } from "./revolugo.index.gIPq0z7C.min.js";
3
- import { u as R, M as St, e as U, m as $, A as ht, n as Pe, D as bt, o as Le, d as pt, b as kt } from "./revolugo.webcomponentwrapper.DFYGhYzz.min.js";
4
- import { u as Ct } from "./revolugo.ssrboot.ByGq44eI.min.js";
5
- import { c as wt } from "./revolugo.position.hqKd4K_h.min.js";
6
- import { c as Oe, u as _e, b as Ee, a as Te, m as Be, d as Me } from "./revolugo.rounded.Dnxang6X.min.js";
7
- import { V as It } from "./revolugo.vdivider.Cp9bHPnI.min.js";
8
- function tt(e) {
9
- try {
10
- if (typeof document < "u") {
11
- window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
12
- sheets: [],
13
- components: []
14
- };
15
- const l = import.meta.url, t = l.slice(0, l.lastIndexOf("/") + 1) + e;
16
- window.REVOLUGO_ELEMENTS_STYLES.sheets.push(t);
17
- for (const n of REVOLUGO_ELEMENTS_STYLES.components)
18
- n(t);
19
- if (e.indexOf("fonts") >= 0) {
20
- const n = document.createElement("link");
21
- n.rel = "stylesheet", linK.href = t, document.head.appendChild(n);
22
- }
23
- }
24
- } catch (l) {
25
- console.error("[revolugo-elements] ", l);
26
- }
27
- }
28
- const ne = Symbol.for("vuetify:list");
29
- function je() {
30
- const e = H(ne, {
31
- hasPrepend: M(!1),
32
- updateHasPrepend: () => null
33
- }), l = {
34
- hasPrepend: M(!1),
35
- updateHasPrepend: (t) => {
36
- t && (l.hasPrepend.value = t);
37
- }
38
- };
39
- return Y(ne, l), e;
40
- }
41
- function xe() {
42
- return H(ne, null);
43
- }
44
- const le = (e) => {
45
- const l = {
46
- activate: (t) => {
47
- let {
48
- id: n,
49
- value: i,
50
- activated: a
51
- } = t;
52
- return n = C(n), e && !i && a.size === 1 && a.has(n) || (i ? a.add(n) : a.delete(n)), a;
53
- },
54
- in: (t, n, i) => {
55
- let a = /* @__PURE__ */ new Set();
56
- if (t != null)
57
- for (const r of ye(t))
58
- a = l.activate({
59
- id: r,
60
- value: !0,
61
- activated: new Set(a),
62
- children: n,
63
- parents: i
64
- });
65
- return a;
66
- },
67
- out: (t) => Array.from(t)
68
- };
69
- return l;
70
- }, Ne = (e) => {
71
- const l = le(e);
72
- return {
73
- activate: (n) => {
74
- let {
75
- activated: i,
76
- id: a,
77
- ...r
78
- } = n;
79
- a = C(a);
80
- const u = i.has(a) ? /* @__PURE__ */ new Set([a]) : /* @__PURE__ */ new Set();
81
- return l.activate({
82
- ...r,
83
- id: a,
84
- activated: u
85
- });
86
- },
87
- in: (n, i, a) => {
88
- let r = /* @__PURE__ */ new Set();
89
- if (n != null) {
90
- const u = ye(n);
91
- u.length && (r = l.in(u.slice(0, 1), i, a));
92
- }
93
- return r;
94
- },
95
- out: (n, i, a) => l.out(n, i, a)
96
- };
97
- }, Vt = (e) => {
98
- const l = le(e);
99
- return {
100
- activate: (n) => {
101
- let {
102
- id: i,
103
- activated: a,
104
- children: r,
105
- ...u
106
- } = n;
107
- return i = C(i), r.has(i) ? a : l.activate({
108
- id: i,
109
- activated: a,
110
- children: r,
111
- ...u
112
- });
113
- },
114
- in: l.in,
115
- out: l.out
116
- };
117
- }, At = (e) => {
118
- const l = Ne(e);
119
- return {
120
- activate: (n) => {
121
- let {
122
- id: i,
123
- activated: a,
124
- children: r,
125
- ...u
126
- } = n;
127
- return i = C(i), r.has(i) ? a : l.activate({
128
- id: i,
129
- activated: a,
130
- children: r,
131
- ...u
132
- });
133
- },
134
- in: l.in,
135
- out: l.out
136
- };
137
- }, Pt = {
138
- open: (e) => {
139
- let {
140
- id: l,
141
- value: t,
142
- opened: n,
143
- parents: i
144
- } = e;
145
- if (t) {
146
- const a = /* @__PURE__ */ new Set();
147
- a.add(l);
148
- let r = i.get(l);
149
- for (; r != null; )
150
- a.add(r), r = i.get(r);
151
- return a;
152
- } else
153
- return n.delete(l), n;
154
- },
155
- select: () => null
156
- }, Fe = {
157
- open: (e) => {
158
- let {
159
- id: l,
160
- value: t,
161
- opened: n,
162
- parents: i
163
- } = e;
164
- if (t) {
165
- let a = i.get(l);
166
- for (n.add(l); a != null && a !== l; )
167
- n.add(a), a = i.get(a);
168
- return n;
169
- } else
170
- n.delete(l);
171
- return n;
172
- },
173
- select: () => null
174
- }, Lt = {
175
- open: Fe.open,
176
- select: (e) => {
177
- let {
178
- id: l,
179
- value: t,
180
- opened: n,
181
- parents: i
182
- } = e;
183
- if (!t) return n;
184
- const a = [];
185
- let r = i.get(l);
186
- for (; r != null; )
187
- a.push(r), r = i.get(r);
188
- return new Set(a);
189
- }
190
- }, ie = (e) => {
191
- const l = {
192
- select: (t) => {
193
- let {
194
- id: n,
195
- value: i,
196
- selected: a
197
- } = t;
198
- if (n = C(n), e && !i) {
199
- const r = Array.from(a.entries()).reduce((u, v) => {
200
- let [c, y] = v;
201
- return y === "on" && u.push(c), u;
202
- }, []);
203
- if (r.length === 1 && r[0] === n) return a;
204
- }
205
- return a.set(n, i ? "on" : "off"), a;
206
- },
207
- in: (t, n, i) => {
208
- const a = /* @__PURE__ */ new Map();
209
- for (const r of t || [])
210
- l.select({
211
- id: r,
212
- value: !0,
213
- selected: a,
214
- children: n,
215
- parents: i
216
- });
217
- return a;
218
- },
219
- out: (t) => {
220
- const n = [];
221
- for (const [i, a] of t.entries())
222
- a === "on" && n.push(i);
223
- return n;
224
- }
225
- };
226
- return l;
227
- }, Ge = (e) => {
228
- const l = ie(e);
229
- return {
230
- select: (n) => {
231
- let {
232
- selected: i,
233
- id: a,
234
- ...r
235
- } = n;
236
- a = C(a);
237
- const u = i.has(a) ? /* @__PURE__ */ new Map([[a, i.get(a)]]) : /* @__PURE__ */ new Map();
238
- return l.select({
239
- ...r,
240
- id: a,
241
- selected: u
242
- });
243
- },
244
- in: (n, i, a) => n != null && n.length ? l.in(n.slice(0, 1), i, a) : /* @__PURE__ */ new Map(),
245
- out: (n, i, a) => l.out(n, i, a)
246
- };
247
- }, Ot = (e) => {
248
- const l = ie(e);
249
- return {
250
- select: (n) => {
251
- let {
252
- id: i,
253
- selected: a,
254
- children: r,
255
- ...u
256
- } = n;
257
- return i = C(i), r.has(i) ? a : l.select({
258
- id: i,
259
- selected: a,
260
- children: r,
261
- ...u
262
- });
263
- },
264
- in: l.in,
265
- out: l.out
266
- };
267
- }, _t = (e) => {
268
- const l = Ge(e);
269
- return {
270
- select: (n) => {
271
- let {
272
- id: i,
273
- selected: a,
274
- children: r,
275
- ...u
276
- } = n;
277
- return i = C(i), r.has(i) ? a : l.select({
278
- id: i,
279
- selected: a,
280
- children: r,
281
- ...u
282
- });
283
- },
284
- in: l.in,
285
- out: l.out
286
- };
287
- }, Et = (e) => {
288
- const l = {
289
- select: (t) => {
290
- let {
291
- id: n,
292
- value: i,
293
- selected: a,
294
- children: r,
295
- parents: u
296
- } = t;
297
- n = C(n);
298
- const v = new Map(a), c = [n];
299
- for (; c.length; ) {
300
- const f = c.shift();
301
- a.set(C(f), i ? "on" : "off"), r.has(f) && c.push(...r.get(f));
302
- }
303
- let y = C(u.get(n));
304
- for (; y; ) {
305
- const f = r.get(y), p = f.every((s) => a.get(C(s)) === "on"), h = f.every((s) => !a.has(C(s)) || a.get(C(s)) === "off");
306
- a.set(y, p ? "on" : h ? "off" : "indeterminate"), y = C(u.get(y));
307
- }
308
- return e && !i && Array.from(a.entries()).reduce((p, h) => {
309
- let [s, o] = h;
310
- return o === "on" && p.push(s), p;
311
- }, []).length === 0 ? v : a;
312
- },
313
- in: (t, n, i) => {
314
- let a = /* @__PURE__ */ new Map();
315
- for (const r of t || [])
316
- a = l.select({
317
- id: r,
318
- value: !0,
319
- selected: a,
320
- children: n,
321
- parents: i
322
- });
323
- return a;
324
- },
325
- out: (t, n) => {
326
- const i = [];
327
- for (const [a, r] of t.entries())
328
- r === "on" && !n.has(a) && i.push(a);
329
- return i;
330
- }
331
- };
332
- return l;
333
- }, D = Symbol.for("vuetify:nested"), De = {
334
- id: M(),
335
- root: {
336
- register: () => null,
337
- unregister: () => null,
338
- parents: L(/* @__PURE__ */ new Map()),
339
- children: L(/* @__PURE__ */ new Map()),
340
- open: () => null,
341
- openOnSelect: () => null,
342
- activate: () => null,
343
- select: () => null,
344
- activatable: L(!1),
345
- selectable: L(!1),
346
- opened: L(/* @__PURE__ */ new Set()),
347
- activated: L(/* @__PURE__ */ new Set()),
348
- selected: L(/* @__PURE__ */ new Map()),
349
- selectedValues: L([]),
350
- getPath: () => []
351
- }
352
- }, Tt = T({
353
- activatable: Boolean,
354
- selectable: Boolean,
355
- activeStrategy: [String, Function, Object],
356
- selectStrategy: [String, Function, Object],
357
- openStrategy: [String, Object],
358
- opened: null,
359
- activated: null,
360
- selected: null,
361
- mandatory: Boolean
362
- }, "nested"), Bt = (e) => {
363
- let l = !1;
364
- const t = L(/* @__PURE__ */ new Map()), n = L(/* @__PURE__ */ new Map()), i = J(e, "opened", e.opened, (s) => new Set(s), (s) => [...s.values()]), a = g(() => {
365
- if (typeof e.activeStrategy == "object") return e.activeStrategy;
366
- if (typeof e.activeStrategy == "function") return e.activeStrategy(e.mandatory);
367
- switch (e.activeStrategy) {
368
- case "leaf":
369
- return Vt(e.mandatory);
370
- case "single-leaf":
371
- return At(e.mandatory);
372
- case "independent":
373
- return le(e.mandatory);
374
- case "single-independent":
375
- default:
376
- return Ne(e.mandatory);
377
- }
378
- }), r = g(() => {
379
- if (typeof e.selectStrategy == "object") return e.selectStrategy;
380
- if (typeof e.selectStrategy == "function") return e.selectStrategy(e.mandatory);
381
- switch (e.selectStrategy) {
382
- case "single-leaf":
383
- return _t(e.mandatory);
384
- case "leaf":
385
- return Ot(e.mandatory);
386
- case "independent":
387
- return ie(e.mandatory);
388
- case "single-independent":
389
- return Ge(e.mandatory);
390
- case "classic":
391
- default:
392
- return Et(e.mandatory);
393
- }
394
- }), u = g(() => {
395
- if (typeof e.openStrategy == "object") return e.openStrategy;
396
- switch (e.openStrategy) {
397
- case "list":
398
- return Lt;
399
- case "single":
400
- return Pt;
401
- case "multiple":
402
- default:
403
- return Fe;
404
- }
405
- }), v = J(e, "activated", e.activated, (s) => a.value.in(s, t.value, n.value), (s) => a.value.out(s, t.value, n.value)), c = J(e, "selected", e.selected, (s) => r.value.in(s, t.value, n.value), (s) => r.value.out(s, t.value, n.value));
406
- ge(() => {
407
- l = !0;
408
- });
409
- function y(s) {
410
- const o = [];
411
- let d = s;
412
- for (; d != null; )
413
- o.unshift(d), d = n.value.get(d);
414
- return o;
415
- }
416
- const f = nt("nested"), p = /* @__PURE__ */ new Set(), h = {
417
- id: M(),
418
- root: {
419
- opened: i,
420
- activatable: w(e, "activatable"),
421
- selectable: w(e, "selectable"),
422
- activated: v,
423
- selected: c,
424
- selectedValues: g(() => {
425
- const s = [];
426
- for (const [o, d] of c.value.entries())
427
- d === "on" && s.push(o);
428
- return s;
429
- }),
430
- register: (s, o, d) => {
431
- if (p.has(s)) {
432
- y(s).map(String).join(" -> "), y(o).concat(s).map(String).join(" -> ");
433
- return;
434
- } else
435
- p.add(s);
436
- o && s !== o && n.value.set(s, o), d && t.value.set(s, []), o != null && t.value.set(o, [...t.value.get(o) || [], s]);
437
- },
438
- unregister: (s) => {
439
- if (l) return;
440
- p.delete(s), t.value.delete(s);
441
- const o = n.value.get(s);
442
- if (o) {
443
- const d = t.value.get(o) ?? [];
444
- t.value.set(o, d.filter((S) => S !== s));
445
- }
446
- n.value.delete(s);
447
- },
448
- open: (s, o, d) => {
449
- f.emit("click:open", {
450
- id: s,
451
- value: o,
452
- path: y(s),
453
- event: d
454
- });
455
- const S = u.value.open({
456
- id: s,
457
- value: o,
458
- opened: new Set(i.value),
459
- children: t.value,
460
- parents: n.value,
461
- event: d
462
- });
463
- S && (i.value = S);
464
- },
465
- openOnSelect: (s, o, d) => {
466
- const S = u.value.select({
467
- id: s,
468
- value: o,
469
- selected: new Map(c.value),
470
- opened: new Set(i.value),
471
- children: t.value,
472
- parents: n.value,
473
- event: d
474
- });
475
- S && (i.value = S);
476
- },
477
- select: (s, o, d) => {
478
- f.emit("click:select", {
479
- id: s,
480
- value: o,
481
- path: y(s),
482
- event: d
483
- });
484
- const S = r.value.select({
485
- id: s,
486
- value: o,
487
- selected: new Map(c.value),
488
- children: t.value,
489
- parents: n.value,
490
- event: d
491
- });
492
- S && (c.value = S), h.root.openOnSelect(s, o, d);
493
- },
494
- activate: (s, o, d) => {
495
- if (!e.activatable)
496
- return h.root.select(s, !0, d);
497
- f.emit("click:activate", {
498
- id: s,
499
- value: o,
500
- path: y(s),
501
- event: d
502
- });
503
- const S = a.value.activate({
504
- id: s,
505
- value: o,
506
- activated: new Set(v.value),
507
- children: t.value,
508
- parents: n.value,
509
- event: d
510
- });
511
- if (S.size !== v.value.size)
512
- v.value = S;
513
- else {
514
- for (const k of S)
515
- if (!v.value.has(k)) {
516
- v.value = S;
517
- return;
518
- }
519
- for (const k of v.value)
520
- if (!S.has(k)) {
521
- v.value = S;
522
- return;
523
- }
524
- }
525
- },
526
- children: t,
527
- parents: n,
528
- getPath: y
529
- }
530
- };
531
- return Y(D, h), h.root;
532
- }, Re = (e, l) => {
533
- const t = H(D, De), n = Symbol(at()), i = g(() => e.value !== void 0 ? e.value : n), a = {
534
- ...t,
535
- id: i,
536
- open: (r, u) => t.root.open(i.value, r, u),
537
- openOnSelect: (r, u) => t.root.openOnSelect(i.value, r, u),
538
- isOpen: g(() => t.root.opened.value.has(i.value)),
539
- parent: g(() => t.root.parents.value.get(i.value)),
540
- activate: (r, u) => t.root.activate(i.value, r, u),
541
- isActivated: g(() => t.root.activated.value.has(C(i.value))),
542
- select: (r, u) => t.root.select(i.value, r, u),
543
- isSelected: g(() => t.root.selected.value.get(C(i.value)) === "on"),
544
- isIndeterminate: g(() => t.root.selected.value.get(C(i.value)) === "indeterminate"),
545
- isLeaf: g(() => !t.root.children.value.get(i.value)),
546
- isGroupActivator: t.isGroupActivator
547
- };
548
- return Se(() => {
549
- !t.isGroupActivator && t.root.register(i.value, t.id.value, l);
550
- }), ge(() => {
551
- !t.isGroupActivator && t.root.unregister(i.value);
552
- }), l && Y(D, a), a;
553
- }, Mt = () => {
554
- const e = H(D, De);
555
- Y(D, {
556
- ...e,
557
- isGroupActivator: !0
558
- });
559
- }, jt = lt({
560
- name: "VListGroupActivator",
561
- setup(e, l) {
562
- let {
563
- slots: t
564
- } = l;
565
- return Mt(), () => {
566
- var n;
567
- return (n = t.default) == null ? void 0 : n.call(t);
568
- };
569
- }
570
- }), xt = T({
571
- /* @deprecated */
572
- activeColor: String,
573
- baseColor: String,
574
- color: String,
575
- collapseIcon: {
576
- type: E,
577
- default: "$collapse"
578
- },
579
- expandIcon: {
580
- type: E,
581
- default: "$expand"
582
- },
583
- prependIcon: E,
584
- appendIcon: E,
585
- fluid: Boolean,
586
- subgroup: Boolean,
587
- title: String,
588
- value: null,
589
- ...$(),
590
- ...U()
591
- }, "VListGroup"), fe = N()({
592
- name: "VListGroup",
593
- props: xt(),
594
- setup(e, l) {
595
- let {
596
- slots: t
597
- } = l;
598
- const {
599
- isOpen: n,
600
- open: i,
601
- id: a
602
- } = Re(w(e, "value"), !0), r = g(() => `v-list-group--id-${String(a.value)}`), u = xe(), {
603
- isBooted: v
604
- } = Ct();
605
- function c(h) {
606
- h.stopPropagation(), i(!n.value, h);
607
- }
608
- const y = g(() => ({
609
- onClick: c,
610
- class: "v-list-group__header",
611
- id: r.value
612
- })), f = g(() => n.value ? e.collapseIcon : e.expandIcon), p = g(() => ({
613
- VListItem: {
614
- active: n.value,
615
- activeColor: e.activeColor,
616
- baseColor: e.baseColor,
617
- color: e.color,
618
- prependIcon: e.prependIcon || e.subgroup && f.value,
619
- appendIcon: e.appendIcon || !e.subgroup && f.value,
620
- title: e.title,
621
- value: e.value
622
- }
623
- }));
624
- return R(() => m(e.tag, {
625
- class: ["v-list-group", {
626
- "v-list-group--prepend": u == null ? void 0 : u.hasPrepend.value,
627
- "v-list-group--fluid": e.fluid,
628
- "v-list-group--subgroup": e.subgroup,
629
- "v-list-group--open": n.value
630
- }, e.class],
631
- style: e.style
632
- }, {
633
- default: () => [t.activator && m(te, {
634
- defaults: p.value
635
- }, {
636
- default: () => [m(jt, null, {
637
- default: () => [t.activator({
638
- props: y.value,
639
- isOpen: n.value
640
- })]
641
- })]
642
- }), m(St, {
643
- transition: {
644
- component: ft
645
- },
646
- disabled: !v.value
647
- }, {
648
- default: () => {
649
- var h;
650
- return [he(m("div", {
651
- class: "v-list-group__items",
652
- role: "group",
653
- "aria-labelledby": r.value
654
- }, [(h = t.default) == null ? void 0 : h.call(t)]), [[it, n.value]])];
655
- }
656
- })]
657
- })), {
658
- isOpen: n
659
- };
660
- }
661
- }), Nt = T({
662
- opacity: [Number, String],
663
- ...$(),
664
- ...U()
665
- }, "VListItemSubtitle"), Ft = N()({
666
- name: "VListItemSubtitle",
667
- props: Nt(),
668
- setup(e, l) {
669
- let {
670
- slots: t
671
- } = l;
672
- return R(() => m(e.tag, {
673
- class: ["v-list-item-subtitle", e.class],
674
- style: [{
675
- "--v-list-item-subtitle-opacity": e.opacity
676
- }, e.style]
677
- }, t)), {};
678
- }
679
- }), Gt = wt("v-list-item-title"), Dt = T({
680
- active: {
681
- type: Boolean,
682
- default: void 0
683
- },
684
- activeClass: String,
685
- /* @deprecated */
686
- activeColor: String,
687
- appendAvatar: String,
688
- appendIcon: E,
689
- baseColor: String,
690
- disabled: Boolean,
691
- lines: [Boolean, String],
692
- link: {
693
- type: Boolean,
694
- default: void 0
695
- },
696
- nav: Boolean,
697
- prependAvatar: String,
698
- prependIcon: E,
699
- ripple: {
700
- type: [Boolean, Object],
701
- default: !0
702
- },
703
- slim: Boolean,
704
- subtitle: {
705
- type: [String, Number, Boolean],
706
- default: void 0
707
- },
708
- title: {
709
- type: [String, Number, Boolean],
710
- default: void 0
711
- },
712
- value: null,
713
- onClick: G(),
714
- onClickOnce: G(),
715
- ...Me(),
716
- ...$(),
717
- ...Ae(),
718
- ...Le(),
719
- ...Be(),
720
- ...Te(),
721
- ...bt(),
722
- ...U(),
723
- ...pe(),
724
- ...Ve({
725
- variant: "text"
726
- })
727
- }, "VListItem"), me = N()({
728
- name: "VListItem",
729
- directives: {
730
- Ripple: mt
731
- },
732
- props: Dt(),
733
- emits: {
734
- click: (e) => !0
735
- },
736
- setup(e, l) {
737
- let {
738
- attrs: t,
739
- slots: n,
740
- emit: i
741
- } = l;
742
- const a = ht(e, t), r = g(() => e.value === void 0 ? a.href.value : e.value), {
743
- activate: u,
744
- isActivated: v,
745
- select: c,
746
- isOpen: y,
747
- isSelected: f,
748
- isIndeterminate: p,
749
- isGroupActivator: h,
750
- root: s,
751
- parent: o,
752
- openOnSelect: d,
753
- id: S
754
- } = Re(r, !1), k = xe(), V = g(() => {
755
- var b;
756
- return e.active !== !1 && (e.active || ((b = a.isActive) == null ? void 0 : b.value) || (s.activatable.value ? v.value : f.value));
757
- }), F = g(() => e.link !== !1 && a.isLink.value), B = g(() => !!k && (s.selectable.value || s.activatable.value || e.value != null)), A = g(() => !e.disabled && e.link !== !1 && (e.link || a.isClickable.value || B.value)), q = g(() => e.rounded || e.nav), z = g(() => e.color ?? e.activeColor), W = g(() => ({
758
- color: V.value ? z.value ?? e.baseColor : e.baseColor,
759
- variant: e.variant
760
- }));
761
- st(() => {
762
- var b;
763
- return (b = a.isActive) == null ? void 0 : b.value;
764
- }, (b) => {
765
- b && K();
766
- }), Se(() => {
767
- var b;
768
- (b = a.isActive) != null && b.value && K();
769
- });
770
- function K() {
771
- o.value != null && s.open(o.value, !0), d(!0);
772
- }
773
- const {
774
- themeClasses: X
775
- } = be(e), {
776
- borderClasses: _
777
- } = Oe(e), {
778
- colorClasses: I,
779
- colorStyles: j,
780
- variantClasses: He
781
- } = yt(W), {
782
- densityClasses: Ye
783
- } = Ie(e), {
784
- dimensionStyles: qe
785
- } = Pe(e), {
786
- elevationClasses: ze
787
- } = _e(e), {
788
- roundedClasses: We
789
- } = Ee(q), Xe = g(() => e.lines ? `v-list-item--${e.lines}-line` : void 0), Q = g(() => ({
790
- isActive: V.value,
791
- select: c,
792
- isOpen: y.value,
793
- isSelected: f.value,
794
- isIndeterminate: p.value
795
- }));
796
- function Qe(b) {
797
- var x;
798
- i("click", b), A.value && ((x = a.navigate) == null || x.call(a, b), !h && (s.activatable.value ? u(!v.value, b) : (s.selectable.value || e.value != null) && c(!f.value, b)));
799
- }
800
- function Ze(b) {
801
- const x = b.target;
802
- ["INPUT", "TEXTAREA"].includes(x.tagName) || (b.key === "Enter" || b.key === " ") && (b.preventDefault(), b.target.dispatchEvent(new MouseEvent("click", b)));
803
- }
804
- return R(() => {
805
- const b = F.value ? "a" : e.tag, x = n.title || e.title != null, Je = n.subtitle || e.subtitle != null, se = !!(e.appendAvatar || e.appendIcon), et = !!(se || n.append), re = !!(e.prependAvatar || e.prependIcon), Z = !!(re || n.prepend);
806
- return k == null || k.updateHasPrepend(Z), e.activeColor && rt("active-color", ["color", "base-color"]), he(m(b, ee({
807
- class: ["v-list-item", {
808
- "v-list-item--active": V.value,
809
- "v-list-item--disabled": e.disabled,
810
- "v-list-item--link": A.value,
811
- "v-list-item--nav": e.nav,
812
- "v-list-item--prepend": !Z && (k == null ? void 0 : k.hasPrepend.value),
813
- "v-list-item--slim": e.slim,
814
- [`${e.activeClass}`]: e.activeClass && V.value
815
- }, X.value, _.value, I.value, Ye.value, ze.value, Xe.value, We.value, He.value, e.class],
816
- style: [j.value, qe.value, e.style],
817
- tabindex: A.value ? k ? -2 : 0 : void 0,
818
- "aria-selected": B.value ? s.activatable.value ? v.value : s.selectable.value ? f.value : V.value : void 0,
819
- onClick: Qe,
820
- onKeydown: A.value && !F.value && Ze
821
- }, a.linkProps), {
822
- default: () => {
823
- var ue;
824
- return [gt(A.value || V.value, "v-list-item"), Z && m("div", {
825
- key: "prepend",
826
- class: "v-list-item__prepend"
827
- }, [n.prepend ? m(te, {
828
- key: "prepend-defaults",
829
- disabled: !re,
830
- defaults: {
831
- VAvatar: {
832
- density: e.density,
833
- image: e.prependAvatar
834
- },
835
- VIcon: {
836
- density: e.density,
837
- icon: e.prependIcon
838
- },
839
- VListItemAction: {
840
- start: !0
841
- }
842
- }
843
- }, {
844
- default: () => {
845
- var P;
846
- return [(P = n.prepend) == null ? void 0 : P.call(n, Q.value)];
847
- }
848
- }) : m(oe, null, [e.prependAvatar && m(de, {
849
- key: "prepend-avatar",
850
- density: e.density,
851
- image: e.prependAvatar
852
- }, null), e.prependIcon && m(ve, {
853
- key: "prepend-icon",
854
- density: e.density,
855
- icon: e.prependIcon
856
- }, null)]), m("div", {
857
- class: "v-list-item__spacer"
858
- }, null)]), m("div", {
859
- class: "v-list-item__content",
860
- "data-no-activator": ""
861
- }, [x && m(Gt, {
862
- key: "title"
863
- }, {
864
- default: () => {
865
- var P;
866
- return [((P = n.title) == null ? void 0 : P.call(n, {
867
- title: e.title
868
- })) ?? ce(e.title)];
869
- }
870
- }), Je && m(Ft, {
871
- key: "subtitle"
872
- }, {
873
- default: () => {
874
- var P;
875
- return [((P = n.subtitle) == null ? void 0 : P.call(n, {
876
- subtitle: e.subtitle
877
- })) ?? ce(e.subtitle)];
878
- }
879
- }), (ue = n.default) == null ? void 0 : ue.call(n, Q.value)]), et && m("div", {
880
- key: "append",
881
- class: "v-list-item__append"
882
- }, [n.append ? m(te, {
883
- key: "append-defaults",
884
- disabled: !se,
885
- defaults: {
886
- VAvatar: {
887
- density: e.density,
888
- image: e.appendAvatar
889
- },
890
- VIcon: {
891
- density: e.density,
892
- icon: e.appendIcon
893
- },
894
- VListItemAction: {
895
- end: !0
896
- }
897
- }
898
- }, {
899
- default: () => {
900
- var P;
901
- return [(P = n.append) == null ? void 0 : P.call(n, Q.value)];
902
- }
903
- }) : m(oe, null, [e.appendIcon && m(ve, {
904
- key: "append-icon",
905
- density: e.density,
906
- icon: e.appendIcon
907
- }, null), e.appendAvatar && m(de, {
908
- key: "append-avatar",
909
- density: e.density,
910
- image: e.appendAvatar
911
- }, null)]), m("div", {
912
- class: "v-list-item__spacer"
913
- }, null)])];
914
- }
915
- }), [[ut("ripple"), A.value && e.ripple]]);
916
- }), {
917
- activate: u,
918
- isActivated: v,
919
- isGroupActivator: h,
920
- isSelected: f,
921
- list: k,
922
- select: c,
923
- root: s,
924
- id: S,
925
- link: a
926
- };
927
- }
928
- }), Rt = T({
929
- color: String,
930
- inset: Boolean,
931
- sticky: Boolean,
932
- title: String,
933
- ...$(),
934
- ...U()
935
- }, "VListSubheader"), Ut = N()({
936
- name: "VListSubheader",
937
- props: Rt(),
938
- setup(e, l) {
939
- let {
940
- slots: t
941
- } = l;
942
- const {
943
- textColorClasses: n,
944
- textColorStyles: i
945
- } = pt(w(e, "color"));
946
- return R(() => {
947
- const a = !!(t.default || e.title);
948
- return m(e.tag, {
949
- class: ["v-list-subheader", {
950
- "v-list-subheader--inset": e.inset,
951
- "v-list-subheader--sticky": e.sticky
952
- }, n.value, e.class],
953
- style: [{
954
- textColorStyles: i
955
- }, e.style]
956
- }, {
957
- default: () => {
958
- var r;
959
- return [a && m("div", {
960
- class: "v-list-subheader__text"
961
- }, [((r = t.default) == null ? void 0 : r.call(t)) ?? e.title])];
962
- }
963
- });
964
- }), {};
965
- }
966
- }), $t = T({
967
- items: Array,
968
- returnObject: Boolean
969
- }, "VListChildren"), Ue = N()({
970
- name: "VListChildren",
971
- props: $t(),
972
- setup(e, l) {
973
- let {
974
- slots: t
975
- } = l;
976
- return je(), () => {
977
- var n, i;
978
- return ((n = t.default) == null ? void 0 : n.call(t)) ?? ((i = e.items) == null ? void 0 : i.map((a) => {
979
- var p, h;
980
- let {
981
- children: r,
982
- props: u,
983
- type: v,
984
- raw: c
985
- } = a;
986
- if (v === "divider")
987
- return ((p = t.divider) == null ? void 0 : p.call(t, {
988
- props: u
989
- })) ?? m(It, u, null);
990
- if (v === "subheader")
991
- return ((h = t.subheader) == null ? void 0 : h.call(t, {
992
- props: u
993
- })) ?? m(Ut, u, null);
994
- const y = {
995
- subtitle: t.subtitle ? (s) => {
996
- var o;
997
- return (o = t.subtitle) == null ? void 0 : o.call(t, {
998
- ...s,
999
- item: c
1000
- });
1001
- } : void 0,
1002
- prepend: t.prepend ? (s) => {
1003
- var o;
1004
- return (o = t.prepend) == null ? void 0 : o.call(t, {
1005
- ...s,
1006
- item: c
1007
- });
1008
- } : void 0,
1009
- append: t.append ? (s) => {
1010
- var o;
1011
- return (o = t.append) == null ? void 0 : o.call(t, {
1012
- ...s,
1013
- item: c
1014
- });
1015
- } : void 0,
1016
- title: t.title ? (s) => {
1017
- var o;
1018
- return (o = t.title) == null ? void 0 : o.call(t, {
1019
- ...s,
1020
- item: c
1021
- });
1022
- } : void 0
1023
- }, f = fe.filterProps(u);
1024
- return r ? m(fe, ee({
1025
- value: u == null ? void 0 : u.value
1026
- }, f), {
1027
- activator: (s) => {
1028
- let {
1029
- props: o
1030
- } = s;
1031
- const d = {
1032
- ...u,
1033
- ...o,
1034
- value: e.returnObject ? c : u.value
1035
- };
1036
- return t.header ? t.header({
1037
- props: d
1038
- }) : m(me, d, y);
1039
- },
1040
- default: () => m(Ue, {
1041
- items: r,
1042
- returnObject: e.returnObject
1043
- }, t)
1044
- }) : t.item ? t.item({
1045
- props: u
1046
- }) : m(me, ee(u, {
1047
- value: e.returnObject ? c : u.value
1048
- }), y);
1049
- }));
1050
- };
1051
- }
1052
- }), Kt = T({
1053
- items: {
1054
- type: Array,
1055
- default: () => []
1056
- },
1057
- itemTitle: {
1058
- type: [String, Array, Function],
1059
- default: "title"
1060
- },
1061
- itemValue: {
1062
- type: [String, Array, Function],
1063
- default: "value"
1064
- },
1065
- itemChildren: {
1066
- type: [Boolean, String, Array, Function],
1067
- default: "children"
1068
- },
1069
- itemProps: {
1070
- type: [Boolean, String, Array, Function],
1071
- default: "props"
1072
- },
1073
- returnObject: Boolean,
1074
- valueComparator: Function
1075
- }, "list-items");
1076
- function ae(e, l) {
1077
- const t = O(l, e.itemTitle, l), n = O(l, e.itemValue, t), i = O(l, e.itemChildren), a = e.itemProps === !0 ? typeof l == "object" && l != null && !Array.isArray(l) ? "children" in l ? we(l, ["children"]) : l : void 0 : O(l, e.itemProps), r = {
1078
- title: t,
1079
- value: n,
1080
- ...a
1081
- };
1082
- return {
1083
- title: String(r.title ?? ""),
1084
- value: r.value,
1085
- props: r,
1086
- children: Array.isArray(i) ? $e(e, i) : void 0,
1087
- raw: l
1088
- };
1089
- }
1090
- function $e(e, l) {
1091
- const t = Ce(e, ["itemTitle", "itemValue", "itemChildren", "itemProps", "returnObject", "valueComparator"]), n = [];
1092
- for (const i of l)
1093
- n.push(ae(t, i));
1094
- return n;
1095
- }
1096
- function tn(e) {
1097
- const l = g(() => $e(e, e.items)), t = g(() => l.value.some((u) => u.value === null)), n = M(/* @__PURE__ */ new Map()), i = M([]);
1098
- ot(() => {
1099
- const u = l.value, v = /* @__PURE__ */ new Map(), c = [];
1100
- for (let y = 0; y < u.length; y++) {
1101
- const f = u[y];
1102
- if (ke(f.value) || f.value === null) {
1103
- let p = v.get(f.value);
1104
- p || (p = [], v.set(f.value, p)), p.push(f);
1105
- } else
1106
- c.push(f);
1107
- }
1108
- n.value = v, i.value = c;
1109
- });
1110
- function a(u) {
1111
- const v = n.value, c = l.value, y = i.value, f = t.value, p = e.returnObject, h = !!e.valueComparator, s = e.valueComparator || ct, o = Ce(e, ["itemTitle", "itemValue", "itemChildren", "itemProps", "returnObject", "valueComparator"]), d = [];
1112
- e: for (const S of u) {
1113
- if (!f && S === null) continue;
1114
- if (p && typeof S == "string") {
1115
- d.push(ae(o, S));
1116
- continue;
1117
- }
1118
- const k = v.get(S);
1119
- if (h || !k) {
1120
- for (const V of h ? c : y)
1121
- if (s(S, V.value)) {
1122
- d.push(V);
1123
- continue e;
1124
- }
1125
- d.push(ae(o, S));
1126
- continue;
1127
- }
1128
- d.push(...k);
1129
- }
1130
- return d;
1131
- }
1132
- function r(u) {
1133
- return e.returnObject ? u.map((v) => {
1134
- let {
1135
- raw: c
1136
- } = v;
1137
- return c;
1138
- }) : u.map((v) => {
1139
- let {
1140
- value: c
1141
- } = v;
1142
- return c;
1143
- });
1144
- }
1145
- return {
1146
- items: l,
1147
- transformIn: a,
1148
- transformOut: r
1149
- };
1150
- }
1151
- function Ht(e, l) {
1152
- const t = O(l, e.itemType, "item"), n = ke(l) ? l : O(l, e.itemTitle), i = O(l, e.itemValue, void 0), a = O(l, e.itemChildren), r = e.itemProps === !0 ? we(l, ["children"]) : O(l, e.itemProps), u = {
1153
- title: n,
1154
- value: i,
1155
- ...r
1156
- };
1157
- return {
1158
- type: t,
1159
- title: u.title,
1160
- value: u.value,
1161
- props: u,
1162
- children: t === "item" && a ? Ke(e, a) : void 0,
1163
- raw: l
1164
- };
1165
- }
1166
- function Ke(e, l) {
1167
- const t = [];
1168
- for (const n of l)
1169
- t.push(Ht(e, n));
1170
- return t;
1171
- }
1172
- function Yt(e) {
1173
- return {
1174
- items: g(() => Ke(e, e.items))
1175
- };
1176
- }
1177
- const qt = T({
1178
- baseColor: String,
1179
- /* @deprecated */
1180
- activeColor: String,
1181
- activeClass: String,
1182
- bgColor: String,
1183
- disabled: Boolean,
1184
- expandIcon: E,
1185
- collapseIcon: E,
1186
- lines: {
1187
- type: [Boolean, String],
1188
- default: "one"
1189
- },
1190
- slim: Boolean,
1191
- nav: Boolean,
1192
- "onClick:open": G(),
1193
- "onClick:select": G(),
1194
- "onUpdate:opened": G(),
1195
- ...Tt({
1196
- selectStrategy: "single-leaf",
1197
- openStrategy: "list"
1198
- }),
1199
- ...Me(),
1200
- ...$(),
1201
- ...Ae(),
1202
- ...Le(),
1203
- ...Be(),
1204
- itemType: {
1205
- type: String,
1206
- default: "type"
1207
- },
1208
- ...Kt(),
1209
- ...Te(),
1210
- ...U(),
1211
- ...pe(),
1212
- ...Ve({
1213
- variant: "text"
1214
- })
1215
- }, "VList"), nn = N()({
1216
- name: "VList",
1217
- props: qt(),
1218
- emits: {
1219
- "update:selected": (e) => !0,
1220
- "update:activated": (e) => !0,
1221
- "update:opened": (e) => !0,
1222
- "click:open": (e) => !0,
1223
- "click:activate": (e) => !0,
1224
- "click:select": (e) => !0
1225
- },
1226
- setup(e, l) {
1227
- let {
1228
- slots: t
1229
- } = l;
1230
- const {
1231
- items: n
1232
- } = Yt(e), {
1233
- themeClasses: i
1234
- } = be(e), {
1235
- backgroundColorClasses: a,
1236
- backgroundColorStyles: r
1237
- } = kt(w(e, "bgColor")), {
1238
- borderClasses: u
1239
- } = Oe(e), {
1240
- densityClasses: v
1241
- } = Ie(e), {
1242
- dimensionStyles: c
1243
- } = Pe(e), {
1244
- elevationClasses: y
1245
- } = _e(e), {
1246
- roundedClasses: f
1247
- } = Ee(e), {
1248
- children: p,
1249
- open: h,
1250
- parents: s,
1251
- select: o,
1252
- getPath: d
1253
- } = Bt(e), S = g(() => e.lines ? `v-list--${e.lines}-line` : void 0), k = w(e, "activeColor"), V = w(e, "baseColor"), F = w(e, "color");
1254
- je(), dt({
1255
- VListGroup: {
1256
- activeColor: k,
1257
- baseColor: V,
1258
- color: F,
1259
- expandIcon: w(e, "expandIcon"),
1260
- collapseIcon: w(e, "collapseIcon")
1261
- },
1262
- VListItem: {
1263
- activeClass: w(e, "activeClass"),
1264
- activeColor: k,
1265
- baseColor: V,
1266
- color: F,
1267
- density: w(e, "density"),
1268
- disabled: w(e, "disabled"),
1269
- lines: w(e, "lines"),
1270
- nav: w(e, "nav"),
1271
- slim: w(e, "slim"),
1272
- variant: w(e, "variant")
1273
- }
1274
- });
1275
- const B = M(!1), A = L();
1276
- function q(I) {
1277
- B.value = !0;
1278
- }
1279
- function z(I) {
1280
- B.value = !1;
1281
- }
1282
- function W(I) {
1283
- var j;
1284
- !B.value && !(I.relatedTarget && ((j = A.value) != null && j.contains(I.relatedTarget))) && _();
1285
- }
1286
- function K(I) {
1287
- const j = I.target;
1288
- if (!(!A.value || ["INPUT", "TEXTAREA"].includes(j.tagName))) {
1289
- if (I.key === "ArrowDown")
1290
- _("next");
1291
- else if (I.key === "ArrowUp")
1292
- _("prev");
1293
- else if (I.key === "Home")
1294
- _("first");
1295
- else if (I.key === "End")
1296
- _("last");
1297
- else
1298
- return;
1299
- I.preventDefault();
1300
- }
1301
- }
1302
- function X(I) {
1303
- B.value = !0;
1304
- }
1305
- function _(I) {
1306
- if (A.value)
1307
- return vt(A.value, I);
1308
- }
1309
- return R(() => m(e.tag, {
1310
- ref: A,
1311
- class: ["v-list", {
1312
- "v-list--disabled": e.disabled,
1313
- "v-list--nav": e.nav,
1314
- "v-list--slim": e.slim
1315
- }, i.value, a.value, u.value, v.value, y.value, S.value, f.value, e.class],
1316
- style: [r.value, c.value, e.style],
1317
- tabindex: e.disabled ? -1 : 0,
1318
- role: "listbox",
1319
- "aria-activedescendant": void 0,
1320
- onFocusin: q,
1321
- onFocusout: z,
1322
- onFocus: W,
1323
- onKeydown: K,
1324
- onMousedown: X
1325
- }, {
1326
- default: () => [m(Ue, {
1327
- items: n.value,
1328
- returnObject: e.returnObject
1329
- }, t)]
1330
- })), {
1331
- open: h,
1332
- select: o,
1333
- focus: _,
1334
- children: p,
1335
- parents: s,
1336
- getPath: d
1337
- };
1338
- }
1339
- });
1340
- tt("css/revolugo.vlist.BkGS0yqt.css");
1341
- export {
1342
- me as V,
1343
- Gt as a,
1344
- nn as b,
1345
- Kt as m,
1346
- tn as u
1347
- };
1348
- //# sourceMappingURL=revolugo.vlist.hRQlcp5M.min.js.map