@revolugo/elements 6.9.7 → 6.10.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 (193) hide show
  1. package/dist/css/fonts.css +1 -1
  2. package/dist/css/revolugo.cancellationpoliciesbadge.BHm9G8WA.css +1 -0
  3. package/dist/css/revolugo.creditcardstripeform.C4-vMajR.css +1 -0
  4. package/dist/css/revolugo.index.BNlxBMG6.css +5 -0
  5. package/dist/css/revolugo.preferencesmenu.DQaHGrad.css +1 -0
  6. package/dist/css/{revolugo.webcomponentwrapper.cFJPP6Rp.css → revolugo.webcomponentwrapper.8v7iva-a.css} +1 -1
  7. package/dist/index.es.min.js +23 -12530
  8. package/dist/index.es.min.js.map +1 -1
  9. package/dist/index.min.js +1 -19
  10. package/dist/index.min.js.map +1 -1
  11. package/dist/revolugo.banktransferdetails.x0v9ndfv.min.js +47 -0
  12. package/dist/revolugo.bookingdetailssidebar.B4EIlhFU.min.js +43 -0
  13. package/dist/revolugo.bookingmanager.YVuxlZbU.min.js +26 -0
  14. package/dist/revolugo.cancellationpoliciesbadge.DfpyKAT7.min.js +26 -0
  15. package/dist/revolugo.cancellationpoliciesbadge.props.Catwbml_.min.js +29243 -0
  16. package/dist/revolugo.cancellationpolicieslist.CqGBKCZe.min.js +26 -0
  17. package/dist/revolugo.creditcardstripeform.BWeGQuy4.min.js +50 -0
  18. package/dist/{revolugo.creditcardform.C1Y8cuiJ.min.js → revolugo.creditcardstripeform.DNfpUrZN.min.js} +932 -915
  19. package/dist/revolugo.currencypickerbtn.CPU1WxXE.min.js +26 -0
  20. package/dist/{revolugo.dialog-attach.blanCM_U.min.js → revolugo.dialog-attach.PVrub23o.min.js} +2 -2
  21. package/dist/revolugo.fastbookingflow.I7UL8jNX.min.js +36 -0
  22. package/dist/revolugo.fullbookingflow.CpNJrRcu.min.js +26 -0
  23. package/dist/revolugo.hoteldescriptionview.DWQa933m.min.js +26 -0
  24. package/dist/revolugo.hotelofferlist.DJzWMTLy.min.js +26 -0
  25. package/dist/revolugo.hoteloffersearchmenu.D7YNVTvi.min.js +115 -0
  26. package/dist/revolugo.hoteloffersmap.BYvYv0p6.min.js +26 -0
  27. package/dist/revolugo.hoteloffersview.DT5QVxLs.min.js +21 -0
  28. package/dist/revolugo.hotelroomofferlist.DA_3LSPI.min.js +26 -0
  29. package/dist/revolugo.hotelroomoffersbookingflow.Dkch3aYF.min.js +26 -0
  30. package/dist/revolugo.hotelroomoffersearchmenu.D4wOddbw.min.js +26 -0
  31. package/dist/revolugo.hotelroomoffersview.9FmcyDbV.min.js +26 -0
  32. package/dist/revolugo.index.OiMu9dAJ.min.js +106 -0
  33. package/dist/revolugo.index.wc.C2aj6lKv.min.js +26699 -0
  34. package/dist/revolugo.langpickerbtn.6Brb63yO.min.js +31 -0
  35. package/dist/{revolugo.leaflet-src.esm.DBQWLG1M.min.js → revolugo.leaflet-src.esm.BnEQV3J-.min.js} +16 -16
  36. package/dist/revolugo.min.js +1 -1
  37. package/dist/revolugo.prebookform.DVYHP3Yz.min.js +26 -0
  38. package/dist/revolugo.preferencesmenu.BloRxITX.min.js +24 -0
  39. package/dist/revolugo.preferencesmenu.r1vnr_RO.min.js +935 -0
  40. package/dist/revolugo.roominglisteditor.C-AGIJub.min.js +26 -0
  41. package/dist/revolugo.storybooktoolbar.B5oXaRze.min.js +831 -0
  42. package/dist/revolugo.termsandconditions.CNlXW52E.min.js +31 -0
  43. package/dist/revolugo.vtoolbar.BWqbzW1H.min.js +187 -0
  44. package/dist/revolugo.webcomponentwrapper.BMoMCE08.min.js +30962 -0
  45. package/package.json +6 -6
  46. package/dist/css/revolugo.bdaterangepicker.OLspTh_0.css +0 -1
  47. package/dist/css/revolugo.bhoteloffersfilterbar.BebBKpCh.css +0 -1
  48. package/dist/css/revolugo.bhotelroomsdetails.c1M8WEQ1.css +0 -1
  49. package/dist/css/revolugo.bimagecarousel.B2SxWMbZ.css +0 -1
  50. package/dist/css/revolugo.bookingdetailssidebar.Cp4sLBjD.css +0 -1
  51. package/dist/css/revolugo.bstarrating.CPHKEfup.css +0 -1
  52. package/dist/css/revolugo.btag.T7X_iIkW.css +0 -1
  53. package/dist/css/revolugo.cancellationpoliciesbadge.BLInUr3-.css +0 -1
  54. package/dist/css/revolugo.creditcardform.fTmPR0fS.css +0 -1
  55. package/dist/css/revolugo.creditcardpayment.D2PE5FCt.css +0 -1
  56. package/dist/css/revolugo.fullbookingflow.Bm8JAQF7.css +0 -1
  57. package/dist/css/revolugo.hoteldescriptionview.B-RiiuPY.css +0 -1
  58. package/dist/css/revolugo.hotelofferlist.BkctzTMI.css +0 -1
  59. package/dist/css/revolugo.hoteloffersearchmenuui.ZbUh8ba2.css +0 -1
  60. package/dist/css/revolugo.hoteloffersmap.Z5DFtK0_.css +0 -1
  61. package/dist/css/revolugo.hoteloffersview.CLbnSww6.css +0 -1
  62. package/dist/css/revolugo.hotelroomofferlist.D8JlZt_N.css +0 -1
  63. package/dist/css/revolugo.hotelroomoffersbookingflow.LHa5iHB7.css +0 -1
  64. package/dist/css/revolugo.index.DK7d_h6O.css +0 -1
  65. package/dist/css/revolugo.index.XNPQF1ia.css +0 -5
  66. package/dist/css/revolugo.langpickerbtn.BGnattUJ.css +0 -1
  67. package/dist/css/revolugo.prebookform.DmCR7hLv.css +0 -1
  68. package/dist/css/revolugo.preferencesmenu.fPv_7j-1.css +0 -1
  69. package/dist/css/revolugo.termsandconditions.D8IMR9da.css +0 -1
  70. package/dist/css/revolugo.vautocomplete.CuVjyvcC.css +0 -1
  71. package/dist/css/revolugo.vbadge.C45eZpxy.css +0 -1
  72. package/dist/css/revolugo.vbtn.DpMO1Ky2.css +0 -1
  73. package/dist/css/revolugo.vcard.TERzfknI.css +0 -1
  74. package/dist/css/revolugo.vcheckboxbtn.Bp_BNQWb.css +0 -1
  75. package/dist/css/revolugo.vdialog.DwTSAOeg.css +0 -1
  76. package/dist/css/revolugo.vdivider.CTbbZwnv.css +0 -1
  77. package/dist/css/revolugo.vexpansionpanels.RsCANmDP.css +0 -1
  78. package/dist/css/revolugo.vicon.eIkh7vVK.css +0 -1
  79. package/dist/css/revolugo.vinput.BPiFMorL.css +0 -1
  80. package/dist/css/revolugo.vlabel.BvKaKg7Y.css +0 -1
  81. package/dist/css/revolugo.vlist.-Y4qkukF.css +0 -1
  82. package/dist/css/revolugo.vmenu.DvKwEp1j.css +0 -1
  83. package/dist/css/revolugo.vselect.C5CKHFYB.css +0 -1
  84. package/dist/css/revolugo.vsheet.Dmcoj8cr.css +0 -1
  85. package/dist/css/revolugo.vskeletonloader.BlK8uFkX.css +0 -1
  86. package/dist/css/revolugo.vslidegroup.ECiLCEE9.css +0 -1
  87. package/dist/css/revolugo.vsnackbar.CCfuo3ao.css +0 -1
  88. package/dist/css/revolugo.vtextarea.Dxy6uSvm.css +0 -1
  89. package/dist/css/revolugo.vtextfield.BIH_AWWP.css +0 -1
  90. package/dist/css/revolugo.vtooltip.BHXJTQ4V.css +0 -1
  91. package/dist/css/revolugo.vwindowitem.CWBhiE_Y.css +0 -1
  92. package/dist/revolugo._baseiteratee.Zjxh5X1S.min.js +0 -247
  93. package/dist/revolugo.banktransferdetails.BMe84dqg.min.js +0 -380
  94. package/dist/revolugo.bdaterangepicker.DzOGjDv0.min.js +0 -8327
  95. package/dist/revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.DMP_pksf.min.js +0 -146
  96. package/dist/revolugo.bhoteloffersfilterbar.Duj0L2BC.min.js +0 -4901
  97. package/dist/revolugo.bhotelroomsdetails.A441NOYj.min.js +0 -965
  98. package/dist/revolugo.bimagecarousel.CeagkLxi.min.js +0 -566
  99. package/dist/revolugo.bookingdetailssidebar.BR9pOQ-A.min.js +0 -870
  100. package/dist/revolugo.bookingdetailssidebar.C_cVgvbV.min.js +0 -24
  101. package/dist/revolugo.bookingmanager.Tqklnltl.min.js +0 -1755
  102. package/dist/revolugo.bpricesummaryskeleton.vue_vue_type_script_setup_true_lang.N9x3mRNq.min.js +0 -66
  103. package/dist/revolugo.bstarrating.vue_vue_type_script_setup_true_lang.vPcVvCoJ.min.js +0 -570
  104. package/dist/revolugo.btag.6i9RpwY_.min.js +0 -375
  105. package/dist/revolugo.cancellationpoliciesbadge.CJhYlUuT.min.js +0 -198
  106. package/dist/revolugo.cancellationpoliciesbadge.Vi2j73X9.min.js +0 -28
  107. package/dist/revolugo.cancellationpolicieslist.BuNsG_i4.min.js +0 -25
  108. package/dist/revolugo.cancellationpolicieslist.CaiWZD9_.min.js +0 -148
  109. package/dist/revolugo.cancellationpolicieslist.props.s6oWxIxG.min.js +0 -21
  110. package/dist/revolugo.case-transformers.BGpZ9qjt.min.js +0 -123
  111. package/dist/revolugo.common.D-l8b0V5.min.js +0 -10
  112. package/dist/revolugo.creditcardform.wbMwrte3.min.js +0 -24
  113. package/dist/revolugo.creditcardpayment.BsQwUNPu.min.js +0 -885
  114. package/dist/revolugo.creditcardpayment.v2TP6g1r.min.js +0 -24
  115. package/dist/revolugo.currencypicker.CCydQxvk.min.js +0 -328
  116. package/dist/revolugo.currencypickerbtn.54OJeTC0.min.js +0 -157
  117. package/dist/revolugo.currencypickerbtn.D0OyHd5Z.min.js +0 -24
  118. package/dist/revolugo.dates.Dma3i1u_.min.js +0 -31
  119. package/dist/revolugo.defaultsdeep.BlZWlkib.min.js +0 -104
  120. package/dist/revolugo.dialog-transition.JX-XGblk.min.js +0 -111
  121. package/dist/revolugo.fastbookingflow.kwlndDrp.min.js +0 -34
  122. package/dist/revolugo.forwardrefs.VVhh1qV3.min.js +0 -70
  123. package/dist/revolugo.fullbookingflow.Cm0oV-cR.min.js +0 -429
  124. package/dist/revolugo.hotel-offer-request.aMUhw0jC.min.js +0 -98
  125. package/dist/revolugo.hoteldescriptionview.Dng4hMzd.min.js +0 -2738
  126. package/dist/revolugo.hoteldescriptionview.ojwTutv4.min.js +0 -24
  127. package/dist/revolugo.hotelofferitemlayout.vue_vue_type_script_setup_true_lang.olnYk_cF.min.js +0 -239
  128. package/dist/revolugo.hotelofferlist.BWC_k60T.min.js +0 -5640
  129. package/dist/revolugo.hotelofferlist.DacSdhyV.min.js +0 -24
  130. package/dist/revolugo.hotelofferrequestcreator.props.BeQuCTZy.min.js +0 -44
  131. package/dist/revolugo.hoteloffersearchmenu.BRYJjrI7.min.js +0 -202
  132. package/dist/revolugo.hoteloffersearchmenuui.CjFznky7.min.js +0 -829
  133. package/dist/revolugo.hoteloffersmap.B4YsCUhB.min.js +0 -8330
  134. package/dist/revolugo.hoteloffersmap.BjCpSBW5.min.js +0 -24
  135. package/dist/revolugo.hoteloffersview.Df1RPsE2.min.js +0 -19
  136. package/dist/revolugo.hoteloffersview.VHsBhOKb.min.js +0 -616
  137. package/dist/revolugo.hotelroomofferlist.kttmW_p0.min.js +0 -24
  138. package/dist/revolugo.hotelroomofferlist.t-3U4Nu4.min.js +0 -2799
  139. package/dist/revolugo.hotelroomofferrequestcreator.props.vFsZDl1K.min.js +0 -171
  140. package/dist/revolugo.hotelroomoffersbookingflow.CcnFaLm4.min.js +0 -1281
  141. package/dist/revolugo.hotelroomoffersearchmenu.FTQxJ_n5.min.js +0 -25
  142. package/dist/revolugo.hotelroomoffersearchmenu.WM6bLEz9.min.js +0 -231
  143. package/dist/revolugo.hotelroomoffersview.4GP75oBd.min.js +0 -24
  144. package/dist/revolugo.hotelroomoffersview.C64pbpV0.min.js +0 -290
  145. package/dist/revolugo.index.CmfloZTT.min.js +0 -67
  146. package/dist/revolugo.index.q2k-tLa2.min.js +0 -1232
  147. package/dist/revolugo.index.wc.BmAtoZjo.min.js +0 -31558
  148. package/dist/revolugo.langpicker.BDDm2CzN.min.js +0 -99
  149. package/dist/revolugo.langpickerbtn.BS-VKFY1.min.js +0 -131
  150. package/dist/revolugo.langpickerbtn.C_Z35YuF.min.js +0 -29
  151. package/dist/revolugo.parsed-props.z2aR0x9r.min.js +0 -40
  152. package/dist/revolugo.pathify.DOgJK7nI.min.js +0 -36
  153. package/dist/revolugo.prebookform.DT2QXZUm.min.js +0 -1527
  154. package/dist/revolugo.prebookform.Dk1v8qZ9.min.js +0 -24
  155. package/dist/revolugo.preferencesmenu.BhDjryBC.min.js +0 -24
  156. package/dist/revolugo.preferencesmenu.DsDw7iXm.min.js +0 -261
  157. package/dist/revolugo.roominglisteditor.ChZhBnZ3.min.js +0 -385
  158. package/dist/revolugo.roominglisteditor.DaPP1NPv.min.js +0 -24
  159. package/dist/revolugo.rounded.BmZawp2x.min.js +0 -68
  160. package/dist/revolugo.ssrboot.CMusFTC5.min.js +0 -18
  161. package/dist/revolugo.storybooktoolbar.CLAq0fXx.min.js +0 -881
  162. package/dist/revolugo.termsandconditions.B8TrVOz1.min.js +0 -404
  163. package/dist/revolugo.termsandconditions.CI0t3pno.min.js +0 -23
  164. package/dist/revolugo.use-breakpoint-service.BmTXBw-9.min.js +0 -39
  165. package/dist/revolugo.use-dialog-attach.ByNAI0vu.min.js +0 -16
  166. package/dist/revolugo.use-html-element.BbD1LjYc.min.js +0 -11
  167. package/dist/revolugo.vautocomplete.D1yqzzar.min.js +0 -445
  168. package/dist/revolugo.vbadge.B1q1ebM4.min.js +0 -112
  169. package/dist/revolugo.vbtn.D-1pZWJQ.min.js +0 -398
  170. package/dist/revolugo.vcard.BhFz1a7-.min.js +0 -313
  171. package/dist/revolugo.vcheckboxbtn.BtTJE9k_.min.js +0 -478
  172. package/dist/revolugo.vdialog.Q1vj1S2Y.min.js +0 -133
  173. package/dist/revolugo.vdivider.Cw22Dcuf.min.js +0 -77
  174. package/dist/revolugo.vexpansionpanels.B6laIhZ5.min.js +0 -262
  175. package/dist/revolugo.vform.DKrc0wCb.min.js +0 -46
  176. package/dist/revolugo.vicon.OZg4Im8p.min.js +0 -105
  177. package/dist/revolugo.vinput.Bo6I7bO4.min.js +0 -463
  178. package/dist/revolugo.vlabel.CK1EiiGY.min.js +0 -48
  179. package/dist/revolugo.vlist.C2mV3Sh6.min.js +0 -1299
  180. package/dist/revolugo.vmenu.C2Y9H_mH.min.js +0 -145
  181. package/dist/revolugo.vselect.ukHPs1U9.min.js +0 -660
  182. package/dist/revolugo.vsheet.COT4-g6w.min.js +0 -72
  183. package/dist/revolugo.vskeletonloader.BUWqKsWc.min.js +0 -136
  184. package/dist/revolugo.vslidegroup.vYhKvZC2.min.js +0 -325
  185. package/dist/revolugo.vsnackbar.DGEvcXxN.min.js +0 -198
  186. package/dist/revolugo.vspacer.DKw4LWvz.min.js +0 -7
  187. package/dist/revolugo.vtextarea.JwpV0Q9q.min.js +0 -2092
  188. package/dist/revolugo.vtextfield.CF6W_mmu.min.js +0 -501
  189. package/dist/revolugo.vtoolbar.8GW_wkyp.min.js +0 -180
  190. package/dist/revolugo.vtooltip.D-CqFjzD.min.js +0 -89
  191. package/dist/revolugo.vwindowitem.DdXQiNtJ.min.js +0 -317
  192. package/dist/revolugo.watch-list.CqLXeMQh.min.js +0 -16
  193. package/dist/revolugo.webcomponentwrapper.DipHFVeJ.min.js +0 -2088
@@ -1,1299 +0,0 @@
1
- import { an as U, a9 as B, ap as K, a7 as fe, bw as p, a2 as E, k as P, a6 as Z, H as g, Y as me, c0 as et, af as k, aL as tt, b4 as ye, a1 as M, a as m, cn as nt, J as ge, K as at, a3 as _, O as lt, aK as Se, co as st, aH as it, D as Q, aM as he, a4 as x, F as re, t as oe, ac as rt, cp as be, a_ as pe, bY as ot, aZ as L, aa as ke, aV as ut, ck as ct } from "./revolugo.index.wc.BmAtoZjo.min.js";
2
- import { a as ee, d as dt, c as vt, R as ft, t as mt, s as Ce, v as we, m as Ie, g as yt, h as ue } from "./revolugo.index.q2k-tLa2.min.js";
3
- import { u as N, M as gt, e as G, m as D, A as St, n as Ve, D as ht, o as Ae, d as bt, b as pt } from "./revolugo.webcomponentwrapper.DipHFVeJ.min.js";
4
- import { u as kt } from "./revolugo.ssrboot.CMusFTC5.min.js";
5
- import { c as Pe, u as Le, b as Oe, a as _e, m as Ee, d as Te } from "./revolugo.rounded.BmZawp2x.min.js";
6
- import { V as ce } from "./revolugo.vicon.OZg4Im8p.min.js";
7
- import { V as Ct } from "./revolugo.vdivider.Cw22Dcuf.min.js";
8
- function Qe(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, a = l.slice(0, l.lastIndexOf("/") + 1) + e;
16
- window.REVOLUGO_ELEMENTS_STYLES.sheets.push(a);
17
- for (const n of REVOLUGO_ELEMENTS_STYLES.components)
18
- n(a);
19
- if (e.indexOf("fonts") >= 0) {
20
- const n = document.createElement("link");
21
- n.rel = "stylesheet", linK.href = a, document.head.appendChild(n);
22
- }
23
- }
24
- } catch (l) {
25
- console.error("[revolugo-elements] ", l);
26
- }
27
- }
28
- const te = Symbol.for("vuetify:list");
29
- function Be() {
30
- const e = U(te, {
31
- hasPrepend: B(!1),
32
- updateHasPrepend: () => null
33
- }), l = {
34
- hasPrepend: B(!1),
35
- updateHasPrepend: (a) => {
36
- a && (l.hasPrepend.value = a);
37
- }
38
- };
39
- return K(te, l), e;
40
- }
41
- function Me() {
42
- return U(te, null);
43
- }
44
- const ae = (e) => {
45
- const l = {
46
- activate: (a) => {
47
- let {
48
- id: n,
49
- value: s,
50
- activated: t
51
- } = a;
52
- return n = p(n), e && !s && t.size === 1 && t.has(n) || (s ? t.add(n) : t.delete(n)), t;
53
- },
54
- in: (a, n, s) => {
55
- let t = /* @__PURE__ */ new Set();
56
- if (a != null)
57
- for (const i of fe(a))
58
- t = l.activate({
59
- id: i,
60
- value: !0,
61
- activated: new Set(t),
62
- children: n,
63
- parents: s
64
- });
65
- return t;
66
- },
67
- out: (a) => Array.from(a)
68
- };
69
- return l;
70
- }, je = (e) => {
71
- const l = ae(e);
72
- return {
73
- activate: (n) => {
74
- let {
75
- activated: s,
76
- id: t,
77
- ...i
78
- } = n;
79
- t = p(t);
80
- const o = s.has(t) ? /* @__PURE__ */ new Set([t]) : /* @__PURE__ */ new Set();
81
- return l.activate({
82
- ...i,
83
- id: t,
84
- activated: o
85
- });
86
- },
87
- in: (n, s, t) => {
88
- let i = /* @__PURE__ */ new Set();
89
- if (n != null) {
90
- const o = fe(n);
91
- o.length && (i = l.in(o.slice(0, 1), s, t));
92
- }
93
- return i;
94
- },
95
- out: (n, s, t) => l.out(n, s, t)
96
- };
97
- }, wt = (e) => {
98
- const l = ae(e);
99
- return {
100
- activate: (n) => {
101
- let {
102
- id: s,
103
- activated: t,
104
- children: i,
105
- ...o
106
- } = n;
107
- return s = p(s), i.has(s) ? t : l.activate({
108
- id: s,
109
- activated: t,
110
- children: i,
111
- ...o
112
- });
113
- },
114
- in: l.in,
115
- out: l.out
116
- };
117
- }, It = (e) => {
118
- const l = je(e);
119
- return {
120
- activate: (n) => {
121
- let {
122
- id: s,
123
- activated: t,
124
- children: i,
125
- ...o
126
- } = n;
127
- return s = p(s), i.has(s) ? t : l.activate({
128
- id: s,
129
- activated: t,
130
- children: i,
131
- ...o
132
- });
133
- },
134
- in: l.in,
135
- out: l.out
136
- };
137
- }, Vt = {
138
- open: (e) => {
139
- let {
140
- id: l,
141
- value: a,
142
- opened: n,
143
- parents: s
144
- } = e;
145
- if (a) {
146
- const t = /* @__PURE__ */ new Set();
147
- t.add(l);
148
- let i = s.get(l);
149
- for (; i != null; )
150
- t.add(i), i = s.get(i);
151
- return t;
152
- } else
153
- return n.delete(l), n;
154
- },
155
- select: () => null
156
- }, xe = {
157
- open: (e) => {
158
- let {
159
- id: l,
160
- value: a,
161
- opened: n,
162
- parents: s
163
- } = e;
164
- if (a) {
165
- let t = s.get(l);
166
- for (n.add(l); t != null && t !== l; )
167
- n.add(t), t = s.get(t);
168
- return n;
169
- } else
170
- n.delete(l);
171
- return n;
172
- },
173
- select: () => null
174
- }, At = {
175
- open: xe.open,
176
- select: (e) => {
177
- let {
178
- id: l,
179
- value: a,
180
- opened: n,
181
- parents: s
182
- } = e;
183
- if (!a) return n;
184
- const t = [];
185
- let i = s.get(l);
186
- for (; i != null; )
187
- t.push(i), i = s.get(i);
188
- return new Set(t);
189
- }
190
- }, le = (e) => {
191
- const l = {
192
- select: (a) => {
193
- let {
194
- id: n,
195
- value: s,
196
- selected: t
197
- } = a;
198
- if (n = p(n), e && !s) {
199
- const i = Array.from(t.entries()).reduce((o, d) => {
200
- let [y, c] = d;
201
- return c === "on" && o.push(y), o;
202
- }, []);
203
- if (i.length === 1 && i[0] === n) return t;
204
- }
205
- return t.set(n, s ? "on" : "off"), t;
206
- },
207
- in: (a, n, s) => {
208
- const t = /* @__PURE__ */ new Map();
209
- for (const i of a || [])
210
- l.select({
211
- id: i,
212
- value: !0,
213
- selected: t,
214
- children: n,
215
- parents: s
216
- });
217
- return t;
218
- },
219
- out: (a) => {
220
- const n = [];
221
- for (const [s, t] of a.entries())
222
- t === "on" && n.push(s);
223
- return n;
224
- }
225
- };
226
- return l;
227
- }, Fe = (e) => {
228
- const l = le(e);
229
- return {
230
- select: (n) => {
231
- let {
232
- selected: s,
233
- id: t,
234
- ...i
235
- } = n;
236
- t = p(t);
237
- const o = s.has(t) ? /* @__PURE__ */ new Map([[t, s.get(t)]]) : /* @__PURE__ */ new Map();
238
- return l.select({
239
- ...i,
240
- id: t,
241
- selected: o
242
- });
243
- },
244
- in: (n, s, t) => n?.length ? l.in(n.slice(0, 1), s, t) : /* @__PURE__ */ new Map(),
245
- out: (n, s, t) => l.out(n, s, t)
246
- };
247
- }, Pt = (e) => {
248
- const l = le(e);
249
- return {
250
- select: (n) => {
251
- let {
252
- id: s,
253
- selected: t,
254
- children: i,
255
- ...o
256
- } = n;
257
- return s = p(s), i.has(s) ? t : l.select({
258
- id: s,
259
- selected: t,
260
- children: i,
261
- ...o
262
- });
263
- },
264
- in: l.in,
265
- out: l.out
266
- };
267
- }, Lt = (e) => {
268
- const l = Fe(e);
269
- return {
270
- select: (n) => {
271
- let {
272
- id: s,
273
- selected: t,
274
- children: i,
275
- ...o
276
- } = n;
277
- return s = p(s), i.has(s) ? t : l.select({
278
- id: s,
279
- selected: t,
280
- children: i,
281
- ...o
282
- });
283
- },
284
- in: l.in,
285
- out: l.out
286
- };
287
- }, Ot = (e) => {
288
- const l = {
289
- select: (a) => {
290
- let {
291
- id: n,
292
- value: s,
293
- selected: t,
294
- children: i,
295
- parents: o
296
- } = a;
297
- n = p(n);
298
- const d = new Map(t), y = [n];
299
- for (; y.length; ) {
300
- const v = y.shift();
301
- t.set(p(v), s ? "on" : "off"), i.has(v) && y.push(...i.get(v));
302
- }
303
- let c = p(o.get(n));
304
- for (; c; ) {
305
- const v = i.get(c), h = v.every((r) => t.get(p(r)) === "on"), b = v.every((r) => !t.has(p(r)) || t.get(p(r)) === "off");
306
- t.set(c, h ? "on" : b ? "off" : "indeterminate"), c = p(o.get(c));
307
- }
308
- return e && !s && Array.from(t.entries()).reduce((h, b) => {
309
- let [r, u] = b;
310
- return u === "on" && h.push(r), h;
311
- }, []).length === 0 ? d : t;
312
- },
313
- in: (a, n, s) => {
314
- let t = /* @__PURE__ */ new Map();
315
- for (const i of a || [])
316
- t = l.select({
317
- id: i,
318
- value: !0,
319
- selected: t,
320
- children: n,
321
- parents: s
322
- });
323
- return t;
324
- },
325
- out: (a, n) => {
326
- const s = [];
327
- for (const [t, i] of a.entries())
328
- i === "on" && !n.has(t) && s.push(t);
329
- return s;
330
- }
331
- };
332
- return l;
333
- }, F = Symbol.for("vuetify:nested"), Ne = {
334
- id: B(),
335
- root: {
336
- register: () => null,
337
- unregister: () => null,
338
- parents: P(/* @__PURE__ */ new Map()),
339
- children: P(/* @__PURE__ */ new Map()),
340
- open: () => null,
341
- openOnSelect: () => null,
342
- activate: () => null,
343
- select: () => null,
344
- activatable: P(!1),
345
- selectable: P(!1),
346
- opened: P(/* @__PURE__ */ new Set()),
347
- activated: P(/* @__PURE__ */ new Set()),
348
- selected: P(/* @__PURE__ */ new Map()),
349
- selectedValues: P([]),
350
- getPath: () => []
351
- }
352
- }, _t = E({
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"), Et = (e) => {
363
- let l = !1;
364
- const a = P(/* @__PURE__ */ new Map()), n = P(/* @__PURE__ */ new Map()), s = Z(e, "opened", e.opened, (r) => new Set(r), (r) => [...r.values()]), t = 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 wt(e.mandatory);
370
- case "single-leaf":
371
- return It(e.mandatory);
372
- case "independent":
373
- return ae(e.mandatory);
374
- case "single-independent":
375
- default:
376
- return je(e.mandatory);
377
- }
378
- }), i = 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 Lt(e.mandatory);
384
- case "leaf":
385
- return Pt(e.mandatory);
386
- case "independent":
387
- return le(e.mandatory);
388
- case "single-independent":
389
- return Fe(e.mandatory);
390
- case "classic":
391
- default:
392
- return Ot(e.mandatory);
393
- }
394
- }), o = g(() => {
395
- if (typeof e.openStrategy == "object") return e.openStrategy;
396
- switch (e.openStrategy) {
397
- case "list":
398
- return At;
399
- case "single":
400
- return Vt;
401
- case "multiple":
402
- default:
403
- return xe;
404
- }
405
- }), d = Z(e, "activated", e.activated, (r) => t.value.in(r, a.value, n.value), (r) => t.value.out(r, a.value, n.value)), y = Z(e, "selected", e.selected, (r) => i.value.in(r, a.value, n.value), (r) => i.value.out(r, a.value, n.value));
406
- me(() => {
407
- l = !0;
408
- });
409
- function c(r) {
410
- const u = [];
411
- let f = r;
412
- for (; f != null; )
413
- u.unshift(f), f = n.value.get(f);
414
- return u;
415
- }
416
- const v = et("nested"), h = /* @__PURE__ */ new Set(), b = {
417
- id: B(),
418
- root: {
419
- opened: s,
420
- activatable: k(e, "activatable"),
421
- selectable: k(e, "selectable"),
422
- activated: d,
423
- selected: y,
424
- selectedValues: g(() => {
425
- const r = [];
426
- for (const [u, f] of y.value.entries())
427
- f === "on" && r.push(u);
428
- return r;
429
- }),
430
- register: (r, u, f) => {
431
- if (h.has(r)) {
432
- c(r).map(String).join(" -> "), c(u).concat(r).map(String).join(" -> ");
433
- return;
434
- } else
435
- h.add(r);
436
- u && r !== u && n.value.set(r, u), f && a.value.set(r, []), u != null && a.value.set(u, [...a.value.get(u) || [], r]);
437
- },
438
- unregister: (r) => {
439
- if (l) return;
440
- h.delete(r), a.value.delete(r);
441
- const u = n.value.get(r);
442
- if (u) {
443
- const f = a.value.get(u) ?? [];
444
- a.value.set(u, f.filter((S) => S !== r));
445
- }
446
- n.value.delete(r);
447
- },
448
- open: (r, u, f) => {
449
- v.emit("click:open", {
450
- id: r,
451
- value: u,
452
- path: c(r),
453
- event: f
454
- });
455
- const S = o.value.open({
456
- id: r,
457
- value: u,
458
- opened: new Set(s.value),
459
- children: a.value,
460
- parents: n.value,
461
- event: f
462
- });
463
- S && (s.value = S);
464
- },
465
- openOnSelect: (r, u, f) => {
466
- const S = o.value.select({
467
- id: r,
468
- value: u,
469
- selected: new Map(y.value),
470
- opened: new Set(s.value),
471
- children: a.value,
472
- parents: n.value,
473
- event: f
474
- });
475
- S && (s.value = S);
476
- },
477
- select: (r, u, f) => {
478
- v.emit("click:select", {
479
- id: r,
480
- value: u,
481
- path: c(r),
482
- event: f
483
- });
484
- const S = i.value.select({
485
- id: r,
486
- value: u,
487
- selected: new Map(y.value),
488
- children: a.value,
489
- parents: n.value,
490
- event: f
491
- });
492
- S && (y.value = S), b.root.openOnSelect(r, u, f);
493
- },
494
- activate: (r, u, f) => {
495
- if (!e.activatable)
496
- return b.root.select(r, !0, f);
497
- v.emit("click:activate", {
498
- id: r,
499
- value: u,
500
- path: c(r),
501
- event: f
502
- });
503
- const S = t.value.activate({
504
- id: r,
505
- value: u,
506
- activated: new Set(d.value),
507
- children: a.value,
508
- parents: n.value,
509
- event: f
510
- });
511
- if (S.size !== d.value.size)
512
- d.value = S;
513
- else {
514
- for (const I of S)
515
- if (!d.value.has(I)) {
516
- d.value = S;
517
- return;
518
- }
519
- for (const I of d.value)
520
- if (!S.has(I)) {
521
- d.value = S;
522
- return;
523
- }
524
- }
525
- },
526
- children: a,
527
- parents: n,
528
- getPath: c
529
- }
530
- };
531
- return K(F, b), b.root;
532
- }, Ge = (e, l) => {
533
- const a = U(F, Ne), n = Symbol(tt()), s = g(() => e.value !== void 0 ? e.value : n), t = {
534
- ...a,
535
- id: s,
536
- open: (i, o) => a.root.open(s.value, i, o),
537
- openOnSelect: (i, o) => a.root.openOnSelect(s.value, i, o),
538
- isOpen: g(() => a.root.opened.value.has(s.value)),
539
- parent: g(() => a.root.parents.value.get(s.value)),
540
- activate: (i, o) => a.root.activate(s.value, i, o),
541
- isActivated: g(() => a.root.activated.value.has(p(s.value))),
542
- select: (i, o) => a.root.select(s.value, i, o),
543
- isSelected: g(() => a.root.selected.value.get(p(s.value)) === "on"),
544
- isIndeterminate: g(() => a.root.selected.value.get(p(s.value)) === "indeterminate"),
545
- isLeaf: g(() => !a.root.children.value.get(s.value)),
546
- isGroupActivator: a.isGroupActivator
547
- };
548
- return ye(() => {
549
- !a.isGroupActivator && a.root.register(s.value, a.id.value, l);
550
- }), me(() => {
551
- !a.isGroupActivator && a.root.unregister(s.value);
552
- }), l && K(F, t), t;
553
- }, Tt = () => {
554
- const e = U(F, Ne);
555
- K(F, {
556
- ...e,
557
- isGroupActivator: !0
558
- });
559
- }, Bt = nt({
560
- name: "VListGroupActivator",
561
- setup(e, l) {
562
- let {
563
- slots: a
564
- } = l;
565
- return Tt(), () => a.default?.();
566
- }
567
- }), Mt = E({
568
- /* @deprecated */
569
- activeColor: String,
570
- baseColor: String,
571
- color: String,
572
- collapseIcon: {
573
- type: _,
574
- default: "$collapse"
575
- },
576
- expandIcon: {
577
- type: _,
578
- default: "$expand"
579
- },
580
- prependIcon: _,
581
- appendIcon: _,
582
- fluid: Boolean,
583
- subgroup: Boolean,
584
- title: String,
585
- value: null,
586
- ...D(),
587
- ...G()
588
- }, "VListGroup"), de = M()({
589
- name: "VListGroup",
590
- props: Mt(),
591
- setup(e, l) {
592
- let {
593
- slots: a
594
- } = l;
595
- const {
596
- isOpen: n,
597
- open: s,
598
- id: t
599
- } = Ge(k(e, "value"), !0), i = g(() => `v-list-group--id-${String(t.value)}`), o = Me(), {
600
- isBooted: d
601
- } = kt();
602
- function y(b) {
603
- b.stopPropagation(), s(!n.value, b);
604
- }
605
- const c = g(() => ({
606
- onClick: y,
607
- class: "v-list-group__header",
608
- id: i.value
609
- })), v = g(() => n.value ? e.collapseIcon : e.expandIcon), h = g(() => ({
610
- VListItem: {
611
- active: n.value,
612
- activeColor: e.activeColor,
613
- baseColor: e.baseColor,
614
- color: e.color,
615
- prependIcon: e.prependIcon || e.subgroup && v.value,
616
- appendIcon: e.appendIcon || !e.subgroup && v.value,
617
- title: e.title,
618
- value: e.value
619
- }
620
- }));
621
- return N(() => m(e.tag, {
622
- class: ["v-list-group", {
623
- "v-list-group--prepend": o?.hasPrepend.value,
624
- "v-list-group--fluid": e.fluid,
625
- "v-list-group--subgroup": e.subgroup,
626
- "v-list-group--open": n.value
627
- }, e.class],
628
- style: e.style
629
- }, {
630
- default: () => [a.activator && m(ee, {
631
- defaults: h.value
632
- }, {
633
- default: () => [m(Bt, null, {
634
- default: () => [a.activator({
635
- props: c.value,
636
- isOpen: n.value
637
- })]
638
- })]
639
- }), m(gt, {
640
- transition: {
641
- component: dt
642
- },
643
- disabled: !d.value
644
- }, {
645
- default: () => [ge(m("div", {
646
- class: "v-list-group__items",
647
- role: "group",
648
- "aria-labelledby": i.value
649
- }, [a.default?.()]), [[at, n.value]])]
650
- })]
651
- })), {
652
- isOpen: n
653
- };
654
- }
655
- }), jt = E({
656
- opacity: [Number, String],
657
- ...D(),
658
- ...G()
659
- }, "VListItemSubtitle"), xt = M()({
660
- name: "VListItemSubtitle",
661
- props: jt(),
662
- setup(e, l) {
663
- let {
664
- slots: a
665
- } = l;
666
- return N(() => m(e.tag, {
667
- class: ["v-list-item-subtitle", e.class],
668
- style: [{
669
- "--v-list-item-subtitle-opacity": e.opacity
670
- }, e.style]
671
- }, a)), {};
672
- }
673
- }), Ft = vt("v-list-item-title"), Nt = E({
674
- active: {
675
- type: Boolean,
676
- default: void 0
677
- },
678
- activeClass: String,
679
- /* @deprecated */
680
- activeColor: String,
681
- appendAvatar: String,
682
- appendIcon: _,
683
- baseColor: String,
684
- disabled: Boolean,
685
- lines: [Boolean, String],
686
- link: {
687
- type: Boolean,
688
- default: void 0
689
- },
690
- nav: Boolean,
691
- prependAvatar: String,
692
- prependIcon: _,
693
- ripple: {
694
- type: [Boolean, Object],
695
- default: !0
696
- },
697
- slim: Boolean,
698
- subtitle: {
699
- type: [String, Number, Boolean],
700
- default: void 0
701
- },
702
- title: {
703
- type: [String, Number, Boolean],
704
- default: void 0
705
- },
706
- value: null,
707
- onClick: x(),
708
- onClickOnce: x(),
709
- ...Te(),
710
- ...D(),
711
- ...Ie(),
712
- ...Ae(),
713
- ...Ee(),
714
- ..._e(),
715
- ...ht(),
716
- ...G(),
717
- ...he(),
718
- ...we({
719
- variant: "text"
720
- })
721
- }, "VListItem"), ve = M()({
722
- name: "VListItem",
723
- directives: {
724
- Ripple: ft
725
- },
726
- props: Nt(),
727
- emits: {
728
- click: (e) => !0
729
- },
730
- setup(e, l) {
731
- let {
732
- attrs: a,
733
- slots: n,
734
- emit: s
735
- } = l;
736
- const t = St(e, a), i = g(() => e.value === void 0 ? t.href.value : e.value), {
737
- activate: o,
738
- isActivated: d,
739
- select: y,
740
- isOpen: c,
741
- isSelected: v,
742
- isIndeterminate: h,
743
- isGroupActivator: b,
744
- root: r,
745
- parent: u,
746
- openOnSelect: f,
747
- id: S
748
- } = Ge(i, !1), I = Me(), V = g(() => e.active !== !1 && (e.active || t.isActive?.value || (r.activatable.value ? d.value : v.value))), j = g(() => e.link !== !1 && t.isLink.value), T = g(() => !!I && (r.selectable.value || r.activatable.value || e.value != null)), A = g(() => !e.disabled && e.link !== !1 && (e.link || t.isClickable.value || T.value)), $ = g(() => e.rounded || e.nav), Y = g(() => e.color ?? e.activeColor), H = g(() => ({
749
- color: V.value ? Y.value ?? e.baseColor : e.baseColor,
750
- variant: e.variant
751
- }));
752
- lt(() => t.isActive?.value, (w) => {
753
- w && R();
754
- }), ye(() => {
755
- t.isActive?.value && R();
756
- });
757
- function R() {
758
- u.value != null && r.open(u.value, !0), f(!0);
759
- }
760
- const {
761
- themeClasses: z
762
- } = Se(e), {
763
- borderClasses: O
764
- } = Pe(e), {
765
- colorClasses: C,
766
- colorStyles: q,
767
- variantClasses: Ke
768
- } = mt(H), {
769
- densityClasses: $e
770
- } = Ce(e), {
771
- dimensionStyles: Ye
772
- } = Ve(e), {
773
- elevationClasses: He
774
- } = Le(e), {
775
- roundedClasses: ze
776
- } = Oe($), qe = g(() => e.lines ? `v-list-item--${e.lines}-line` : void 0), X = g(() => ({
777
- isActive: V.value,
778
- select: y,
779
- isOpen: c.value,
780
- isSelected: v.value,
781
- isIndeterminate: h.value
782
- }));
783
- function Xe(w) {
784
- s("click", w), A.value && (t.navigate?.(w), !b && (r.activatable.value ? o(!d.value, w) : (r.selectable.value || e.value != null) && y(!v.value, w)));
785
- }
786
- function Je(w) {
787
- const J = w.target;
788
- ["INPUT", "TEXTAREA"].includes(J.tagName) || (w.key === "Enter" || w.key === " ") && (w.preventDefault(), w.target.dispatchEvent(new MouseEvent("click", w)));
789
- }
790
- return N(() => {
791
- const w = j.value ? "a" : e.tag, J = n.title || e.title != null, We = n.subtitle || e.subtitle != null, se = !!(e.appendAvatar || e.appendIcon), Ze = !!(se || n.append), ie = !!(e.prependAvatar || e.prependIcon), W = !!(ie || n.prepend);
792
- return I?.updateHasPrepend(W), e.activeColor && st("active-color", ["color", "base-color"]), ge(m(w, Q({
793
- class: ["v-list-item", {
794
- "v-list-item--active": V.value,
795
- "v-list-item--disabled": e.disabled,
796
- "v-list-item--link": A.value,
797
- "v-list-item--nav": e.nav,
798
- "v-list-item--prepend": !W && I?.hasPrepend.value,
799
- "v-list-item--slim": e.slim,
800
- [`${e.activeClass}`]: e.activeClass && V.value
801
- }, z.value, O.value, C.value, $e.value, He.value, qe.value, ze.value, Ke.value, e.class],
802
- style: [q.value, Ye.value, e.style],
803
- tabindex: A.value ? I ? -2 : 0 : void 0,
804
- "aria-selected": T.value ? r.activatable.value ? d.value : r.selectable.value ? v.value : V.value : void 0,
805
- onClick: Xe,
806
- onKeydown: A.value && !j.value && Je
807
- }, t.linkProps), {
808
- default: () => [yt(A.value || V.value, "v-list-item"), W && m("div", {
809
- key: "prepend",
810
- class: "v-list-item__prepend"
811
- }, [n.prepend ? m(ee, {
812
- key: "prepend-defaults",
813
- disabled: !ie,
814
- defaults: {
815
- VAvatar: {
816
- density: e.density,
817
- image: e.prependAvatar
818
- },
819
- VIcon: {
820
- density: e.density,
821
- icon: e.prependIcon
822
- },
823
- VListItemAction: {
824
- start: !0
825
- }
826
- }
827
- }, {
828
- default: () => [n.prepend?.(X.value)]
829
- }) : m(re, null, [e.prependAvatar && m(ue, {
830
- key: "prepend-avatar",
831
- density: e.density,
832
- image: e.prependAvatar
833
- }, null), e.prependIcon && m(ce, {
834
- key: "prepend-icon",
835
- density: e.density,
836
- icon: e.prependIcon
837
- }, null)]), m("div", {
838
- class: "v-list-item__spacer"
839
- }, null)]), m("div", {
840
- class: "v-list-item__content",
841
- "data-no-activator": ""
842
- }, [J && m(Ft, {
843
- key: "title"
844
- }, {
845
- default: () => [n.title?.({
846
- title: e.title
847
- }) ?? oe(e.title)]
848
- }), We && m(xt, {
849
- key: "subtitle"
850
- }, {
851
- default: () => [n.subtitle?.({
852
- subtitle: e.subtitle
853
- }) ?? oe(e.subtitle)]
854
- }), n.default?.(X.value)]), Ze && m("div", {
855
- key: "append",
856
- class: "v-list-item__append"
857
- }, [n.append ? m(ee, {
858
- key: "append-defaults",
859
- disabled: !se,
860
- defaults: {
861
- VAvatar: {
862
- density: e.density,
863
- image: e.appendAvatar
864
- },
865
- VIcon: {
866
- density: e.density,
867
- icon: e.appendIcon
868
- },
869
- VListItemAction: {
870
- end: !0
871
- }
872
- }
873
- }, {
874
- default: () => [n.append?.(X.value)]
875
- }) : m(re, null, [e.appendIcon && m(ce, {
876
- key: "append-icon",
877
- density: e.density,
878
- icon: e.appendIcon
879
- }, null), e.appendAvatar && m(ue, {
880
- key: "append-avatar",
881
- density: e.density,
882
- image: e.appendAvatar
883
- }, null)]), m("div", {
884
- class: "v-list-item__spacer"
885
- }, null)])]
886
- }), [[it("ripple"), A.value && e.ripple]]);
887
- }), {
888
- activate: o,
889
- isActivated: d,
890
- isGroupActivator: b,
891
- isSelected: v,
892
- list: I,
893
- select: y,
894
- root: r,
895
- id: S,
896
- link: t
897
- };
898
- }
899
- }), Gt = E({
900
- color: String,
901
- inset: Boolean,
902
- sticky: Boolean,
903
- title: String,
904
- ...D(),
905
- ...G()
906
- }, "VListSubheader"), Dt = M()({
907
- name: "VListSubheader",
908
- props: Gt(),
909
- setup(e, l) {
910
- let {
911
- slots: a
912
- } = l;
913
- const {
914
- textColorClasses: n,
915
- textColorStyles: s
916
- } = bt(k(e, "color"));
917
- return N(() => {
918
- const t = !!(a.default || e.title);
919
- return m(e.tag, {
920
- class: ["v-list-subheader", {
921
- "v-list-subheader--inset": e.inset,
922
- "v-list-subheader--sticky": e.sticky
923
- }, n.value, e.class],
924
- style: [{
925
- textColorStyles: s
926
- }, e.style]
927
- }, {
928
- default: () => [t && m("div", {
929
- class: "v-list-subheader__text"
930
- }, [a.default?.() ?? e.title])]
931
- });
932
- }), {};
933
- }
934
- }), Rt = E({
935
- items: Array,
936
- returnObject: Boolean
937
- }, "VListChildren"), De = M()({
938
- name: "VListChildren",
939
- props: Rt(),
940
- setup(e, l) {
941
- let {
942
- slots: a
943
- } = l;
944
- return Be(), () => a.default?.() ?? e.items?.map((n) => {
945
- let {
946
- children: s,
947
- props: t,
948
- type: i,
949
- raw: o
950
- } = n;
951
- if (i === "divider")
952
- return a.divider?.({
953
- props: t
954
- }) ?? m(Ct, t, null);
955
- if (i === "subheader")
956
- return a.subheader?.({
957
- props: t
958
- }) ?? m(Dt, t, null);
959
- const d = {
960
- subtitle: a.subtitle ? (c) => a.subtitle?.({
961
- ...c,
962
- item: o
963
- }) : void 0,
964
- prepend: a.prepend ? (c) => a.prepend?.({
965
- ...c,
966
- item: o
967
- }) : void 0,
968
- append: a.append ? (c) => a.append?.({
969
- ...c,
970
- item: o
971
- }) : void 0,
972
- title: a.title ? (c) => a.title?.({
973
- ...c,
974
- item: o
975
- }) : void 0
976
- }, y = de.filterProps(t);
977
- return s ? m(de, Q({
978
- value: t?.value
979
- }, y), {
980
- activator: (c) => {
981
- let {
982
- props: v
983
- } = c;
984
- const h = {
985
- ...t,
986
- ...v,
987
- value: e.returnObject ? o : t.value
988
- };
989
- return a.header ? a.header({
990
- props: h
991
- }) : m(ve, h, d);
992
- },
993
- default: () => m(De, {
994
- items: s,
995
- returnObject: e.returnObject
996
- }, a)
997
- }) : a.item ? a.item({
998
- props: t
999
- }) : m(ve, Q(t, {
1000
- value: e.returnObject ? o : t.value
1001
- }), d);
1002
- });
1003
- }
1004
- }), Ut = E({
1005
- items: {
1006
- type: Array,
1007
- default: () => []
1008
- },
1009
- itemTitle: {
1010
- type: [String, Array, Function],
1011
- default: "title"
1012
- },
1013
- itemValue: {
1014
- type: [String, Array, Function],
1015
- default: "value"
1016
- },
1017
- itemChildren: {
1018
- type: [Boolean, String, Array, Function],
1019
- default: "children"
1020
- },
1021
- itemProps: {
1022
- type: [Boolean, String, Array, Function],
1023
- default: "props"
1024
- },
1025
- returnObject: Boolean,
1026
- valueComparator: Function
1027
- }, "list-items");
1028
- function ne(e, l) {
1029
- const a = L(l, e.itemTitle, l), n = L(l, e.itemValue, a), s = L(l, e.itemChildren), t = e.itemProps === !0 ? typeof l == "object" && l != null && !Array.isArray(l) ? "children" in l ? ke(l, ["children"]) : l : void 0 : L(l, e.itemProps), i = {
1030
- title: a,
1031
- value: n,
1032
- ...t
1033
- };
1034
- return {
1035
- title: String(i.title ?? ""),
1036
- value: i.value,
1037
- props: i,
1038
- children: Array.isArray(s) ? Re(e, s) : void 0,
1039
- raw: l
1040
- };
1041
- }
1042
- function Re(e, l) {
1043
- const a = pe(e, ["itemTitle", "itemValue", "itemChildren", "itemProps", "returnObject", "valueComparator"]), n = [];
1044
- for (const s of l)
1045
- n.push(ne(a, s));
1046
- return n;
1047
- }
1048
- function Qt(e) {
1049
- const l = g(() => Re(e, e.items)), a = g(() => l.value.some((o) => o.value === null)), n = B(/* @__PURE__ */ new Map()), s = B([]);
1050
- rt(() => {
1051
- const o = l.value, d = /* @__PURE__ */ new Map(), y = [];
1052
- for (let c = 0; c < o.length; c++) {
1053
- const v = o[c];
1054
- if (be(v.value) || v.value === null) {
1055
- let h = d.get(v.value);
1056
- h || (h = [], d.set(v.value, h)), h.push(v);
1057
- } else
1058
- y.push(v);
1059
- }
1060
- n.value = d, s.value = y;
1061
- });
1062
- function t(o) {
1063
- const d = n.value, y = l.value, c = s.value, v = a.value, h = e.returnObject, b = !!e.valueComparator, r = e.valueComparator || ot, u = pe(e, ["itemTitle", "itemValue", "itemChildren", "itemProps", "returnObject", "valueComparator"]), f = [];
1064
- e: for (const S of o) {
1065
- if (!v && S === null) continue;
1066
- if (h && typeof S == "string") {
1067
- f.push(ne(u, S));
1068
- continue;
1069
- }
1070
- const I = d.get(S);
1071
- if (b || !I) {
1072
- for (const V of b ? y : c)
1073
- if (r(S, V.value)) {
1074
- f.push(V);
1075
- continue e;
1076
- }
1077
- f.push(ne(u, S));
1078
- continue;
1079
- }
1080
- f.push(...I);
1081
- }
1082
- return f;
1083
- }
1084
- function i(o) {
1085
- return e.returnObject ? o.map((d) => {
1086
- let {
1087
- raw: y
1088
- } = d;
1089
- return y;
1090
- }) : o.map((d) => {
1091
- let {
1092
- value: y
1093
- } = d;
1094
- return y;
1095
- });
1096
- }
1097
- return {
1098
- items: l,
1099
- transformIn: t,
1100
- transformOut: i
1101
- };
1102
- }
1103
- function Kt(e, l) {
1104
- const a = L(l, e.itemType, "item"), n = be(l) ? l : L(l, e.itemTitle), s = L(l, e.itemValue, void 0), t = L(l, e.itemChildren), i = e.itemProps === !0 ? ke(l, ["children"]) : L(l, e.itemProps), o = {
1105
- title: n,
1106
- value: s,
1107
- ...i
1108
- };
1109
- return {
1110
- type: a,
1111
- title: o.title,
1112
- value: o.value,
1113
- props: o,
1114
- children: a === "item" && t ? Ue(e, t) : void 0,
1115
- raw: l
1116
- };
1117
- }
1118
- function Ue(e, l) {
1119
- const a = [];
1120
- for (const n of l)
1121
- a.push(Kt(e, n));
1122
- return a;
1123
- }
1124
- function $t(e) {
1125
- return {
1126
- items: g(() => Ue(e, e.items))
1127
- };
1128
- }
1129
- const Yt = E({
1130
- baseColor: String,
1131
- /* @deprecated */
1132
- activeColor: String,
1133
- activeClass: String,
1134
- bgColor: String,
1135
- disabled: Boolean,
1136
- expandIcon: _,
1137
- collapseIcon: _,
1138
- lines: {
1139
- type: [Boolean, String],
1140
- default: "one"
1141
- },
1142
- slim: Boolean,
1143
- nav: Boolean,
1144
- "onClick:open": x(),
1145
- "onClick:select": x(),
1146
- "onUpdate:opened": x(),
1147
- ..._t({
1148
- selectStrategy: "single-leaf",
1149
- openStrategy: "list"
1150
- }),
1151
- ...Te(),
1152
- ...D(),
1153
- ...Ie(),
1154
- ...Ae(),
1155
- ...Ee(),
1156
- itemType: {
1157
- type: String,
1158
- default: "type"
1159
- },
1160
- ...Ut(),
1161
- ..._e(),
1162
- ...G(),
1163
- ...he(),
1164
- ...we({
1165
- variant: "text"
1166
- })
1167
- }, "VList"), en = M()({
1168
- name: "VList",
1169
- props: Yt(),
1170
- emits: {
1171
- "update:selected": (e) => !0,
1172
- "update:activated": (e) => !0,
1173
- "update:opened": (e) => !0,
1174
- "click:open": (e) => !0,
1175
- "click:activate": (e) => !0,
1176
- "click:select": (e) => !0
1177
- },
1178
- setup(e, l) {
1179
- let {
1180
- slots: a
1181
- } = l;
1182
- const {
1183
- items: n
1184
- } = $t(e), {
1185
- themeClasses: s
1186
- } = Se(e), {
1187
- backgroundColorClasses: t,
1188
- backgroundColorStyles: i
1189
- } = pt(k(e, "bgColor")), {
1190
- borderClasses: o
1191
- } = Pe(e), {
1192
- densityClasses: d
1193
- } = Ce(e), {
1194
- dimensionStyles: y
1195
- } = Ve(e), {
1196
- elevationClasses: c
1197
- } = Le(e), {
1198
- roundedClasses: v
1199
- } = Oe(e), {
1200
- children: h,
1201
- open: b,
1202
- parents: r,
1203
- select: u,
1204
- getPath: f
1205
- } = Et(e), S = g(() => e.lines ? `v-list--${e.lines}-line` : void 0), I = k(e, "activeColor"), V = k(e, "baseColor"), j = k(e, "color");
1206
- Be(), ut({
1207
- VListGroup: {
1208
- activeColor: I,
1209
- baseColor: V,
1210
- color: j,
1211
- expandIcon: k(e, "expandIcon"),
1212
- collapseIcon: k(e, "collapseIcon")
1213
- },
1214
- VListItem: {
1215
- activeClass: k(e, "activeClass"),
1216
- activeColor: I,
1217
- baseColor: V,
1218
- color: j,
1219
- density: k(e, "density"),
1220
- disabled: k(e, "disabled"),
1221
- lines: k(e, "lines"),
1222
- nav: k(e, "nav"),
1223
- slim: k(e, "slim"),
1224
- variant: k(e, "variant")
1225
- }
1226
- });
1227
- const T = B(!1), A = P();
1228
- function $(C) {
1229
- T.value = !0;
1230
- }
1231
- function Y(C) {
1232
- T.value = !1;
1233
- }
1234
- function H(C) {
1235
- !T.value && !(C.relatedTarget && A.value?.contains(C.relatedTarget)) && O();
1236
- }
1237
- function R(C) {
1238
- const q = C.target;
1239
- if (!(!A.value || ["INPUT", "TEXTAREA"].includes(q.tagName))) {
1240
- if (C.key === "ArrowDown")
1241
- O("next");
1242
- else if (C.key === "ArrowUp")
1243
- O("prev");
1244
- else if (C.key === "Home")
1245
- O("first");
1246
- else if (C.key === "End")
1247
- O("last");
1248
- else
1249
- return;
1250
- C.preventDefault();
1251
- }
1252
- }
1253
- function z(C) {
1254
- T.value = !0;
1255
- }
1256
- function O(C) {
1257
- if (A.value)
1258
- return ct(A.value, C);
1259
- }
1260
- return N(() => m(e.tag, {
1261
- ref: A,
1262
- class: ["v-list", {
1263
- "v-list--disabled": e.disabled,
1264
- "v-list--nav": e.nav,
1265
- "v-list--slim": e.slim
1266
- }, s.value, t.value, o.value, d.value, c.value, S.value, v.value, e.class],
1267
- style: [i.value, y.value, e.style],
1268
- tabindex: e.disabled ? -1 : 0,
1269
- role: "listbox",
1270
- "aria-activedescendant": void 0,
1271
- onFocusin: $,
1272
- onFocusout: Y,
1273
- onFocus: H,
1274
- onKeydown: R,
1275
- onMousedown: z
1276
- }, {
1277
- default: () => [m(De, {
1278
- items: n.value,
1279
- returnObject: e.returnObject
1280
- }, a)]
1281
- })), {
1282
- open: b,
1283
- select: u,
1284
- focus: O,
1285
- children: h,
1286
- parents: r,
1287
- getPath: f
1288
- };
1289
- }
1290
- });
1291
- Qe("css/revolugo.vlist.-Y4qkukF.css");
1292
- export {
1293
- ve as V,
1294
- en as a,
1295
- Ft as b,
1296
- Ut as m,
1297
- Qt as u
1298
- };
1299
- //# sourceMappingURL=revolugo.vlist.C2mV3Sh6.min.js.map