@revolugo/elements 5.5.3 → 5.5.4-beta.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (248) hide show
  1. package/dist/css/fonts.css +1 -0
  2. package/dist/css/revolugo.bdaterangepicker.DEh20utH.css +1 -0
  3. package/dist/css/revolugo.bhotelroomsdetails.4XsxkvH7.css +1 -0
  4. package/dist/css/revolugo.bhotelsearchbar.dwYB1gUC.css +1 -0
  5. package/dist/css/revolugo.bookingdetailssidebar.tDtXpaIj.css +1 -0
  6. package/dist/css/revolugo.bphoneinput.Kq_-XiGI.css +1 -0
  7. package/dist/css/revolugo.bstarrating.nzH7iii4.css +1 -0
  8. package/dist/css/revolugo.btag.Bdbqb_8a.css +1 -0
  9. package/dist/css/revolugo.common.BSIsYREh.css +1 -0
  10. package/dist/css/revolugo.creditcardform.BGPUxkRC.css +1 -0
  11. package/dist/css/revolugo.creditcardpayment.0MNnDloZ.css +1 -0
  12. package/dist/css/revolugo.currencypicker.BRYsKdMu.css +1 -0
  13. package/dist/css/revolugo.fullbookingflow.BHV7_MhK.css +1 -0
  14. package/dist/css/revolugo.hotel-offer.CEd50mBT.css +1 -0
  15. package/dist/css/revolugo.hoteldescriptionview.9ofE1uWG.css +1 -0
  16. package/dist/css/revolugo.hoteloffersmap.0LnWfOu_.css +1 -0
  17. package/dist/css/revolugo.hoteloffersview.MWOmwEwv.css +1 -0
  18. package/dist/css/revolugo.hotelroomofferlist.xJfKaofV.css +1 -0
  19. package/dist/css/revolugo.hotelroomoffersbookingflow.PPEIqHuM.css +1 -0
  20. package/dist/css/revolugo.hotelroomoffersview.B8Y-2QYc.css +1 -0
  21. package/dist/css/revolugo.index.BMkl7a3p.css +1 -0
  22. package/dist/css/revolugo.index.CFW4Oklv.css +1 -0
  23. package/dist/css/revolugo.index.vq4xksqn.css +1 -0
  24. package/dist/css/revolugo.langpicker.B3TsOwUq.css +1 -0
  25. package/dist/css/revolugo.parsed-height.Xzhpy3D3.css +1 -0
  26. package/dist/css/revolugo.parsed-props.C3kOvm7T.css +1 -0
  27. package/dist/css/revolugo.prebookform.DBm2B4rS.css +1 -0
  28. package/dist/css/revolugo.revolugo-config.Dg8v1l3c.css +5 -0
  29. package/dist/css/revolugo.storybooktoolbar.CVnww0dZ.css +1 -0
  30. package/dist/css/revolugo.termsandconditions.DV2YnGzG.css +1 -0
  31. package/dist/css/revolugo.valert.BzcMswjJ.css +1 -0
  32. package/dist/css/revolugo.vautocomplete.OMX_yAge.css +1 -0
  33. package/dist/css/revolugo.vbadge.CiK_DSkI.css +1 -0
  34. package/dist/css/revolugo.vbtn.By46MJOU.css +1 -0
  35. package/dist/css/revolugo.vcard.DmB53ZNL.css +1 -0
  36. package/dist/css/revolugo.vchip.BdAdP6lC.css +1 -0
  37. package/dist/css/revolugo.vdialog.C02Cvwul.css +1 -0
  38. package/dist/css/revolugo.vexpansionpanelheader.B2eKo8Lo.css +1 -0
  39. package/dist/css/revolugo.vinput.SfhpXNi0.css +1 -0
  40. package/dist/css/revolugo.vitemgroup.EbHsz8Rr.css +1 -0
  41. package/dist/css/revolugo.vlistitem.BzwNE1YK.css +1 -0
  42. package/dist/css/revolugo.vmenu.BKE0IO4q.css +1 -0
  43. package/dist/css/revolugo.vselect.DljSkk6y.css +1 -0
  44. package/dist/css/revolugo.vsheet.Dtdo2Rps.css +1 -0
  45. package/dist/css/revolugo.vskeletonloader.BpGoaAbZ.css +1 -0
  46. package/dist/css/revolugo.vslidegroup.D5TIbmaw.css +1 -0
  47. package/dist/css/revolugo.vsnackbar.DTAXPYkr.css +1 -0
  48. package/dist/css/revolugo.vtextfield.BliJY6uv.css +1 -0
  49. package/dist/css/revolugo.vtoolbar.DQsezjcM.css +1 -0
  50. package/dist/css/revolugo.vtooltip.B_oOB9pj.css +1 -0
  51. package/dist/css/revolugo.vuetify.BpIoHlAi.css +1 -0
  52. package/dist/css/revolugo.webcomponentwrapper.BRZRuwZ0.css +1 -0
  53. package/dist/index.es.min.js +14187 -0
  54. package/dist/index.es.min.js.map +1 -0
  55. package/dist/index.min.js +65 -1
  56. package/dist/index.min.js.map +1 -0
  57. package/dist/revolugo.banktransferdetails.CbUr_kHV.min.js +105 -0
  58. package/dist/revolugo.bbreakfastoptionbadge.DND6bz7J.min.js +62 -0
  59. package/dist/revolugo.bdaterangepicker.DwXWu7y_.min.js +1351 -0
  60. package/dist/revolugo.bformattedamount.D4xCyTcv.min.js +82 -0
  61. package/dist/revolugo.bhotelroomsdetails.8yoNt-KM.min.js +213 -0
  62. package/dist/revolugo.bhotelsearchbar.Dm84Zzn5.min.js +446 -0
  63. package/dist/revolugo.booking-api-client.Du5goV4n.min.js +7672 -0
  64. package/dist/revolugo.bookingdetailssidebar.AR2t6BHt.min.js +28 -0
  65. package/dist/revolugo.bookingdetailssidebar.DY-YF6-6.min.js +242 -0
  66. package/dist/revolugo.bookingmanager.KlY3kOLa.min.js +404 -0
  67. package/dist/revolugo.bphoneinput.Qc_UlGIL.min.js +1935 -0
  68. package/dist/revolugo.bpricesummaryskeleton.BAzD7raP.min.js +47 -0
  69. package/dist/revolugo.breakpoint-service.CwWRBzMQ.min.js +65 -0
  70. package/dist/revolugo.bstarrating.B-PUaeDZ.min.js +173 -0
  71. package/dist/revolugo.btag.DD6eI8G4.min.js +68 -0
  72. package/dist/revolugo.cancellationpoliciesbadge.BTwUNf7h.min.js +76 -0
  73. package/dist/revolugo.cancellationpoliciesbadge.DA_X-aEr.min.js +28 -0
  74. package/dist/revolugo.cancellationpolicieslist.BweNL3Zh.min.js +316 -0
  75. package/dist/revolugo.cancellationpolicieslist.XF-OE6mm.min.js +28 -0
  76. package/dist/revolugo.common.D4pnatuu.min.js +34 -0
  77. package/dist/revolugo.creditcardform.B0ZACL31.min.js +28 -0
  78. package/dist/revolugo.creditcardform.Bmpk72uW.min.js +2047 -0
  79. package/dist/revolugo.creditcardpayment.DDAlWRp0.min.js +28 -0
  80. package/dist/revolugo.creditcardpayment.Dnr2WHEp.min.js +288 -0
  81. package/dist/revolugo.currencypicker.BxCxn4FE.min.js +122 -0
  82. package/dist/revolugo.currencypickerbtn.D8fIyw_x.min.js +121 -0
  83. package/dist/revolugo.currencypickerbtn.DoEdhphF.min.js +28 -0
  84. package/dist/revolugo.dialog-attach.05NirMLv.min.js +27 -0
  85. package/dist/revolugo.en-us.BP-UxrRq.min.js +1171 -0
  86. package/dist/revolugo.event-bus.CYLYgD3Y.min.js +37 -0
  87. package/dist/revolugo.fastbookingflow.BJmesPRr.min.js +28 -0
  88. package/dist/revolugo.fr-fr.CF_knN5b.min.js +1177 -0
  89. package/dist/revolugo.fullbookingflow.CBjvuZLP.min.js +239 -0
  90. package/dist/revolugo.hotel-offer.JfkzuZyf.min.js +608 -0
  91. package/dist/revolugo.hoteldescriptionview.C9XjZcdv.min.js +2174 -0
  92. package/dist/revolugo.hoteldescriptionview.wVex0D_a.min.js +28 -0
  93. package/dist/revolugo.hotelofferitemlayout.BrulX_X4.min.js +64 -0
  94. package/dist/revolugo.hotelofferlist.CcITpxz4.min.js +28 -0
  95. package/dist/revolugo.hotelofferlist.DJ8B6BpP.min.js +3450 -0
  96. package/dist/revolugo.hotelofferrequestcreator.CiNpCqiH.min.js +225 -0
  97. package/dist/revolugo.hoteloffersearchmenu.CnVV4htq.min.js +54 -0
  98. package/dist/revolugo.hoteloffersmap.C1N5EZ0d.min.js +28 -0
  99. package/dist/revolugo.hoteloffersmap.gHrmWy8H.min.js +8737 -0
  100. package/dist/revolugo.hoteloffersview.BCvASsRk.min.js +157 -0
  101. package/dist/revolugo.hoteloffersview.DfbOUEie.min.js +28 -0
  102. package/dist/revolugo.hotelroomofferlist.BS32D6Sj.min.js +28 -0
  103. package/dist/revolugo.hotelroomofferlist.BltT6U-0.min.js +1336 -0
  104. package/dist/revolugo.hotelroomofferrequestcreator.CbISsNdn.min.js +225 -0
  105. package/dist/revolugo.hotelroomoffersbookingflow.BuMF7NU2.min.js +679 -0
  106. package/dist/revolugo.hotelroomoffersearchmenu.Bsg_FnJp.min.js +29 -0
  107. package/dist/revolugo.hotelroomoffersearchmenu.DqVQ1oKf.min.js +38 -0
  108. package/dist/revolugo.hotelroomoffersview.4NC1efEJ.min.js +124 -0
  109. package/dist/revolugo.hotelroomoffersview.DfmNWUJQ.min.js +28 -0
  110. package/dist/revolugo.i18n.DF3U6VhD.min.js +11263 -0
  111. package/dist/revolugo.index.A8BtC3Nq.min.js +322 -0
  112. package/dist/revolugo.index.BEcLuOn-.min.js +281 -0
  113. package/dist/revolugo.index.BUUmIL9V.min.js +68 -0
  114. package/dist/revolugo.index.BwvidmNu.min.js +128 -0
  115. package/dist/revolugo.index.CQC_pZJn.min.js +15 -0
  116. package/dist/revolugo.index.CcRooNT6.min.js +270 -0
  117. package/dist/revolugo.index.Cn5YTzy6.min.js +43 -0
  118. package/dist/revolugo.index.Cn8GgIte.min.js +142 -0
  119. package/dist/revolugo.index.DTZNxZHf.min.js +9 -0
  120. package/dist/revolugo.index.DfBSjbYu.min.js +42 -0
  121. package/dist/revolugo.index.GdvjICDR.min.js +13 -0
  122. package/dist/revolugo.index.owaXEEBO.min.js +9 -0
  123. package/dist/revolugo.index.sTY3URQu.min.js +390 -0
  124. package/dist/revolugo.index.tY8MFB9m.min.js +161 -0
  125. package/dist/revolugo.langpicker.yr7wtnZM.min.js +103 -0
  126. package/dist/revolugo.langpickerbtn.4XN3tTRs.min.js +28 -0
  127. package/dist/revolugo.langpickerbtn.BHhYWwCD.min.js +111 -0
  128. package/dist/revolugo.localizedformat.Wox_NThB.min.js +47 -0
  129. package/dist/revolugo.min.js +260 -7
  130. package/dist/revolugo.parsed-height.DRzHRmIo.min.js +2492 -0
  131. package/dist/revolugo.parsed-props.B_x1Ob04.min.js +95 -0
  132. package/dist/revolugo.prebookform.CtTKl-QM.min.js +483 -0
  133. package/dist/revolugo.prebookform.DMX0_9De.min.js +28 -0
  134. package/dist/revolugo.revolugo-config.Bs_HF2Eu.min.js +1707 -0
  135. package/dist/revolugo.roominglisteditor.BpdFoplV.min.js +201 -0
  136. package/dist/revolugo.roominglisteditor.DxmH3gRW.min.js +28 -0
  137. package/dist/revolugo.sentry.Bc7mnscp.min.js +12146 -0
  138. package/dist/revolugo.store.DPvvq0Rz.min.js +1718 -0
  139. package/dist/revolugo.storybooktoolbar.C_y4Nf-_.min.js +300 -0
  140. package/dist/revolugo.termsandconditions.BIHsJaCg.min.js +27 -0
  141. package/dist/revolugo.termsandconditions.D2C1eZuC.min.js +162 -0
  142. package/dist/revolugo.typed-mixins.B_7wrdes.min.js +8 -0
  143. package/dist/revolugo.valert.CMzvSBzo.min.js +194 -0
  144. package/dist/revolugo.vautocomplete.C-5OLCEj.min.js +255 -0
  145. package/dist/revolugo.vbadge.xQq9jf9W.min.js +172 -0
  146. package/dist/revolugo.vbtn.CP4AezmI.min.js +286 -0
  147. package/dist/revolugo.vcard.Cy5A2_pV.min.js +80 -0
  148. package/dist/revolugo.vchip.BcIMSmkF.min.js +157 -0
  149. package/dist/revolugo.vdialog.BAexO59W.min.js +341 -0
  150. package/dist/revolugo.vexpansionpanelheader.D9ENep1_.min.js +263 -0
  151. package/dist/revolugo.vform.oeljK9Tu.min.js +98 -0
  152. package/dist/revolugo.vinput.CDpcVlCU.min.js +509 -0
  153. package/dist/revolugo.vitemgroup.DyY_3pfW.min.js +168 -0
  154. package/dist/revolugo.vlistitem.CrJxrMpP.min.js +204 -0
  155. package/dist/revolugo.vmenu.CtMz9t6s.min.js +349 -0
  156. package/dist/revolugo.vselect.UcLk_jBF.min.js +859 -0
  157. package/dist/revolugo.vsheet.C1tyLBBd.min.js +120 -0
  158. package/dist/revolugo.vskeletonloader.CMMMMGzf.min.js +172 -0
  159. package/dist/revolugo.vslidegroup.BXF0FLd1.min.js +650 -0
  160. package/dist/revolugo.vsnackbar.xIK_rBpB.min.js +178 -0
  161. package/dist/revolugo.vtextfield.D2qOTbGQ.min.js +438 -0
  162. package/dist/revolugo.vtoolbar.D3HhuFrj.min.js +364 -0
  163. package/dist/revolugo.vtooltip.B7xN8tzo.min.js +168 -0
  164. package/dist/revolugo.vuetify.yojzDMFk.min.js +865 -0
  165. package/dist/revolugo.watch-list.cR2ZEwBA.min.js +44 -0
  166. package/dist/revolugo.webcomponentwrapper.-wnE6sKX.min.js +777 -0
  167. package/package.json +25 -32
  168. package/dist/css/revolugo.0.min.css +0 -5
  169. package/dist/css/revolugo.1.min.css +0 -1
  170. package/dist/css/revolugo.11.min.css +0 -1
  171. package/dist/css/revolugo.12.min.css +0 -1
  172. package/dist/css/revolugo.13.min.css +0 -1
  173. package/dist/css/revolugo.14.min.css +0 -1
  174. package/dist/css/revolugo.15.min.css +0 -1
  175. package/dist/css/revolugo.16.min.css +0 -1
  176. package/dist/css/revolugo.17.min.css +0 -1
  177. package/dist/css/revolugo.18.min.css +0 -1
  178. package/dist/css/revolugo.19.min.css +0 -1
  179. package/dist/css/revolugo.2.min.css +0 -1
  180. package/dist/css/revolugo.20.min.css +0 -1
  181. package/dist/css/revolugo.21.min.css +0 -1
  182. package/dist/css/revolugo.22.min.css +0 -1
  183. package/dist/css/revolugo.23.min.css +0 -1
  184. package/dist/css/revolugo.24.min.css +0 -1
  185. package/dist/css/revolugo.25.min.css +0 -1
  186. package/dist/css/revolugo.26.min.css +0 -1
  187. package/dist/css/revolugo.27.min.css +0 -1
  188. package/dist/css/revolugo.28.min.css +0 -1
  189. package/dist/css/revolugo.29.min.css +0 -1
  190. package/dist/css/revolugo.30.min.css +0 -1
  191. package/dist/css/revolugo.31.min.css +0 -1
  192. package/dist/css/revolugo.32.min.css +0 -1
  193. package/dist/css/revolugo.33.min.css +0 -1
  194. package/dist/css/revolugo.34.min.css +0 -1
  195. package/dist/css/revolugo.4.min.css +0 -1
  196. package/dist/css/revolugo.5.min.css +0 -1
  197. package/dist/css/revolugo.6.min.css +0 -1
  198. package/dist/css/revolugo.7.min.css +0 -1
  199. package/dist/css/revolugo.fonts.min.css +0 -1
  200. package/dist/fonts/amenities.2aad1d12.woff +0 -0
  201. package/dist/fonts/amenities.9adae269.ttf +0 -0
  202. package/dist/fonts/amenities.a9bf50f8.svg +0 -42
  203. package/dist/fonts/amenities.bd6b3a4a.eot +0 -0
  204. package/dist/fonts/beds.2b8e38c8.svg +0 -12
  205. package/dist/img/apst.c1092975.png +0 -0
  206. package/dist/img/apst.ec7669f2.png +0 -0
  207. package/dist/img/atout-france.72107e30.png +0 -0
  208. package/dist/img/atout-france.df038f22.png +0 -0
  209. package/dist/img/revolugo.179c459d.png +0 -0
  210. package/dist/img/revolugo.e0879dcc.png +0 -0
  211. package/dist/img/stripe.405543e2.png +0 -0
  212. package/dist/img/stripe.c3e16f9f.png +0 -0
  213. package/dist/revolugo.0.min.js +0 -18
  214. package/dist/revolugo.1.min.js +0 -1
  215. package/dist/revolugo.11.min.js +0 -134
  216. package/dist/revolugo.12.min.js +0 -19
  217. package/dist/revolugo.13.min.js +0 -14
  218. package/dist/revolugo.14.min.js +0 -19
  219. package/dist/revolugo.15.min.js +0 -139
  220. package/dist/revolugo.16.min.js +0 -14
  221. package/dist/revolugo.17.min.js +0 -14
  222. package/dist/revolugo.18.min.js +0 -1
  223. package/dist/revolugo.19.min.js +0 -1
  224. package/dist/revolugo.2.min.js +0 -1
  225. package/dist/revolugo.20.min.js +0 -1
  226. package/dist/revolugo.21.min.js +0 -116
  227. package/dist/revolugo.22.min.js +0 -1
  228. package/dist/revolugo.23.min.js +0 -1
  229. package/dist/revolugo.24.min.js +0 -1
  230. package/dist/revolugo.25.min.js +0 -1
  231. package/dist/revolugo.26.min.js +0 -1
  232. package/dist/revolugo.27.min.js +0 -1
  233. package/dist/revolugo.28.min.js +0 -116
  234. package/dist/revolugo.29.min.js +0 -1
  235. package/dist/revolugo.30.min.js +0 -1
  236. package/dist/revolugo.31.min.js +0 -1
  237. package/dist/revolugo.32.min.js +0 -1
  238. package/dist/revolugo.33.min.js +0 -1
  239. package/dist/revolugo.34.min.js +0 -1
  240. package/dist/revolugo.35.min.js +0 -1
  241. package/dist/revolugo.36.min.js +0 -1
  242. package/dist/revolugo.4.min.js +0 -1
  243. package/dist/revolugo.5.min.js +0 -1
  244. package/dist/revolugo.6.min.js +0 -1
  245. package/dist/revolugo.7.min.js +0 -1
  246. package/dist/revolugo.en-US.min.js +0 -1
  247. package/dist/revolugo.fonts.min.js +0 -1
  248. package/dist/revolugo.fr-FR.min.js +0 -1
@@ -0,0 +1,859 @@
1
+ import { _ as r } from "./revolugo.vtextfield.D2qOTbGQ.min.js";
2
+ import { _ as y } from "./revolugo.vchip.BcIMSmkF.min.js";
3
+ import { _ as b } from "./revolugo.vmenu.CtMz9t6s.min.js";
4
+ import { r as p, C as S } from "./revolugo.vuetify.yojzDMFk.min.js";
5
+ import { V as f } from "./revolugo.i18n.DF3U6VhD.min.js";
6
+ import { _ } from "./revolugo.index.sTY3URQu.min.js";
7
+ import { C as u, T as g, c as m, m as v } from "./revolugo.webcomponentwrapper.-wnE6sKX.min.js";
8
+ import { C as T, s as h, p as k, t as I, k as l } from "./revolugo.revolugo-config.Bs_HF2Eu.min.js";
9
+ import { _ as D } from "./revolugo.parsed-props.B_x1Ob04.min.js";
10
+ import { a as V, V as A } from "./revolugo.index.DTZNxZHf.min.js";
11
+ import { a as d, _ as M } from "./revolugo.vlistitem.CrJxrMpP.min.js";
12
+ import { V as E } from "./revolugo.vinput.CDpcVlCU.min.js";
13
+ import { C as w } from "./revolugo.index.CQC_pZJn.min.js";
14
+ import { D as L } from "./revolugo.index.A8BtC3Nq.min.js";
15
+ function C(e) {
16
+ try {
17
+ if (typeof document < "u") {
18
+ window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
19
+ sheets: [],
20
+ components: []
21
+ };
22
+ const t = import.meta.url, s = t.slice(0, t.lastIndexOf("/") + 1) + e;
23
+ window.REVOLUGO_ELEMENTS_STYLES.sheets.push(s);
24
+ for (const i of REVOLUGO_ELEMENTS_STYLES.components)
25
+ i(s);
26
+ if (e.indexOf("fonts") >= 0) {
27
+ const i = document.createElement("link");
28
+ i.rel = "stylesheet", linK.href = s, document.head.appendChild(i);
29
+ }
30
+ }
31
+ } catch (t) {
32
+ console.error("[revolugo-elements] ", t);
33
+ }
34
+ }
35
+ const O = f.extend({
36
+ name: "v-simple-checkbox",
37
+ functional: !0,
38
+ directives: {
39
+ Ripple: p
40
+ },
41
+ props: {
42
+ ...u.options.props,
43
+ ...g.options.props,
44
+ disabled: Boolean,
45
+ ripple: {
46
+ type: Boolean,
47
+ default: !0
48
+ },
49
+ value: Boolean,
50
+ indeterminate: Boolean,
51
+ indeterminateIcon: {
52
+ type: String,
53
+ default: "$checkboxIndeterminate"
54
+ },
55
+ onIcon: {
56
+ type: String,
57
+ default: "$checkboxOn"
58
+ },
59
+ offIcon: {
60
+ type: String,
61
+ default: "$checkboxOff"
62
+ }
63
+ },
64
+ render(e, {
65
+ props: t,
66
+ data: s,
67
+ listeners: i
68
+ }) {
69
+ const n = [];
70
+ let a = t.offIcon;
71
+ if (t.indeterminate ? a = t.indeterminateIcon : t.value && (a = t.onIcon), n.push(e(_, u.options.methods.setTextColor(t.value && t.color, {
72
+ props: {
73
+ disabled: t.disabled,
74
+ dark: t.dark,
75
+ light: t.light
76
+ }
77
+ }), a)), t.ripple && !t.disabled) {
78
+ const o = e("div", u.options.methods.setTextColor(t.color, {
79
+ staticClass: "v-input--selection-controls__ripple",
80
+ directives: [{
81
+ def: p,
82
+ name: "ripple",
83
+ value: {
84
+ center: !0
85
+ }
86
+ }]
87
+ }));
88
+ n.push(o);
89
+ }
90
+ return e("div", m(s, {
91
+ class: {
92
+ "v-simple-checkbox": !0,
93
+ "v-simple-checkbox--disabled": t.disabled
94
+ },
95
+ on: {
96
+ click: (o) => {
97
+ o.stopPropagation(), s.on && s.on.input && !t.disabled && T(s.on.input).forEach((c) => c(!t.value));
98
+ }
99
+ }
100
+ }), [e("div", {
101
+ staticClass: "v-input--selection-controls__input"
102
+ }, n)]);
103
+ }
104
+ }), B = v(
105
+ g
106
+ /* @vue/component */
107
+ ).extend({
108
+ name: "v-subheader",
109
+ props: {
110
+ inset: Boolean
111
+ },
112
+ render(e) {
113
+ return e("div", {
114
+ staticClass: "v-subheader",
115
+ class: {
116
+ "v-subheader--inset": this.inset,
117
+ ...this.themeClasses
118
+ },
119
+ attrs: this.$attrs,
120
+ on: this.$listeners
121
+ }, this.$slots.default);
122
+ }
123
+ }), P = f.extend({
124
+ name: "v-list-item-action",
125
+ functional: !0,
126
+ render(e, {
127
+ data: t,
128
+ children: s = []
129
+ }) {
130
+ return t.staticClass = t.staticClass ? `v-list-item__action ${t.staticClass}` : "v-list-item__action", s.filter((n) => n.isComment === !1 && n.text !== " ").length > 1 && (t.staticClass += " v-list-item__action--stack"), e("div", t, s);
131
+ }
132
+ }), x = v(u, g).extend({
133
+ name: "v-select-list",
134
+ // https://github.com/vuejs/vue/issues/6872
135
+ directives: {
136
+ ripple: p
137
+ },
138
+ props: {
139
+ action: Boolean,
140
+ dense: Boolean,
141
+ hideSelected: Boolean,
142
+ items: {
143
+ type: Array,
144
+ default: () => []
145
+ },
146
+ itemDisabled: {
147
+ type: [String, Array, Function],
148
+ default: "disabled"
149
+ },
150
+ itemText: {
151
+ type: [String, Array, Function],
152
+ default: "text"
153
+ },
154
+ itemValue: {
155
+ type: [String, Array, Function],
156
+ default: "value"
157
+ },
158
+ noDataText: String,
159
+ noFilter: Boolean,
160
+ searchInput: null,
161
+ selectedItems: {
162
+ type: Array,
163
+ default: () => []
164
+ }
165
+ },
166
+ computed: {
167
+ parsedItems() {
168
+ return this.selectedItems.map((e) => this.getValue(e));
169
+ },
170
+ tileActiveClass() {
171
+ return Object.keys(this.setTextColor(this.color).class || {}).join(" ");
172
+ },
173
+ staticNoDataTile() {
174
+ const e = {
175
+ attrs: {
176
+ role: void 0
177
+ },
178
+ on: {
179
+ mousedown: (t) => t.preventDefault()
180
+ // Prevent onBlur from being called
181
+ }
182
+ };
183
+ return this.$createElement(d, e, [this.genTileContent(this.noDataText)]);
184
+ }
185
+ },
186
+ methods: {
187
+ genAction(e, t) {
188
+ return this.$createElement(P, [this.$createElement(O, {
189
+ props: {
190
+ color: this.color,
191
+ value: t,
192
+ ripple: !1
193
+ },
194
+ on: {
195
+ input: () => this.$emit("select", e)
196
+ }
197
+ })]);
198
+ },
199
+ genDivider(e) {
200
+ return this.$createElement(D, {
201
+ props: e
202
+ });
203
+ },
204
+ genFilteredText(e) {
205
+ if (e = e || "", !this.searchInput || this.noFilter)
206
+ return e;
207
+ const {
208
+ start: t,
209
+ middle: s,
210
+ end: i
211
+ } = this.getMaskedCharacters(e);
212
+ return [t, this.genHighlight(s), i];
213
+ },
214
+ genHeader(e) {
215
+ return this.$createElement(B, {
216
+ props: e
217
+ }, e.header);
218
+ },
219
+ genHighlight(e) {
220
+ return this.$createElement("span", {
221
+ staticClass: "v-list-item__mask"
222
+ }, e);
223
+ },
224
+ getMaskedCharacters(e) {
225
+ const t = (this.searchInput || "").toString().toLocaleLowerCase(), s = e.toLocaleLowerCase().indexOf(t);
226
+ if (s < 0)
227
+ return {
228
+ start: e,
229
+ middle: "",
230
+ end: ""
231
+ };
232
+ const i = e.slice(0, s), n = e.slice(s, s + t.length), a = e.slice(s + t.length);
233
+ return {
234
+ start: i,
235
+ middle: n,
236
+ end: a
237
+ };
238
+ },
239
+ genTile({
240
+ item: e,
241
+ index: t,
242
+ disabled: s = null,
243
+ value: i = !1
244
+ }) {
245
+ i || (i = this.hasItem(e)), e === Object(e) && (s = s !== null ? s : this.getDisabled(e));
246
+ const n = {
247
+ attrs: {
248
+ // Default behavior in list does not
249
+ // contain aria-selected by default
250
+ "aria-selected": String(i),
251
+ id: `list-item-${this._uid}-${t}`,
252
+ role: "option"
253
+ },
254
+ on: {
255
+ mousedown: (c) => {
256
+ c.preventDefault();
257
+ },
258
+ click: () => s || this.$emit("select", e)
259
+ },
260
+ props: {
261
+ activeClass: this.tileActiveClass,
262
+ disabled: s,
263
+ ripple: !0,
264
+ inputValue: i
265
+ }
266
+ };
267
+ if (!this.$scopedSlots.item)
268
+ return this.$createElement(d, n, [this.action && !this.hideSelected && this.items.length > 0 ? this.genAction(e, i) : null, this.genTileContent(e, t)]);
269
+ const a = this, o = this.$scopedSlots.item({
270
+ parent: a,
271
+ item: e,
272
+ attrs: {
273
+ ...n.attrs,
274
+ ...n.props
275
+ },
276
+ on: n.on
277
+ });
278
+ return this.needsTile(o) ? this.$createElement(d, n, o) : o;
279
+ },
280
+ genTileContent(e, t = 0) {
281
+ return this.$createElement(V, [this.$createElement(A, [this.genFilteredText(this.getText(e))])]);
282
+ },
283
+ hasItem(e) {
284
+ return this.parsedItems.indexOf(this.getValue(e)) > -1;
285
+ },
286
+ needsTile(e) {
287
+ return e.length !== 1 || e[0].componentOptions == null || e[0].componentOptions.Ctor.options.name !== "v-list-item";
288
+ },
289
+ getDisabled(e) {
290
+ return !!h(e, this.itemDisabled, !1);
291
+ },
292
+ getText(e) {
293
+ return String(h(e, this.itemText, e));
294
+ },
295
+ getValue(e) {
296
+ return h(e, this.itemValue, this.getText(e));
297
+ }
298
+ },
299
+ render() {
300
+ const e = [], t = this.items.length;
301
+ for (let s = 0; s < t; s++) {
302
+ const i = this.items[s];
303
+ this.hideSelected && this.hasItem(i) || (i == null ? e.push(this.genTile({
304
+ item: i,
305
+ index: s
306
+ })) : i.header ? e.push(this.genHeader(i)) : i.divider ? e.push(this.genDivider(i)) : e.push(this.genTile({
307
+ item: i,
308
+ index: s
309
+ })));
310
+ }
311
+ return e.length || e.push(this.$slots["no-data"] || this.staticNoDataTile), this.$slots["prepend-item"] && e.unshift(this.$slots["prepend-item"]), this.$slots["append-item"] && e.push(this.$slots["append-item"]), this.$createElement(M, {
312
+ staticClass: "v-select-list",
313
+ class: this.themeClasses,
314
+ attrs: {
315
+ role: "listbox",
316
+ tabindex: -1
317
+ },
318
+ props: {
319
+ dense: this.dense
320
+ }
321
+ }, e);
322
+ }
323
+ }), F = f.extend({
324
+ name: "filterable",
325
+ props: {
326
+ noDataText: {
327
+ type: String,
328
+ default: "$vuetify.noDataText"
329
+ }
330
+ }
331
+ }), $ = {
332
+ closeOnClick: !1,
333
+ closeOnContentClick: !1,
334
+ disableKeys: !0,
335
+ openOnClick: !1,
336
+ maxHeight: 304
337
+ }, H = v(r, w, L, F), ee = H.extend().extend({
338
+ name: "v-select",
339
+ directives: {
340
+ ClickOutside: S
341
+ },
342
+ props: {
343
+ appendIcon: {
344
+ type: String,
345
+ default: "$dropdown"
346
+ },
347
+ attach: {
348
+ type: null,
349
+ default: !1
350
+ },
351
+ cacheItems: Boolean,
352
+ chips: Boolean,
353
+ clearable: Boolean,
354
+ deletableChips: Boolean,
355
+ disableLookup: Boolean,
356
+ eager: Boolean,
357
+ hideSelected: Boolean,
358
+ items: {
359
+ type: Array,
360
+ default: () => []
361
+ },
362
+ itemColor: {
363
+ type: String,
364
+ default: "primary"
365
+ },
366
+ itemDisabled: {
367
+ type: [String, Array, Function],
368
+ default: "disabled"
369
+ },
370
+ itemText: {
371
+ type: [String, Array, Function],
372
+ default: "text"
373
+ },
374
+ itemValue: {
375
+ type: [String, Array, Function],
376
+ default: "value"
377
+ },
378
+ menuProps: {
379
+ type: [String, Array, Object],
380
+ default: () => $
381
+ },
382
+ multiple: Boolean,
383
+ openOnClear: Boolean,
384
+ returnObject: Boolean,
385
+ smallChips: Boolean
386
+ },
387
+ data() {
388
+ return {
389
+ cachedItems: this.cacheItems ? this.items : [],
390
+ menuIsBooted: !1,
391
+ isMenuActive: !1,
392
+ lastItem: 20,
393
+ // As long as a value is defined, show it
394
+ // Otherwise, check if multiple
395
+ // to determine which default to provide
396
+ lazyValue: this.value !== void 0 ? this.value : this.multiple ? [] : void 0,
397
+ selectedIndex: -1,
398
+ selectedItems: [],
399
+ keyboardLookupPrefix: "",
400
+ keyboardLookupLastTime: 0
401
+ };
402
+ },
403
+ computed: {
404
+ /* All items that the select has */
405
+ allItems() {
406
+ return this.filterDuplicates(this.cachedItems.concat(this.items));
407
+ },
408
+ classes() {
409
+ return {
410
+ ...r.options.computed.classes.call(this),
411
+ "v-select": !0,
412
+ "v-select--chips": this.hasChips,
413
+ "v-select--chips--small": this.smallChips,
414
+ "v-select--is-menu-active": this.isMenuActive,
415
+ "v-select--is-multi": this.multiple
416
+ };
417
+ },
418
+ /* Used by other components to overwrite */
419
+ computedItems() {
420
+ return this.allItems;
421
+ },
422
+ computedOwns() {
423
+ return `list-${this._uid}`;
424
+ },
425
+ computedCounterValue() {
426
+ var e;
427
+ const t = this.multiple ? this.selectedItems : ((e = this.getText(this.selectedItems[0])) !== null && e !== void 0 ? e : "").toString();
428
+ return typeof this.counterValue == "function" ? this.counterValue(t) : t.length;
429
+ },
430
+ directives() {
431
+ return this.isFocused ? [{
432
+ name: "click-outside",
433
+ value: {
434
+ handler: this.blur,
435
+ closeConditional: this.closeConditional,
436
+ include: () => this.getOpenDependentElements()
437
+ }
438
+ }] : void 0;
439
+ },
440
+ dynamicHeight() {
441
+ return "auto";
442
+ },
443
+ hasChips() {
444
+ return this.chips || this.smallChips;
445
+ },
446
+ hasSlot() {
447
+ return !!(this.hasChips || this.$scopedSlots.selection);
448
+ },
449
+ isDirty() {
450
+ return this.selectedItems.length > 0;
451
+ },
452
+ listData() {
453
+ const e = this.$vnode && this.$vnode.context.$options._scopeId;
454
+ return {
455
+ attrs: {
456
+ ...e ? {
457
+ [e]: !0
458
+ } : {},
459
+ id: this.computedOwns
460
+ },
461
+ props: {
462
+ action: this.multiple,
463
+ color: this.itemColor,
464
+ dense: this.dense,
465
+ hideSelected: this.hideSelected,
466
+ items: this.virtualizedItems,
467
+ itemDisabled: this.itemDisabled,
468
+ itemText: this.itemText,
469
+ itemValue: this.itemValue,
470
+ noDataText: this.$vuetify.lang.t(this.noDataText),
471
+ selectedItems: this.selectedItems
472
+ },
473
+ on: {
474
+ select: this.selectItem
475
+ },
476
+ scopedSlots: {
477
+ item: this.$scopedSlots.item
478
+ }
479
+ };
480
+ },
481
+ staticList() {
482
+ return (this.$slots["no-data"] || this.$slots["prepend-item"] || this.$slots["append-item"]) && k("assert: staticList should not be called if slots are used"), this.$createElement(x, this.listData);
483
+ },
484
+ virtualizedItems() {
485
+ return this.$_menuProps.auto ? this.computedItems : this.computedItems.slice(0, this.lastItem);
486
+ },
487
+ menuCanShow: () => !0,
488
+ $_menuProps() {
489
+ let e = typeof this.menuProps == "string" ? this.menuProps.split(",") : this.menuProps;
490
+ return Array.isArray(e) && (e = e.reduce((t, s) => (t[s.trim()] = !0, t), {})), {
491
+ ...$,
492
+ eager: this.eager,
493
+ value: this.menuCanShow && this.isMenuActive,
494
+ nudgeBottom: e.offsetY ? 1 : 0,
495
+ ...e
496
+ };
497
+ }
498
+ },
499
+ watch: {
500
+ internalValue(e) {
501
+ this.initialValue = e, this.setSelectedItems(), this.multiple && this.$nextTick(() => {
502
+ var t;
503
+ (t = this.$refs.menu) === null || t === void 0 || t.updateDimensions();
504
+ }), this.hideSelected && this.$nextTick(() => {
505
+ this.onScroll();
506
+ });
507
+ },
508
+ isMenuActive(e) {
509
+ window.setTimeout(() => this.onMenuActiveChange(e));
510
+ },
511
+ items: {
512
+ immediate: !0,
513
+ handler(e) {
514
+ this.cacheItems && this.$nextTick(() => {
515
+ this.cachedItems = this.filterDuplicates(this.cachedItems.concat(e));
516
+ }), this.setSelectedItems();
517
+ }
518
+ }
519
+ },
520
+ methods: {
521
+ /** @public */
522
+ blur(e) {
523
+ r.options.methods.blur.call(this, e), this.isMenuActive = !1, this.isFocused = !1, this.selectedIndex = -1, this.setMenuIndex(-1);
524
+ },
525
+ /** @public */
526
+ activateMenu() {
527
+ !this.isInteractive || this.isMenuActive || (this.isMenuActive = !0);
528
+ },
529
+ clearableCallback() {
530
+ this.setValue(this.multiple ? [] : null), this.setMenuIndex(-1), this.$nextTick(() => this.$refs.input && this.$refs.input.focus()), this.openOnClear && (this.isMenuActive = !0);
531
+ },
532
+ closeConditional(e) {
533
+ return this.isMenuActive ? !this._isDestroyed && // Click originates from outside the menu content
534
+ // Multiple selects don't close when an item is clicked
535
+ (!this.getContent() || !this.getContent().contains(e.target)) && // Click originates from outside the element
536
+ this.$el && !this.$el.contains(e.target) && e.target !== this.$el : !0;
537
+ },
538
+ filterDuplicates(e) {
539
+ const t = /* @__PURE__ */ new Map();
540
+ for (let s = 0; s < e.length; ++s) {
541
+ const i = e[s];
542
+ if (i == null)
543
+ continue;
544
+ if (i.header || i.divider) {
545
+ t.set(i, i);
546
+ continue;
547
+ }
548
+ const n = this.getValue(i);
549
+ !t.has(n) && t.set(n, i);
550
+ }
551
+ return Array.from(t.values());
552
+ },
553
+ findExistingIndex(e) {
554
+ const t = this.getValue(e);
555
+ return (this.internalValue || []).findIndex((s) => this.valueComparator(this.getValue(s), t));
556
+ },
557
+ getContent() {
558
+ return this.$refs.menu && this.$refs.menu.$refs.content;
559
+ },
560
+ genChipSelection(e, t) {
561
+ const s = this.isDisabled || this.getDisabled(e), i = !s && this.isInteractive;
562
+ return this.$createElement(y, {
563
+ staticClass: "v-chip--select",
564
+ attrs: {
565
+ tabindex: -1
566
+ },
567
+ props: {
568
+ close: this.deletableChips && i,
569
+ disabled: s,
570
+ inputValue: t === this.selectedIndex,
571
+ small: this.smallChips
572
+ },
573
+ on: {
574
+ click: (n) => {
575
+ i && (n.stopPropagation(), this.selectedIndex = t);
576
+ },
577
+ "click:close": () => this.onChipInput(e)
578
+ },
579
+ key: JSON.stringify(this.getValue(e))
580
+ }, this.getText(e));
581
+ },
582
+ genCommaSelection(e, t, s) {
583
+ const i = t === this.selectedIndex && this.computedColor, n = this.isDisabled || this.getDisabled(e);
584
+ return this.$createElement("div", this.setTextColor(i, {
585
+ staticClass: "v-select__selection v-select__selection--comma",
586
+ class: {
587
+ "v-select__selection--disabled": n
588
+ },
589
+ key: JSON.stringify(this.getValue(e))
590
+ }), `${this.getText(e)}${s ? "" : ", "}`);
591
+ },
592
+ genDefaultSlot() {
593
+ const e = this.genSelections(), t = this.genInput();
594
+ return Array.isArray(e) ? e.push(t) : (e.children = e.children || [], e.children.push(t)), [this.genFieldset(), this.$createElement("div", {
595
+ staticClass: "v-select__slot",
596
+ directives: this.directives
597
+ }, [this.genLabel(), this.prefix ? this.genAffix("prefix") : null, e, this.suffix ? this.genAffix("suffix") : null, this.genClearIcon(), this.genIconSlot(), this.genHiddenInput()]), this.genMenu(), this.genProgress()];
598
+ },
599
+ genIcon(e, t, s) {
600
+ const i = E.options.methods.genIcon.call(this, e, t, s);
601
+ return e === "append" && (i.children[0].data = m(i.children[0].data, {
602
+ attrs: {
603
+ tabindex: i.children[0].componentOptions.listeners && "-1",
604
+ "aria-hidden": "true",
605
+ "aria-label": void 0
606
+ }
607
+ })), i;
608
+ },
609
+ genInput() {
610
+ const e = r.options.methods.genInput.call(this);
611
+ return delete e.data.attrs.name, e.data = m(e.data, {
612
+ domProps: {
613
+ value: null
614
+ },
615
+ attrs: {
616
+ readonly: !0,
617
+ type: "text",
618
+ "aria-readonly": String(this.isReadonly),
619
+ "aria-activedescendant": I(this.$refs.menu, "activeTile.id"),
620
+ autocomplete: I(e.data, "attrs.autocomplete", "off"),
621
+ placeholder: !this.isDirty && (this.persistentPlaceholder || this.isFocused || !this.hasLabel) ? this.placeholder : void 0
622
+ },
623
+ on: {
624
+ keypress: this.onKeyPress
625
+ }
626
+ }), e;
627
+ },
628
+ genHiddenInput() {
629
+ return this.$createElement("input", {
630
+ domProps: {
631
+ value: this.lazyValue
632
+ },
633
+ attrs: {
634
+ type: "hidden",
635
+ name: this.attrs$.name
636
+ }
637
+ });
638
+ },
639
+ genInputSlot() {
640
+ const e = r.options.methods.genInputSlot.call(this);
641
+ return e.data.attrs = {
642
+ ...e.data.attrs,
643
+ role: "button",
644
+ "aria-haspopup": "listbox",
645
+ "aria-expanded": String(this.isMenuActive),
646
+ "aria-owns": this.computedOwns
647
+ }, e;
648
+ },
649
+ genList() {
650
+ return this.$slots["no-data"] || this.$slots["prepend-item"] || this.$slots["append-item"] ? this.genListWithSlot() : this.staticList;
651
+ },
652
+ genListWithSlot() {
653
+ const e = ["prepend-item", "no-data", "append-item"].filter((t) => this.$slots[t]).map((t) => this.$createElement("template", {
654
+ slot: t
655
+ }, this.$slots[t]));
656
+ return this.$createElement(x, {
657
+ ...this.listData
658
+ }, e);
659
+ },
660
+ genMenu() {
661
+ const e = this.$_menuProps;
662
+ return e.activator = this.$refs["input-slot"], "attach" in e || (// TODO: make this a computed property or helper or something
663
+ this.attach === "" || // If used as a boolean prop (<v-menu attach>)
664
+ this.attach === !0 || // If bound to a boolean (<v-menu :attach="true">)
665
+ this.attach === "attach" ? e.attach = this.$el : e.attach = this.attach), this.$createElement(b, {
666
+ attrs: {
667
+ role: void 0
668
+ },
669
+ props: e,
670
+ on: {
671
+ input: (t) => {
672
+ this.isMenuActive = t, this.isFocused = t;
673
+ },
674
+ scroll: this.onScroll
675
+ },
676
+ ref: "menu"
677
+ }, [this.genList()]);
678
+ },
679
+ genSelections() {
680
+ let e = this.selectedItems.length;
681
+ const t = new Array(e);
682
+ let s;
683
+ for (this.$scopedSlots.selection ? s = this.genSlotSelection : this.hasChips ? s = this.genChipSelection : s = this.genCommaSelection; e--; )
684
+ t[e] = s(this.selectedItems[e], e, e === t.length - 1);
685
+ return this.$createElement("div", {
686
+ staticClass: "v-select__selections"
687
+ }, t);
688
+ },
689
+ genSlotSelection(e, t) {
690
+ return this.$scopedSlots.selection({
691
+ attrs: {
692
+ class: "v-chip--select"
693
+ },
694
+ parent: this,
695
+ item: e,
696
+ index: t,
697
+ select: (s) => {
698
+ s.stopPropagation(), this.selectedIndex = t;
699
+ },
700
+ selected: t === this.selectedIndex,
701
+ disabled: !this.isInteractive
702
+ });
703
+ },
704
+ getMenuIndex() {
705
+ return this.$refs.menu ? this.$refs.menu.listIndex : -1;
706
+ },
707
+ getDisabled(e) {
708
+ return h(e, this.itemDisabled, !1);
709
+ },
710
+ getText(e) {
711
+ return h(e, this.itemText, e);
712
+ },
713
+ getValue(e) {
714
+ return h(e, this.itemValue, this.getText(e));
715
+ },
716
+ onBlur(e) {
717
+ e && this.$emit("blur", e);
718
+ },
719
+ onChipInput(e) {
720
+ this.multiple ? this.selectItem(e) : this.setValue(null), this.selectedItems.length === 0 ? this.isMenuActive = !0 : this.isMenuActive = !1, this.selectedIndex = -1;
721
+ },
722
+ onClick(e) {
723
+ this.isInteractive && (this.isAppendInner(e.target) || (this.isMenuActive = !0), this.isFocused || (this.isFocused = !0, this.$emit("focus")), this.$emit("click", e));
724
+ },
725
+ onEscDown(e) {
726
+ e.preventDefault(), this.isMenuActive && (e.stopPropagation(), this.isMenuActive = !1);
727
+ },
728
+ onKeyPress(e) {
729
+ if (this.multiple || !this.isInteractive || this.disableLookup || e.key.length > 1 || e.ctrlKey || e.metaKey || e.altKey)
730
+ return;
731
+ const t = 1e3, s = performance.now();
732
+ s - this.keyboardLookupLastTime > t && (this.keyboardLookupPrefix = ""), this.keyboardLookupPrefix += e.key.toLowerCase(), this.keyboardLookupLastTime = s;
733
+ const i = this.allItems.findIndex((a) => {
734
+ var o;
735
+ return ((o = this.getText(a)) !== null && o !== void 0 ? o : "").toString().toLowerCase().startsWith(this.keyboardLookupPrefix);
736
+ }), n = this.allItems[i];
737
+ i !== -1 && (this.lastItem = Math.max(this.lastItem, i + 5), this.setValue(this.returnObject ? n : this.getValue(n)), this.$nextTick(() => this.$refs.menu.getTiles()), setTimeout(() => this.setMenuIndex(i)));
738
+ },
739
+ onKeyDown(e) {
740
+ if (this.isReadonly && e.keyCode !== l.tab)
741
+ return;
742
+ const t = e.keyCode, s = this.$refs.menu;
743
+ if (this.$emit("keydown", e), !!s) {
744
+ if (this.isMenuActive && [l.up, l.down, l.home, l.end, l.enter].includes(t) && this.$nextTick(() => {
745
+ s.changeListIndex(e), this.$emit("update:list-index", s.listIndex);
746
+ }), [l.enter, l.space].includes(t) && this.activateMenu(), !this.isMenuActive && [l.up, l.down, l.home, l.end].includes(t))
747
+ return this.onUpDown(e);
748
+ if (t === l.esc)
749
+ return this.onEscDown(e);
750
+ if (t === l.tab)
751
+ return this.onTabDown(e);
752
+ if (t === l.space)
753
+ return this.onSpaceDown(e);
754
+ }
755
+ },
756
+ onMenuActiveChange(e) {
757
+ if (this.multiple && !e || this.getMenuIndex() > -1)
758
+ return;
759
+ const t = this.$refs.menu;
760
+ if (!(!t || !this.isDirty)) {
761
+ this.$refs.menu.getTiles();
762
+ for (let s = 0; s < t.tiles.length; s++)
763
+ if (t.tiles[s].getAttribute("aria-selected") === "true") {
764
+ this.setMenuIndex(s);
765
+ break;
766
+ }
767
+ }
768
+ },
769
+ onMouseUp(e) {
770
+ this.hasMouseDown && e.which !== 3 && this.isInteractive && this.isAppendInner(e.target) && this.$nextTick(() => this.isMenuActive = !this.isMenuActive), r.options.methods.onMouseUp.call(this, e);
771
+ },
772
+ onScroll() {
773
+ if (!this.isMenuActive)
774
+ requestAnimationFrame(() => {
775
+ const e = this.getContent();
776
+ e && (e.scrollTop = 0);
777
+ });
778
+ else {
779
+ if (this.lastItem > this.computedItems.length)
780
+ return;
781
+ this.getContent().scrollHeight - (this.getContent().scrollTop + this.getContent().clientHeight) < 200 && (this.lastItem += 20);
782
+ }
783
+ },
784
+ onSpaceDown(e) {
785
+ e.preventDefault();
786
+ },
787
+ onTabDown(e) {
788
+ const t = this.$refs.menu;
789
+ if (!t)
790
+ return;
791
+ const s = t.activeTile;
792
+ !this.multiple && s && this.isMenuActive ? (e.preventDefault(), e.stopPropagation(), s.click()) : this.blur(e);
793
+ },
794
+ onUpDown(e) {
795
+ const t = this.$refs.menu;
796
+ if (!t)
797
+ return;
798
+ if (e.preventDefault(), this.multiple)
799
+ return this.activateMenu();
800
+ const s = e.keyCode;
801
+ t.isBooted = !0, window.requestAnimationFrame(() => {
802
+ if (t.getTiles(), !t.hasClickableTiles)
803
+ return this.activateMenu();
804
+ switch (s) {
805
+ case l.up:
806
+ t.prevTile();
807
+ break;
808
+ case l.down:
809
+ t.nextTile();
810
+ break;
811
+ case l.home:
812
+ t.firstTile();
813
+ break;
814
+ case l.end:
815
+ t.lastTile();
816
+ break;
817
+ }
818
+ this.selectItem(this.allItems[this.getMenuIndex()]);
819
+ });
820
+ },
821
+ selectItem(e) {
822
+ if (!this.multiple)
823
+ this.setValue(this.returnObject ? e : this.getValue(e)), this.isMenuActive = !1;
824
+ else {
825
+ const t = (this.internalValue || []).slice(), s = this.findExistingIndex(e);
826
+ if (s !== -1 ? t.splice(s, 1) : t.push(e), this.setValue(t.map((i) => this.returnObject ? i : this.getValue(i))), this.hideSelected)
827
+ this.setMenuIndex(-1);
828
+ else {
829
+ const i = this.allItems.indexOf(e);
830
+ ~i && (this.$nextTick(() => this.$refs.menu.getTiles()), setTimeout(() => this.setMenuIndex(i)));
831
+ }
832
+ }
833
+ },
834
+ setMenuIndex(e) {
835
+ this.$refs.menu && (this.$refs.menu.listIndex = e);
836
+ },
837
+ setSelectedItems() {
838
+ const e = [], t = !this.multiple || !Array.isArray(this.internalValue) ? [this.internalValue] : this.internalValue;
839
+ for (const s of t) {
840
+ const i = this.allItems.findIndex((n) => this.valueComparator(this.getValue(n), this.getValue(s)));
841
+ i > -1 && e.push(this.allItems[i]);
842
+ }
843
+ this.selectedItems = e;
844
+ },
845
+ setValue(e) {
846
+ this.valueComparator(e, this.internalValue) || (this.internalValue = e, this.$emit("change", e));
847
+ },
848
+ isAppendInner(e) {
849
+ const t = this.$refs["append-inner"];
850
+ return t && (t === e || t.contains(e));
851
+ }
852
+ }
853
+ });
854
+ C("css/revolugo.vselect.DljSkk6y.css");
855
+ export {
856
+ ee as _,
857
+ $ as d
858
+ };
859
+ //# sourceMappingURL=revolugo.vselect.UcLk_jBF.min.js.map