@revolugo/elements 6.9.3-beta.9 → 6.9.4-rc.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 (190) hide show
  1. package/dist/css/fonts.css +1 -1
  2. package/dist/css/revolugo.bdaterangepicker.OLspTh_0.css +1 -0
  3. package/dist/css/revolugo.bhoteloffersfilterbar.BebBKpCh.css +1 -0
  4. package/dist/css/revolugo.bhotelroomsdetails.c1M8WEQ1.css +1 -0
  5. package/dist/css/revolugo.bimagecarousel.B2SxWMbZ.css +1 -0
  6. package/dist/css/revolugo.bookingdetailssidebar.Cp4sLBjD.css +1 -0
  7. package/dist/css/revolugo.bstarrating.CPHKEfup.css +1 -0
  8. package/dist/css/revolugo.btag.T7X_iIkW.css +1 -0
  9. package/dist/css/revolugo.cancellationpoliciesbadge.BLInUr3-.css +1 -0
  10. package/dist/css/revolugo.creditcardform.DWne0Lnv.css +1 -0
  11. package/dist/css/revolugo.creditcardpayment.D2PE5FCt.css +1 -0
  12. package/dist/css/revolugo.fullbookingflow.Bm8JAQF7.css +1 -0
  13. package/dist/css/revolugo.hoteldescriptionview.B-RiiuPY.css +1 -0
  14. package/dist/css/revolugo.hotelofferlist.BkctzTMI.css +1 -0
  15. package/dist/css/revolugo.hoteloffersearchmenuui.ZbUh8ba2.css +1 -0
  16. package/dist/css/revolugo.hoteloffersmap.Z5DFtK0_.css +1 -0
  17. package/dist/css/revolugo.hoteloffersview.CLbnSww6.css +1 -0
  18. package/dist/css/revolugo.hotelroomofferlist.D8JlZt_N.css +1 -0
  19. package/dist/css/revolugo.hotelroomoffersbookingflow.LHa5iHB7.css +1 -0
  20. package/dist/css/revolugo.index.DK7d_h6O.css +1 -0
  21. package/dist/css/revolugo.index.XNPQF1ia.css +5 -0
  22. package/dist/css/revolugo.langpickerbtn.BGnattUJ.css +1 -0
  23. package/dist/css/revolugo.prebookform.DmCR7hLv.css +1 -0
  24. package/dist/css/revolugo.preferencesmenu.fPv_7j-1.css +1 -0
  25. package/dist/css/revolugo.termsandconditions.D8IMR9da.css +1 -0
  26. package/dist/css/revolugo.vautocomplete.CuVjyvcC.css +1 -0
  27. package/dist/css/revolugo.vbadge.C45eZpxy.css +1 -0
  28. package/dist/css/revolugo.vbtn.DpMO1Ky2.css +1 -0
  29. package/dist/css/revolugo.vcard.TERzfknI.css +1 -0
  30. package/dist/css/revolugo.vcheckboxbtn.Bp_BNQWb.css +1 -0
  31. package/dist/css/revolugo.vdialog.DwTSAOeg.css +1 -0
  32. package/dist/css/revolugo.vdivider.CTbbZwnv.css +1 -0
  33. package/dist/css/revolugo.vexpansionpanels.RsCANmDP.css +1 -0
  34. package/dist/css/revolugo.vicon.eIkh7vVK.css +1 -0
  35. package/dist/css/revolugo.vinput.BPiFMorL.css +1 -0
  36. package/dist/css/revolugo.vlabel.BvKaKg7Y.css +1 -0
  37. package/dist/css/revolugo.vlist.-Y4qkukF.css +1 -0
  38. package/dist/css/revolugo.vmenu.DvKwEp1j.css +1 -0
  39. package/dist/css/revolugo.vselect.C5CKHFYB.css +1 -0
  40. package/dist/css/revolugo.vsheet.Dmcoj8cr.css +1 -0
  41. package/dist/css/revolugo.vskeletonloader.BlK8uFkX.css +1 -0
  42. package/dist/css/revolugo.vslidegroup.ECiLCEE9.css +1 -0
  43. package/dist/css/revolugo.vsnackbar.CCfuo3ao.css +1 -0
  44. package/dist/css/revolugo.vtextarea.Dxy6uSvm.css +1 -0
  45. package/dist/css/revolugo.vtextfield.BIH_AWWP.css +1 -0
  46. package/dist/css/revolugo.vtooltip.BHXJTQ4V.css +1 -0
  47. package/dist/css/revolugo.vwindowitem.CWBhiE_Y.css +1 -0
  48. package/dist/css/{revolugo.webcomponentwrapper.BQSUxe3K.css → revolugo.webcomponentwrapper.cFJPP6Rp.css} +1 -1
  49. package/dist/index.es.min.js +1518 -1275
  50. package/dist/index.es.min.js.map +1 -1
  51. package/dist/index.min.js +5 -5
  52. package/dist/index.min.js.map +1 -1
  53. package/dist/revolugo._baseiteratee.C9fSfygW.min.js +247 -0
  54. package/dist/revolugo.banktransferdetails.HF-5whLi.min.js +373 -0
  55. package/dist/revolugo.bdaterangepicker.Dztdr7of.min.js +8327 -0
  56. package/dist/revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.WRP6nh8U.min.js +146 -0
  57. package/dist/revolugo.bhoteloffersfilterbar.riRikxpD.min.js +4901 -0
  58. package/dist/revolugo.bhotelroomsdetails.DSVvK0I7.min.js +965 -0
  59. package/dist/revolugo.bimagecarousel.0DDXWSsX.min.js +566 -0
  60. package/dist/revolugo.bookingdetailssidebar.B3nJVjzT.min.js +24 -0
  61. package/dist/revolugo.bookingdetailssidebar.HR95sw2v.min.js +870 -0
  62. package/dist/revolugo.bookingmanager.CHhySvbL.min.js +1755 -0
  63. package/dist/revolugo.bpricesummaryskeleton.vue_vue_type_script_setup_true_lang.DCBOxir-.min.js +66 -0
  64. package/dist/revolugo.bstarrating.vue_vue_type_script_setup_true_lang.D7d1JNOc.min.js +570 -0
  65. package/dist/revolugo.btag.C27GlEZ3.min.js +375 -0
  66. package/dist/revolugo.cancellationpoliciesbadge.CQ9NQZ7F.min.js +28 -0
  67. package/dist/revolugo.cancellationpoliciesbadge.D7VDRPmO.min.js +198 -0
  68. package/dist/revolugo.cancellationpolicieslist.DUrr7Myp.min.js +25 -0
  69. package/dist/revolugo.cancellationpolicieslist.IKkTYxdE.min.js +148 -0
  70. package/dist/revolugo.cancellationpolicieslist.props.s6oWxIxG.min.js +21 -0
  71. package/dist/revolugo.case-transformers.Blb5hegY.min.js +123 -0
  72. package/dist/revolugo.common.D-l8b0V5.min.js +10 -0
  73. package/dist/{revolugo.creditcardstripeform.B8KtVBUI.min.js → revolugo.creditcardform.CejFX150.min.js} +886 -888
  74. package/dist/revolugo.creditcardform.Dx00l01z.min.js +24 -0
  75. package/dist/revolugo.creditcardpayment.CkfC2xTo.min.js +885 -0
  76. package/dist/revolugo.creditcardpayment.DZf0q5_n.min.js +24 -0
  77. package/dist/revolugo.currencypicker.B9c-AV8V.min.js +328 -0
  78. package/dist/revolugo.currencypickerbtn.B_lw6N3Y.min.js +24 -0
  79. package/dist/revolugo.currencypickerbtn.edi3iO6h.min.js +157 -0
  80. package/dist/revolugo.dates.DiE5ynTe.min.js +31 -0
  81. package/dist/revolugo.defaultsdeep.EmfuGqBQ.min.js +104 -0
  82. package/dist/{revolugo.dialog-attach.e4eWyf04.min.js → revolugo.dialog-attach.C4Yvk6WJ.min.js} +2 -2
  83. package/dist/revolugo.dialog-transition.Dly9KKqO.min.js +111 -0
  84. package/dist/revolugo.fastbookingflow.DPOX_gos.min.js +34 -0
  85. package/dist/revolugo.forwardrefs.VVhh1qV3.min.js +70 -0
  86. package/dist/revolugo.fullbookingflow.DSJE_kaM.min.js +429 -0
  87. package/dist/revolugo.hotel-offer-request.C9zwgVPt.min.js +98 -0
  88. package/dist/revolugo.hoteldescriptionview.Dtd-_3_8.min.js +24 -0
  89. package/dist/revolugo.hoteldescriptionview.kERJQPWm.min.js +2738 -0
  90. package/dist/revolugo.hotelofferitemlayout.vue_vue_type_script_setup_true_lang.CiHBAV7m.min.js +239 -0
  91. package/dist/revolugo.hotelofferlist.BC-TSjS6.min.js +24 -0
  92. package/dist/revolugo.hotelofferlist.D2AXSf4v.min.js +5640 -0
  93. package/dist/revolugo.hotelofferrequestcreator.props.BeQuCTZy.min.js +44 -0
  94. package/dist/revolugo.hoteloffersearchmenu.BODV4ZIe.min.js +202 -0
  95. package/dist/revolugo.hoteloffersearchmenuui.DqWHAurZ.min.js +829 -0
  96. package/dist/revolugo.hoteloffersmap.C6nn7LXn.min.js +8330 -0
  97. package/dist/revolugo.hoteloffersmap.Db9NNgcN.min.js +24 -0
  98. package/dist/revolugo.hoteloffersview.BAwQcocI.min.js +19 -0
  99. package/dist/revolugo.hoteloffersview.CIVNGmGO.min.js +616 -0
  100. package/dist/revolugo.hotelroomofferlist.C9y91Ya3.min.js +2799 -0
  101. package/dist/revolugo.hotelroomofferlist.CiBIB0Pb.min.js +24 -0
  102. package/dist/revolugo.hotelroomofferrequestcreator.props.2Sq_iptZ.min.js +171 -0
  103. package/dist/revolugo.hotelroomoffersbookingflow.BS4Fa2EH.min.js +1281 -0
  104. package/dist/revolugo.hotelroomoffersearchmenu.CXgExPhR.min.js +25 -0
  105. package/dist/revolugo.hotelroomoffersearchmenu.x_--4RXV.min.js +231 -0
  106. package/dist/revolugo.hotelroomoffersview.BzmRXy0a.min.js +290 -0
  107. package/dist/revolugo.hotelroomoffersview.CFo6k7zm.min.js +24 -0
  108. package/dist/revolugo.index.CDNx7Tg4.min.js +67 -0
  109. package/dist/revolugo.index.DZEISB0K.min.js +1232 -0
  110. package/dist/{revolugo.index.wc.CiJw1SpW.min.js → revolugo.index.wc.DLkeXtka.min.js} +4659 -4637
  111. package/dist/revolugo.langpicker.D7zIuy78.min.js +99 -0
  112. package/dist/revolugo.langpickerbtn.BF7sml8K.min.js +29 -0
  113. package/dist/revolugo.langpickerbtn.DMcy_gHZ.min.js +131 -0
  114. package/dist/revolugo.min.js +1 -1
  115. package/dist/revolugo.parsed-props.B5g9_9k5.min.js +40 -0
  116. package/dist/revolugo.pathify.DL0POvNz.min.js +36 -0
  117. package/dist/revolugo.prebookform.BMEaruyl.min.js +1527 -0
  118. package/dist/revolugo.prebookform.BVyTAnc9.min.js +24 -0
  119. package/dist/revolugo.preferencesmenu.5pUjkA0F.min.js +24 -0
  120. package/dist/revolugo.preferencesmenu.CfUC3L6C.min.js +261 -0
  121. package/dist/revolugo.roominglisteditor.DLWeU6Ct.min.js +385 -0
  122. package/dist/revolugo.roominglisteditor.L6CmotRz.min.js +24 -0
  123. package/dist/revolugo.rounded.C-2ilaaW.min.js +68 -0
  124. package/dist/revolugo.ssrboot.D7k4-YG4.min.js +18 -0
  125. package/dist/revolugo.storybooktoolbar.CTe_QwGW.min.js +881 -0
  126. package/dist/revolugo.termsandconditions.Cue6Dsm7.min.js +404 -0
  127. package/dist/revolugo.termsandconditions.DBq-dEuI.min.js +23 -0
  128. package/dist/revolugo.use-breakpoint-service.DsQuZJRM.min.js +39 -0
  129. package/dist/revolugo.use-dialog-attach.DLdl8iIG.min.js +16 -0
  130. package/dist/revolugo.use-html-element.c9F9oVPw.min.js +11 -0
  131. package/dist/revolugo.vautocomplete.Q2U5ECgn.min.js +445 -0
  132. package/dist/revolugo.vbadge.D-lbOD0r.min.js +112 -0
  133. package/dist/revolugo.vbtn.B-LYC8rJ.min.js +398 -0
  134. package/dist/revolugo.vcard.ZlYB5HOk.min.js +313 -0
  135. package/dist/revolugo.vcheckboxbtn.BGpOwRWV.min.js +478 -0
  136. package/dist/revolugo.vdialog.DlAgRbIv.min.js +133 -0
  137. package/dist/revolugo.vdivider.D1ITKKuu.min.js +77 -0
  138. package/dist/revolugo.vexpansionpanels.D8TtnQrF.min.js +262 -0
  139. package/dist/revolugo.vform.gu3frP5W.min.js +46 -0
  140. package/dist/revolugo.vicon.mrg8OisO.min.js +105 -0
  141. package/dist/revolugo.vinput.BowTI8jK.min.js +463 -0
  142. package/dist/revolugo.vlabel.BjtrjyZZ.min.js +48 -0
  143. package/dist/revolugo.vlist.BwlPoH0e.min.js +1299 -0
  144. package/dist/revolugo.vmenu.Dasw1a1s.min.js +145 -0
  145. package/dist/revolugo.vselect.B4IzM260.min.js +660 -0
  146. package/dist/revolugo.vsheet.CDgBUxHk.min.js +72 -0
  147. package/dist/revolugo.vskeletonloader.DgIjR-8k.min.js +136 -0
  148. package/dist/revolugo.vslidegroup.BV7NJuLN.min.js +325 -0
  149. package/dist/revolugo.vsnackbar.DFnMGJQg.min.js +198 -0
  150. package/dist/revolugo.vspacer.DqnVrVYg.min.js +7 -0
  151. package/dist/revolugo.vtextarea.CgekaBze.min.js +2092 -0
  152. package/dist/revolugo.vtextfield.BhmuZsP7.min.js +501 -0
  153. package/dist/{revolugo.vtoolbar.Ctwu8OKs.min.js → revolugo.vtoolbar.CMwcpp3v.min.js} +44 -42
  154. package/dist/revolugo.vtooltip.a-r5BxqW.min.js +89 -0
  155. package/dist/revolugo.vwindowitem.BHzrfo73.min.js +317 -0
  156. package/dist/revolugo.watch-list.BSqnQNdl.min.js +16 -0
  157. package/dist/revolugo.webcomponentwrapper.BNmjcBmh.min.js +2088 -0
  158. package/package.json +5 -5
  159. package/dist/css/revolugo.cancellationpoliciesbadge.DM3Cgr8A.css +0 -1
  160. package/dist/css/revolugo.creditcardstripeform.DN5YJSMj.css +0 -1
  161. package/dist/css/revolugo.index.ClC0OVqq.css +0 -5
  162. package/dist/css/revolugo.preferencesmenu.D2263Vn6.css +0 -1
  163. package/dist/revolugo.banktransferdetails.DFskPIBN.min.js +0 -47
  164. package/dist/revolugo.bookingdetailssidebar.BOs76Qod.min.js +0 -43
  165. package/dist/revolugo.bookingmanager.DzzQLMr9.min.js +0 -26
  166. package/dist/revolugo.cancellationpoliciesbadge.BRcM9UUl.min.js +0 -26
  167. package/dist/revolugo.cancellationpoliciesbadge.props.YZrc252e.min.js +0 -28756
  168. package/dist/revolugo.cancellationpolicieslist.B7Mf5bmE.min.js +0 -26
  169. package/dist/revolugo.creditcardstripeform.DkNqhTcH.min.js +0 -50
  170. package/dist/revolugo.currencypickerbtn.C1B6gpLV.min.js +0 -26
  171. package/dist/revolugo.fastbookingflow.VfdAOD-j.min.js +0 -36
  172. package/dist/revolugo.fullbookingflow.CFl16ykj.min.js +0 -26
  173. package/dist/revolugo.hoteldescriptionview.DTByBiNZ.min.js +0 -26
  174. package/dist/revolugo.hotelofferlist.HS8rTNwv.min.js +0 -26
  175. package/dist/revolugo.hoteloffersearchmenu.DLC5yEDD.min.js +0 -115
  176. package/dist/revolugo.hoteloffersmap.l4UaNpun.min.js +0 -26
  177. package/dist/revolugo.hoteloffersview.DxUc5TlW.min.js +0 -21
  178. package/dist/revolugo.hotelroomofferlist.ryYBtMFY.min.js +0 -26
  179. package/dist/revolugo.hotelroomoffersbookingflow.BWIa87mZ.min.js +0 -26
  180. package/dist/revolugo.hotelroomoffersearchmenu.4-HSRz_y.min.js +0 -26
  181. package/dist/revolugo.hotelroomoffersview.Df2SYo4D.min.js +0 -26
  182. package/dist/revolugo.index.Qn3FvgFh.min.js +0 -106
  183. package/dist/revolugo.langpickerbtn.rFwls9XZ.min.js +0 -31
  184. package/dist/revolugo.prebookform.D33OnpHn.min.js +0 -26
  185. package/dist/revolugo.preferencesmenu.BOWFkVY9.min.js +0 -24
  186. package/dist/revolugo.preferencesmenu.PVSL2fWE.min.js +0 -949
  187. package/dist/revolugo.roominglisteditor.gLjgOdGD.min.js +0 -26
  188. package/dist/revolugo.storybooktoolbar.DZrgGX1X.min.js +0 -838
  189. package/dist/revolugo.termsandconditions.3W9GTrVc.min.js +0 -31
  190. package/dist/revolugo.webcomponentwrapper.PTHIHE3G.min.js +0 -28624
@@ -0,0 +1,660 @@
1
+ import { V as re, c as we } from "./revolugo.vtextfield.BhmuZsP7.min.js";
2
+ import { a1 as se, a2 as Y, O as F, a as d, F as $, D as _, aU as Se, a9 as A, ac as ie, k as q, H as C, b$ as be, aT as pe, aF as le, bF as Te, W as he, bz as oe, c0 as ke, af as Pe, aS as xe, X as Ee, ad as Z, ag as Ce, a6 as ce, a7 as Ie, bY as ne, a3 as Re, aa as Oe, bW as de, bX as fe, b_ as Ae, f as De } from "./revolugo.index.wc.DLkeXtka.min.js";
3
+ import { b as Le } from "./revolugo.vinput.BowTI8jK.min.js";
4
+ import { f as _e } from "./revolugo.forwardrefs.VVhh1qV3.min.js";
5
+ import { u as Fe, m as Be, a as Me, V as ve } from "./revolugo.vlist.BwlPoH0e.min.js";
6
+ import { w as ge, u as ue, m as ye, n as He, x as Ue, o as Ne, p as qe } from "./revolugo.webcomponentwrapper.BNmjcBmh.min.js";
7
+ import { V as ze } from "./revolugo.dialog-transition.Dly9KKqO.min.js";
8
+ import { V as me } from "./revolugo.vicon.mrg8OisO.min.js";
9
+ import { V as Ke } from "./revolugo.vmenu.Dasw1a1s.min.js";
10
+ import { a as $e } from "./revolugo.vcheckboxbtn.BGpOwRWV.min.js";
11
+ import { h as Ye, a as je } from "./revolugo.index.DZEISB0K.min.js";
12
+ import { V as We } from "./revolugo.btag.C27GlEZ3.min.js";
13
+ function Ve(e) {
14
+ try {
15
+ if (typeof document < "u") {
16
+ window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
17
+ sheets: [],
18
+ components: []
19
+ };
20
+ const u = import.meta.url, a = u.slice(0, u.lastIndexOf("/") + 1) + e;
21
+ window.REVOLUGO_ELEMENTS_STYLES.sheets.push(a);
22
+ for (const r of REVOLUGO_ELEMENTS_STYLES.components)
23
+ r(a);
24
+ if (e.indexOf("fonts") >= 0) {
25
+ const r = document.createElement("link");
26
+ r.rel = "stylesheet", linK.href = a, document.head.appendChild(r);
27
+ }
28
+ }
29
+ } catch (u) {
30
+ console.error("[revolugo-elements] ", u);
31
+ }
32
+ }
33
+ const Ge = Y({
34
+ renderless: Boolean,
35
+ ...ye()
36
+ }, "VVirtualScrollItem"), Xe = se()({
37
+ name: "VVirtualScrollItem",
38
+ inheritAttrs: !1,
39
+ props: Ge(),
40
+ emits: {
41
+ "update:height": (e) => !0
42
+ },
43
+ setup(e, u) {
44
+ let {
45
+ attrs: a,
46
+ emit: r,
47
+ slots: s
48
+ } = u;
49
+ const {
50
+ resizeRef: m,
51
+ contentRect: h
52
+ } = ge(void 0, "border");
53
+ F(() => h.value?.height, (i) => {
54
+ i != null && r("update:height", i);
55
+ }), ue(() => e.renderless ? d($, null, [s.default?.({
56
+ itemRef: m
57
+ })]) : d("div", _({
58
+ ref: m,
59
+ class: ["v-virtual-scroll__item", e.class],
60
+ style: e.style
61
+ }, a), [s.default?.()]));
62
+ }
63
+ }), Je = -1, Qe = 1, ae = 100, Ze = Y({
64
+ itemHeight: {
65
+ type: [Number, String],
66
+ default: null
67
+ },
68
+ height: [Number, String]
69
+ }, "virtual");
70
+ function et(e, u) {
71
+ const a = Se(), r = A(0);
72
+ ie(() => {
73
+ r.value = parseFloat(e.itemHeight || 0);
74
+ });
75
+ const s = A(0), m = A(Math.ceil(
76
+ // Assume 16px items filling the entire screen height if
77
+ // not provided. This is probably incorrect but it minimises
78
+ // the chance of ending up with empty space at the bottom.
79
+ // The default value is set here to avoid poisoning getSize()
80
+ (parseInt(e.height) || a.height.value) / (r.value || 16)
81
+ ) || 1), h = A(0), i = A(0), n = q(), V = q();
82
+ let k = 0;
83
+ const {
84
+ resizeRef: P,
85
+ contentRect: c
86
+ } = ge();
87
+ ie(() => {
88
+ P.value = n.value;
89
+ });
90
+ const I = C(() => n.value === document.documentElement ? a.height.value : c.value?.height || parseInt(e.height) || 0), D = C(() => !!(n.value && V.value && I.value && r.value));
91
+ let T = Array.from({
92
+ length: u.value.length
93
+ }), g = Array.from({
94
+ length: u.value.length
95
+ });
96
+ const w = A(0);
97
+ let O = -1;
98
+ function j(t) {
99
+ return T[t] || r.value;
100
+ }
101
+ const x = be(() => {
102
+ const t = performance.now();
103
+ g[0] = 0;
104
+ const o = u.value.length;
105
+ for (let y = 1; y <= o - 1; y++)
106
+ g[y] = (g[y - 1] || 0) + j(y - 1);
107
+ w.value = Math.max(w.value, performance.now() - t);
108
+ }, w), W = F(D, (t) => {
109
+ t && (W(), k = V.value.offsetTop, x.immediate(), R(), ~O && he(() => {
110
+ oe && window.requestAnimationFrame(() => {
111
+ Q(O), O = -1;
112
+ });
113
+ }));
114
+ });
115
+ pe(() => {
116
+ x.clear();
117
+ });
118
+ function ee(t, o) {
119
+ const y = T[t], p = r.value;
120
+ r.value = p ? Math.min(r.value, o) : o, (y !== o || p !== r.value) && (T[t] = o, x());
121
+ }
122
+ function S(t) {
123
+ return t = le(t, 0, u.value.length - 1), g[t] || 0;
124
+ }
125
+ function G(t) {
126
+ return tt(g, t);
127
+ }
128
+ let B = 0, L = 0, z = 0;
129
+ F(I, (t, o) => {
130
+ o && (R(), t < o && requestAnimationFrame(() => {
131
+ L = 0, R();
132
+ }));
133
+ });
134
+ let M = -1;
135
+ function H() {
136
+ if (!n.value || !V.value) return;
137
+ const t = n.value.scrollTop, o = performance.now();
138
+ o - z > 500 ? (L = Math.sign(t - B), k = V.value.offsetTop) : L = t - B, B = t, z = o, window.clearTimeout(M), M = window.setTimeout(X, 500), R();
139
+ }
140
+ function X() {
141
+ !n.value || !V.value || (L = 0, z = 0, window.clearTimeout(M), R());
142
+ }
143
+ let J = -1;
144
+ function R() {
145
+ cancelAnimationFrame(J), J = requestAnimationFrame(te);
146
+ }
147
+ function te() {
148
+ if (!n.value || !I.value) return;
149
+ const t = B - k, o = Math.sign(L), y = Math.max(0, t - ae), p = le(G(y), 0, u.value.length), f = t + I.value + ae, v = le(G(f) + 1, p + 1, u.value.length);
150
+ if (
151
+ // Only update the side we're scrolling towards,
152
+ // the other side will be updated incidentally
153
+ (o !== Je || p < s.value) && (o !== Qe || v > m.value)
154
+ ) {
155
+ const E = S(s.value) - S(p), U = S(v) - S(m.value);
156
+ Math.max(E, U) > ae ? (s.value = p, m.value = v) : (p <= 0 && (s.value = p), v >= u.value.length && (m.value = v));
157
+ }
158
+ h.value = S(s.value), i.value = S(u.value.length) - S(m.value);
159
+ }
160
+ function Q(t) {
161
+ const o = S(t);
162
+ !n.value || t && !o ? O = t : n.value.scrollTop = o;
163
+ }
164
+ const l = C(() => u.value.slice(s.value, m.value).map((t, o) => ({
165
+ raw: t,
166
+ index: o + s.value,
167
+ key: Te(t) && "value" in t ? t.value : o + s.value
168
+ })));
169
+ return F(u, () => {
170
+ T = Array.from({
171
+ length: u.value.length
172
+ }), g = Array.from({
173
+ length: u.value.length
174
+ }), x.immediate(), R();
175
+ }, {
176
+ deep: !0
177
+ }), {
178
+ calculateVisibleItems: R,
179
+ containerRef: n,
180
+ markerRef: V,
181
+ computedItems: l,
182
+ paddingTop: h,
183
+ paddingBottom: i,
184
+ scrollToIndex: Q,
185
+ handleScroll: H,
186
+ handleScrollend: X,
187
+ handleItemResize: ee
188
+ };
189
+ }
190
+ function tt(e, u) {
191
+ let a = e.length - 1, r = 0, s = 0, m = null, h = -1;
192
+ if (e[a] < u)
193
+ return a;
194
+ for (; r <= a; )
195
+ if (s = r + a >> 1, m = e[s], m > u)
196
+ a = s - 1;
197
+ else if (m < u)
198
+ h = s, r = s + 1;
199
+ else return m === u ? s : r;
200
+ return h;
201
+ }
202
+ const lt = Y({
203
+ items: {
204
+ type: Array,
205
+ default: () => []
206
+ },
207
+ renderless: Boolean,
208
+ ...Ze(),
209
+ ...ye(),
210
+ ...Ne()
211
+ }, "VVirtualScroll"), nt = se()({
212
+ name: "VVirtualScroll",
213
+ props: lt(),
214
+ setup(e, u) {
215
+ let {
216
+ slots: a
217
+ } = u;
218
+ const r = ke("VVirtualScroll"), {
219
+ dimensionStyles: s
220
+ } = He(e), {
221
+ calculateVisibleItems: m,
222
+ containerRef: h,
223
+ markerRef: i,
224
+ handleScroll: n,
225
+ handleScrollend: V,
226
+ handleItemResize: k,
227
+ scrollToIndex: P,
228
+ paddingTop: c,
229
+ paddingBottom: I,
230
+ computedItems: D
231
+ } = et(e, Pe(e, "items"));
232
+ return xe(() => e.renderless, () => {
233
+ function T() {
234
+ const w = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1) ? "addEventListener" : "removeEventListener";
235
+ h.value === document.documentElement ? (document[w]("scroll", n, {
236
+ passive: !0
237
+ }), document[w]("scrollend", V)) : (h.value?.[w]("scroll", n, {
238
+ passive: !0
239
+ }), h.value?.[w]("scrollend", V));
240
+ }
241
+ Ee(() => {
242
+ h.value = Ue(r.vnode.el, !0), T(!0);
243
+ }), pe(T);
244
+ }), ue(() => {
245
+ const T = D.value.map((g) => d(Xe, {
246
+ key: g.key,
247
+ renderless: e.renderless,
248
+ "onUpdate:height": (w) => k(g.index, w)
249
+ }, {
250
+ default: (w) => a.default?.({
251
+ item: g.raw,
252
+ index: g.index,
253
+ ...w
254
+ })
255
+ }));
256
+ return e.renderless ? d($, null, [d("div", {
257
+ ref: i,
258
+ class: "v-virtual-scroll__spacer",
259
+ style: {
260
+ paddingTop: Z(c.value)
261
+ }
262
+ }, null), T, d("div", {
263
+ class: "v-virtual-scroll__spacer",
264
+ style: {
265
+ paddingBottom: Z(I.value)
266
+ }
267
+ }, null)]) : d("div", {
268
+ ref: h,
269
+ class: ["v-virtual-scroll", e.class],
270
+ onScrollPassive: n,
271
+ onScrollend: V,
272
+ style: [s.value, e.style]
273
+ }, [d("div", {
274
+ ref: i,
275
+ class: "v-virtual-scroll__container",
276
+ style: {
277
+ paddingTop: Z(c.value),
278
+ paddingBottom: Z(I.value)
279
+ }
280
+ }, [T])]);
281
+ }), {
282
+ calculateVisibleItems: m,
283
+ scrollToIndex: P
284
+ };
285
+ }
286
+ });
287
+ function at(e, u) {
288
+ const a = A(!1);
289
+ let r;
290
+ function s(i) {
291
+ cancelAnimationFrame(r), a.value = !0, r = requestAnimationFrame(() => {
292
+ r = requestAnimationFrame(() => {
293
+ a.value = !1;
294
+ });
295
+ });
296
+ }
297
+ async function m() {
298
+ await new Promise((i) => requestAnimationFrame(i)), await new Promise((i) => requestAnimationFrame(i)), await new Promise((i) => requestAnimationFrame(i)), await new Promise((i) => {
299
+ if (a.value) {
300
+ const n = F(a, () => {
301
+ n(), i();
302
+ });
303
+ } else i();
304
+ });
305
+ }
306
+ async function h(i) {
307
+ if (i.key === "Tab" && u.value?.focus(), !["PageDown", "PageUp", "Home", "End"].includes(i.key)) return;
308
+ const n = e.value?.$el;
309
+ if (!n) return;
310
+ (i.key === "Home" || i.key === "End") && n.scrollTo({
311
+ top: i.key === "Home" ? 0 : n.scrollHeight,
312
+ behavior: "smooth"
313
+ }), await m();
314
+ const V = n.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");
315
+ if (i.key === "PageDown" || i.key === "Home") {
316
+ const k = n.getBoundingClientRect().top;
317
+ for (const P of V)
318
+ if (P.getBoundingClientRect().top >= k) {
319
+ P.focus();
320
+ break;
321
+ }
322
+ } else {
323
+ const k = n.getBoundingClientRect().bottom;
324
+ for (const P of [...V].reverse())
325
+ if (P.getBoundingClientRect().bottom <= k) {
326
+ P.focus();
327
+ break;
328
+ }
329
+ }
330
+ }
331
+ return {
332
+ onScrollPassive: s,
333
+ onKeydown: h
334
+ };
335
+ }
336
+ const ot = Y({
337
+ chips: Boolean,
338
+ closableChips: Boolean,
339
+ closeText: {
340
+ type: String,
341
+ default: "$vuetify.close"
342
+ },
343
+ openText: {
344
+ type: String,
345
+ default: "$vuetify.open"
346
+ },
347
+ eager: Boolean,
348
+ hideNoData: Boolean,
349
+ hideSelected: Boolean,
350
+ listProps: {
351
+ type: Object
352
+ },
353
+ menu: Boolean,
354
+ menuIcon: {
355
+ type: Re,
356
+ default: "$dropdown"
357
+ },
358
+ menuProps: {
359
+ type: Object
360
+ },
361
+ multiple: Boolean,
362
+ noDataText: {
363
+ type: String,
364
+ default: "$vuetify.noDataText"
365
+ },
366
+ openOnClear: Boolean,
367
+ itemColor: String,
368
+ ...Be({
369
+ itemChildren: !1
370
+ })
371
+ }, "Select"), st = Y({
372
+ ...ot(),
373
+ ...Oe(we({
374
+ modelValue: null,
375
+ role: "combobox"
376
+ }), ["validationValue", "dirty", "appendInnerIcon"]),
377
+ ...qe({
378
+ transition: {
379
+ component: ze
380
+ }
381
+ })
382
+ }, "VSelect"), Vt = se()({
383
+ name: "VSelect",
384
+ props: st(),
385
+ emits: {
386
+ "update:focused": (e) => !0,
387
+ "update:modelValue": (e) => !0,
388
+ "update:menu": (e) => !0
389
+ },
390
+ setup(e, u) {
391
+ let {
392
+ slots: a
393
+ } = u;
394
+ const {
395
+ t: r
396
+ } = Ce(), s = q(), m = q(), h = q(), i = ce(e, "menu"), n = C({
397
+ get: () => i.value,
398
+ set: (l) => {
399
+ i.value && !l && m.value?.ΨopenChildren.size || (i.value = l);
400
+ }
401
+ }), {
402
+ items: V,
403
+ transformIn: k,
404
+ transformOut: P
405
+ } = Fe(e), c = ce(e, "modelValue", [], (l) => k(l === null ? [null] : Ie(l)), (l) => {
406
+ const t = P(l);
407
+ return e.multiple ? t : t[0] ?? null;
408
+ }), I = C(() => typeof e.counterValue == "function" ? e.counterValue(c.value) : typeof e.counterValue == "number" ? e.counterValue : c.value.length), D = Le(e), T = C(() => c.value.map((l) => l.value)), g = A(!1), w = C(() => n.value ? e.closeText : e.openText);
409
+ let O = "", j;
410
+ const x = C(() => e.hideSelected ? V.value.filter((l) => !c.value.some((t) => (e.valueComparator || ne)(t, l))) : V.value), W = C(() => e.hideNoData && !x.value.length || D.isReadonly.value || D.isDisabled.value), ee = C(() => ({
411
+ ...e.menuProps,
412
+ activatorProps: {
413
+ ...e.menuProps?.activatorProps || {},
414
+ "aria-haspopup": "listbox"
415
+ // Set aria-haspopup to 'listbox'
416
+ }
417
+ })), S = q(), G = at(S, s);
418
+ function B(l) {
419
+ e.openOnClear && (n.value = !0);
420
+ }
421
+ function L() {
422
+ W.value || (n.value = !n.value);
423
+ }
424
+ function z(l) {
425
+ de(l) && M(l);
426
+ }
427
+ function M(l) {
428
+ if (!l.key || D.isReadonly.value) return;
429
+ ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(l.key) && l.preventDefault(), ["Enter", "ArrowDown", " "].includes(l.key) && (n.value = !0), ["Escape", "Tab"].includes(l.key) && (n.value = !1), l.key === "Home" ? S.value?.focus("first") : l.key === "End" && S.value?.focus("last");
430
+ const t = 1e3;
431
+ if (!de(l)) return;
432
+ const o = performance.now();
433
+ o - j > t && (O = ""), O += l.key.toLowerCase(), j = o;
434
+ const y = V.value.find((p) => p.title.toLowerCase().startsWith(O));
435
+ if (y !== void 0) {
436
+ c.value = [y];
437
+ const p = x.value.indexOf(y);
438
+ oe && window.requestAnimationFrame(() => {
439
+ p >= 0 && h.value?.scrollToIndex(p);
440
+ });
441
+ }
442
+ }
443
+ function H(l) {
444
+ let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
445
+ if (!l.props.disabled)
446
+ if (e.multiple) {
447
+ const o = c.value.findIndex((p) => (e.valueComparator || ne)(p.value, l.value)), y = t ?? !~o;
448
+ if (~o) {
449
+ const p = y ? [...c.value, l] : [...c.value];
450
+ p.splice(o, 1), c.value = p;
451
+ } else y && (c.value = [...c.value, l]);
452
+ } else {
453
+ const o = t !== !1;
454
+ c.value = o ? [l] : [], he(() => {
455
+ n.value = !1;
456
+ });
457
+ }
458
+ }
459
+ function X(l) {
460
+ S.value?.$el.contains(l.relatedTarget) || (n.value = !1);
461
+ }
462
+ function J() {
463
+ e.eager && h.value?.calculateVisibleItems();
464
+ }
465
+ function R() {
466
+ g.value && s.value?.focus();
467
+ }
468
+ function te(l) {
469
+ g.value = !0;
470
+ }
471
+ function Q(l) {
472
+ if (l == null) c.value = [];
473
+ else if (fe(s.value, ":autofill") || fe(s.value, ":-webkit-autofill")) {
474
+ const t = V.value.find((o) => o.title === l);
475
+ t && H(t);
476
+ } else s.value && (s.value.value = "");
477
+ }
478
+ return F(n, () => {
479
+ if (!e.hideSelected && n.value && c.value.length) {
480
+ const l = x.value.findIndex((t) => c.value.some((o) => (e.valueComparator || ne)(o.value, t.value)));
481
+ oe && window.requestAnimationFrame(() => {
482
+ l >= 0 && h.value?.scrollToIndex(l);
483
+ });
484
+ }
485
+ }), F(() => e.items, (l, t) => {
486
+ n.value || g.value && !t.length && l.length && (n.value = !0);
487
+ }), ue(() => {
488
+ const l = !!(e.chips || a.chip), t = !!(!e.hideNoData || x.value.length || a["prepend-item"] || a["append-item"] || a["no-data"]), o = c.value.length > 0, y = re.filterProps(e), p = o || !g.value && e.label && !e.persistentPlaceholder ? void 0 : e.placeholder;
489
+ return d(re, _({
490
+ ref: s
491
+ }, y, {
492
+ modelValue: c.value.map((f) => f.props.value).join(", "),
493
+ "onUpdate:modelValue": Q,
494
+ focused: g.value,
495
+ "onUpdate:focused": (f) => g.value = f,
496
+ validationValue: c.externalValue,
497
+ counterValue: I.value,
498
+ dirty: o,
499
+ class: ["v-select", {
500
+ "v-select--active-menu": n.value,
501
+ "v-select--chips": !!e.chips,
502
+ [`v-select--${e.multiple ? "multiple" : "single"}`]: !0,
503
+ "v-select--selected": c.value.length,
504
+ "v-select--selection-slot": !!a.selection
505
+ }, e.class],
506
+ style: e.style,
507
+ inputmode: "none",
508
+ placeholder: p,
509
+ "onClick:clear": B,
510
+ "onMousedown:control": L,
511
+ onBlur: X,
512
+ onKeydown: M,
513
+ "aria-label": r(w.value),
514
+ title: r(w.value)
515
+ }), {
516
+ ...a,
517
+ default: () => d($, null, [d(Ke, _({
518
+ ref: m,
519
+ modelValue: n.value,
520
+ "onUpdate:modelValue": (f) => n.value = f,
521
+ activator: "parent",
522
+ contentClass: "v-select__content",
523
+ disabled: W.value,
524
+ eager: e.eager,
525
+ maxHeight: 310,
526
+ openOnClick: !1,
527
+ closeOnContentClick: !1,
528
+ transition: e.transition,
529
+ onAfterEnter: J,
530
+ onAfterLeave: R
531
+ }, ee.value), {
532
+ default: () => [t && d(Me, _({
533
+ ref: S,
534
+ selected: T.value,
535
+ selectStrategy: e.multiple ? "independent" : "single-independent",
536
+ onMousedown: (f) => f.preventDefault(),
537
+ onKeydown: z,
538
+ onFocusin: te,
539
+ tabindex: "-1",
540
+ "aria-live": "polite",
541
+ color: e.itemColor ?? e.color
542
+ }, G, e.listProps), {
543
+ default: () => [a["prepend-item"]?.(), !x.value.length && !e.hideNoData && (a["no-data"]?.() ?? d(ve, {
544
+ key: "no-data",
545
+ title: r(e.noDataText)
546
+ }, null)), d(nt, {
547
+ ref: h,
548
+ renderless: !0,
549
+ items: x.value
550
+ }, {
551
+ default: (f) => {
552
+ let {
553
+ item: v,
554
+ index: E,
555
+ itemRef: U
556
+ } = f;
557
+ const N = _(v.props, {
558
+ ref: U,
559
+ key: v.value,
560
+ onClick: () => H(v, null)
561
+ });
562
+ return a.item?.({
563
+ item: v,
564
+ index: E,
565
+ props: N
566
+ }) ?? d(ve, _(N, {
567
+ role: "option"
568
+ }), {
569
+ prepend: (K) => {
570
+ let {
571
+ isSelected: b
572
+ } = K;
573
+ return d($, null, [e.multiple && !e.hideSelected ? d($e, {
574
+ key: v.value,
575
+ modelValue: b,
576
+ ripple: !1,
577
+ tabindex: "-1"
578
+ }, null) : void 0, v.props.prependAvatar && d(Ye, {
579
+ image: v.props.prependAvatar
580
+ }, null), v.props.prependIcon && d(me, {
581
+ icon: v.props.prependIcon
582
+ }, null)]);
583
+ }
584
+ });
585
+ }
586
+ }), a["append-item"]?.()]
587
+ })]
588
+ }), c.value.map((f, v) => {
589
+ function E(b) {
590
+ b.stopPropagation(), b.preventDefault(), H(f, !1);
591
+ }
592
+ const U = {
593
+ "onClick:close": E,
594
+ onKeydown(b) {
595
+ b.key !== "Enter" && b.key !== " " || (b.preventDefault(), b.stopPropagation(), E(b));
596
+ },
597
+ onMousedown(b) {
598
+ b.preventDefault(), b.stopPropagation();
599
+ },
600
+ modelValue: !0,
601
+ "onUpdate:modelValue": void 0
602
+ }, N = l ? !!a.chip : !!a.selection, K = N ? Ae(l ? a.chip({
603
+ item: f,
604
+ index: v,
605
+ props: U
606
+ }) : a.selection({
607
+ item: f,
608
+ index: v
609
+ })) : void 0;
610
+ if (!(N && !K))
611
+ return d("div", {
612
+ key: f.value,
613
+ class: "v-select__selection"
614
+ }, [l ? a.chip ? d(je, {
615
+ key: "chip-defaults",
616
+ defaults: {
617
+ VChip: {
618
+ closable: e.closableChips,
619
+ size: "small",
620
+ text: f.title
621
+ }
622
+ }
623
+ }, {
624
+ default: () => [K]
625
+ }) : d(We, _({
626
+ key: "chip",
627
+ closable: e.closableChips,
628
+ size: "small",
629
+ text: f.title,
630
+ disabled: f.props.disabled
631
+ }, U), null) : K ?? d("span", {
632
+ class: "v-select__selection-text"
633
+ }, [f.title, e.multiple && v < c.value.length - 1 && d("span", {
634
+ class: "v-select__selection-comma"
635
+ }, [De(",")])])]);
636
+ })]),
637
+ "append-inner": function() {
638
+ for (var f = arguments.length, v = new Array(f), E = 0; E < f; E++)
639
+ v[E] = arguments[E];
640
+ return d($, null, [a["append-inner"]?.(...v), e.menuIcon ? d(me, {
641
+ class: "v-select__menu-icon",
642
+ icon: e.menuIcon
643
+ }, null) : void 0]);
644
+ }
645
+ });
646
+ }), _e({
647
+ isFocused: g,
648
+ menu: n,
649
+ select: H
650
+ }, s);
651
+ }
652
+ });
653
+ Ve("css/revolugo.vselect.C5CKHFYB.css");
654
+ export {
655
+ Vt as V,
656
+ nt as a,
657
+ ot as m,
658
+ at as u
659
+ };
660
+ //# sourceMappingURL=revolugo.vselect.B4IzM260.min.js.map