@revolugo/elements 6.8.3-rc.0 → 6.9.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (179) hide show
  1. package/README.md +1 -1
  2. package/dist/css/fonts.css +1 -1
  3. package/dist/css/revolugo.cancellationpoliciesbadge.BCmMv5CR.css +1 -0
  4. package/dist/css/revolugo.index.ClC0OVqq.css +5 -0
  5. package/dist/css/{revolugo.vtoolbar.BZert82L.css → revolugo.preferencesmenu.7UfG9ius.css} +1 -1
  6. package/dist/css/{revolugo.webcomponentwrapper.DRCKFwuk.css → revolugo.webcomponentwrapper.C3K3E5wv.css} +2 -2
  7. package/dist/index.es.min.js +2033 -2172
  8. package/dist/index.es.min.js.map +1 -1
  9. package/dist/index.min.js +6 -6
  10. package/dist/index.min.js.map +1 -1
  11. package/dist/revolugo.banktransferdetails.DIwmwiki.min.js +37 -0
  12. package/dist/revolugo.bookingdetailssidebar.CURYxT7w.min.js +38 -0
  13. package/dist/revolugo.bookingmanager.BgJVEAba.min.js +25 -0
  14. package/dist/revolugo.cancellationpoliciesbadge.CxO1HyOA.min.js +25 -0
  15. package/dist/revolugo.cancellationpoliciesbadge.props.D3C9w_OV.min.js +30875 -0
  16. package/dist/revolugo.cancellationpolicieslist.CClF7R0p.min.js +25 -0
  17. package/dist/revolugo.creditcardform.BLv484O_.min.js +25 -0
  18. package/dist/revolugo.creditcardpayment.BB0ucanh.min.js +25 -0
  19. package/dist/revolugo.currencypickerbtn.DMgpKcz0.min.js +25 -0
  20. package/dist/revolugo.fastbookingflow.D2tOZmpu.min.js +35 -0
  21. package/dist/revolugo.fullbookingflow.BIfijAae.min.js +25 -0
  22. package/dist/revolugo.hoteldescriptionview.C8P4XIvR.min.js +25 -0
  23. package/dist/revolugo.hotelofferlist.CXHGfElj.min.js +25 -0
  24. package/dist/revolugo.hoteloffersearchmenu.CcjkzhZJ.min.js +73 -0
  25. package/dist/revolugo.hoteloffersmap.BsVCYroc.min.js +25 -0
  26. package/dist/revolugo.hoteloffersview.B64f1wvS.min.js +20 -0
  27. package/dist/revolugo.hotelroomofferlist.CfDXaxwp.min.js +25 -0
  28. package/dist/revolugo.hotelroomoffersbookingflow.DH6meEzW.min.js +25 -0
  29. package/dist/revolugo.hotelroomoffersearchmenu.C6m4k_Rr.min.js +25 -0
  30. package/dist/revolugo.hotelroomoffersview.6hxfrH3M.min.js +25 -0
  31. package/dist/revolugo.index.UaUDIMS5.min.js +106 -0
  32. package/dist/{revolugo.index.wc.7I5uexuc.min.js → revolugo.index.wc.DEo_xTvj.min.js} +12071 -12302
  33. package/dist/revolugo.langpickerbtn.B_B4BQwa.min.js +30 -0
  34. package/dist/revolugo.min.js +1 -1
  35. package/dist/revolugo.prebookform.Btuuk21Q.min.js +25 -0
  36. package/dist/revolugo.preferencesmenu.BDPlWGes.min.js +24 -0
  37. package/dist/revolugo.preferencesmenu.BVPHimYi.min.js +1098 -0
  38. package/dist/revolugo.roominglisteditor.B55oRlzf.min.js +25 -0
  39. package/dist/revolugo.storybooktoolbar.DFiFAYLL.min.js +846 -0
  40. package/dist/revolugo.termsandconditions.C2oiRbjY.min.js +24 -0
  41. package/dist/revolugo.webcomponentwrapper.CKFKL54u.min.js +28590 -0
  42. package/package.json +5 -5
  43. package/dist/css/revolugo.bdaterangepicker.CHUExWGL.css +0 -1
  44. package/dist/css/revolugo.bhoteloffersfilterbar.BcnNI4uS.css +0 -1
  45. package/dist/css/revolugo.bhotelroomsdetails.ZHH0C1yQ.css +0 -1
  46. package/dist/css/revolugo.bhotelsearchbar.Bl5_UFe8.css +0 -1
  47. package/dist/css/revolugo.bimagecarousel.BvgD1yrr.css +0 -1
  48. package/dist/css/revolugo.bookingdetailssidebar.CNP_D5F3.css +0 -1
  49. package/dist/css/revolugo.bstarrating.Dxd1LjMb.css +0 -1
  50. package/dist/css/revolugo.btag.g-q3eChG.css +0 -1
  51. package/dist/css/revolugo.cancellationpoliciesbadge.CwgZ0PpX.css +0 -1
  52. package/dist/css/revolugo.creditcardform.DWne0Lnv.css +0 -1
  53. package/dist/css/revolugo.creditcardpayment.D2PE5FCt.css +0 -1
  54. package/dist/css/revolugo.currencypicker.DO0IrmRK.css +0 -1
  55. package/dist/css/revolugo.fullbookingflow.Bm8JAQF7.css +0 -1
  56. package/dist/css/revolugo.hoteldescriptionview.DWuzEuGF.css +0 -1
  57. package/dist/css/revolugo.hotelofferlist.BkctzTMI.css +0 -1
  58. package/dist/css/revolugo.hoteloffersmap.2oSkomDb.css +0 -1
  59. package/dist/css/revolugo.hoteloffersview.Bo2dQWYt.css +0 -1
  60. package/dist/css/revolugo.hotelroomofferlist.DpLXIpgU.css +0 -1
  61. package/dist/css/revolugo.hotelroomoffersbookingflow.LHa5iHB7.css +0 -1
  62. package/dist/css/revolugo.index.DQ3Yd6SO.css +0 -1
  63. package/dist/css/revolugo.index.XNPQF1ia.css +0 -5
  64. package/dist/css/revolugo.langpickerbtn.D2iA6mCb.css +0 -1
  65. package/dist/css/revolugo.position.7fn84IQ5.css +0 -1
  66. package/dist/css/revolugo.prebookform.DmCR7hLv.css +0 -1
  67. package/dist/css/revolugo.termsandconditions.DCvNJQQL.css +0 -1
  68. package/dist/css/revolugo.vautocomplete.CuVjyvcC.css +0 -1
  69. package/dist/css/revolugo.vbadge.BQrRJ9S0.css +0 -1
  70. package/dist/css/revolugo.vbtn.BU0YQ6en.css +0 -1
  71. package/dist/css/revolugo.vcard.B8jNYFn_.css +0 -1
  72. package/dist/css/revolugo.vcheckboxbtn.BQ05xI0T.css +0 -1
  73. package/dist/css/revolugo.vdialog.DwTSAOeg.css +0 -1
  74. package/dist/css/revolugo.vdivider.CTbbZwnv.css +0 -1
  75. package/dist/css/revolugo.vexpansionpanels.RsCANmDP.css +0 -1
  76. package/dist/css/revolugo.vinput.BPiFMorL.css +0 -1
  77. package/dist/css/revolugo.vlabel.BvKaKg7Y.css +0 -1
  78. package/dist/css/revolugo.vlist.BkGS0yqt.css +0 -1
  79. package/dist/css/revolugo.vmenu.DvKwEp1j.css +0 -1
  80. package/dist/css/revolugo.vselect.C5CKHFYB.css +0 -1
  81. package/dist/css/revolugo.vsheet.Dmcoj8cr.css +0 -1
  82. package/dist/css/revolugo.vskeletonloader.BlK8uFkX.css +0 -1
  83. package/dist/css/revolugo.vsnackbar.Cj7AcupY.css +0 -1
  84. package/dist/css/revolugo.vtextarea.HYL6WUNS.css +0 -1
  85. package/dist/css/revolugo.vtextfield.BIH_AWWP.css +0 -1
  86. package/dist/css/revolugo.vtooltip.O8QDYs1J.css +0 -1
  87. package/dist/css/revolugo.vwindowitem.CWBhiE_Y.css +0 -1
  88. package/dist/revolugo._basefor.CodrYJxd.min.js +0 -15
  89. package/dist/revolugo.banktransferdetails.BdulCgI5.min.js +0 -373
  90. package/dist/revolugo.bdaterangepicker.XZNoMSi5.min.js +0 -8435
  91. package/dist/revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.D9Qs1dZa.min.js +0 -61
  92. package/dist/revolugo.bhoteloffersfilterbar.Bryijtf6.min.js +0 -4685
  93. package/dist/revolugo.bhotelroomsdetails.orWBBD_o.min.js +0 -1013
  94. package/dist/revolugo.bhotelsearchbar.DxxqZWkN.min.js +0 -947
  95. package/dist/revolugo.bimagecarousel.DIPN99VA.min.js +0 -598
  96. package/dist/revolugo.bookingdetailssidebar.CD4SMOkC.min.js +0 -24
  97. package/dist/revolugo.bookingdetailssidebar.JOU68R1_.min.js +0 -880
  98. package/dist/revolugo.bookingmanager.B5cM9Mi5.min.js +0 -1789
  99. package/dist/revolugo.bpricesummaryskeleton.YKfKKB5n.min.js +0 -79
  100. package/dist/revolugo.bstarrating.vue_vue_type_script_setup_true_lang.2z9RUthr.min.js +0 -623
  101. package/dist/revolugo.btag.DjjDRtQ7.min.js +0 -387
  102. package/dist/revolugo.cancellationpoliciesbadge.D8ou6oFl.min.js +0 -225
  103. package/dist/revolugo.cancellationpoliciesbadge.jgFCG7yZ.min.js +0 -24
  104. package/dist/revolugo.cancellationpolicieslist.CZImqgN3.min.js +0 -24
  105. package/dist/revolugo.cancellationpolicieslist.D097ASNF.min.js +0 -176
  106. package/dist/revolugo.case-transformers.Dr1oSJkZ.min.js +0 -123
  107. package/dist/revolugo.common.D-l8b0V5.min.js +0 -10
  108. package/dist/revolugo.creditcardform.DNOMVOgZ.min.js +0 -2161
  109. package/dist/revolugo.creditcardform.DvHcDx2P.min.js +0 -24
  110. package/dist/revolugo.creditcardpayment.BLP3RXk4.min.js +0 -893
  111. package/dist/revolugo.creditcardpayment.D3lPKmx1.min.js +0 -24
  112. package/dist/revolugo.currencypicker.CzzS1Adp.min.js +0 -330
  113. package/dist/revolugo.currencypickerbtn.ChUEouGw.min.js +0 -163
  114. package/dist/revolugo.currencypickerbtn.DWnyc54P.min.js +0 -24
  115. package/dist/revolugo.dialog-attach.O2HXPGzj.min.js +0 -28
  116. package/dist/revolugo.dialog-transition.C6S7Ci1s.min.js +0 -114
  117. package/dist/revolugo.fastbookingflow.ChNa4jgv.min.js +0 -34
  118. package/dist/revolugo.forwardrefs.-bfQnFea.min.js +0 -71
  119. package/dist/revolugo.fullbookingflow.ByKmNqgi.min.js +0 -451
  120. package/dist/revolugo.hoteldescriptionview.CbtxEPGG.min.js +0 -3091
  121. package/dist/revolugo.hoteldescriptionview.D3JTbFxn.min.js +0 -24
  122. package/dist/revolugo.hotelofferitemlayout.tBOOIdeT.min.js +0 -259
  123. package/dist/revolugo.hotelofferlist.BVySEYbq.min.js +0 -5744
  124. package/dist/revolugo.hotelofferlist.puK2FNBR.min.js +0 -24
  125. package/dist/revolugo.hotelofferrequestcreator.CbCau_4i.min.js +0 -230
  126. package/dist/revolugo.hoteloffersearchmenu.iiAtyddA.min.js +0 -46
  127. package/dist/revolugo.hoteloffersmap.BRVm5s6N.min.js +0 -8394
  128. package/dist/revolugo.hoteloffersmap.DqKpfjbt.min.js +0 -24
  129. package/dist/revolugo.hoteloffersview.3LJ-m6BY.min.js +0 -620
  130. package/dist/revolugo.hoteloffersview.DsGyT5s7.min.js +0 -19
  131. package/dist/revolugo.hotelroomofferlist.DdMr5qEZ.min.js +0 -24
  132. package/dist/revolugo.hotelroomofferlist.M-3bowQa.min.js +0 -2934
  133. package/dist/revolugo.hotelroomofferrequestcreator.props.CUwZUDcm.min.js +0 -171
  134. package/dist/revolugo.hotelroomoffersbookingflow.Bef_aJFl.min.js +0 -1306
  135. package/dist/revolugo.hotelroomoffersearchmenu.D9Zn_Gjy.min.js +0 -25
  136. package/dist/revolugo.hotelroomoffersearchmenu.Fkf-MQ_8.min.js +0 -232
  137. package/dist/revolugo.hotelroomoffersview.BSth8Xsz.min.js +0 -305
  138. package/dist/revolugo.hotelroomoffersview.oxTgBMSk.min.js +0 -24
  139. package/dist/revolugo.index.D0uSQdJV.min.js +0 -13
  140. package/dist/revolugo.index.gIPq0z7C.min.js +0 -1037
  141. package/dist/revolugo.langpicker.CLdiic9k.min.js +0 -107
  142. package/dist/revolugo.langpickerbtn.BIHQAnjv.min.js +0 -24
  143. package/dist/revolugo.langpickerbtn.DF-m4pCF.min.js +0 -178
  144. package/dist/revolugo.position.hqKd4K_h.min.js +0 -322
  145. package/dist/revolugo.prebookform.B8aMLMuG.min.js +0 -1531
  146. package/dist/revolugo.prebookform.CxK0iSDo.min.js +0 -24
  147. package/dist/revolugo.roominglisteditor.D7WzDtw6.min.js +0 -24
  148. package/dist/revolugo.roominglisteditor.Do-pe811.min.js +0 -391
  149. package/dist/revolugo.rounded.Dnxang6X.min.js +0 -68
  150. package/dist/revolugo.ssrboot.ByGq44eI.min.js +0 -18
  151. package/dist/revolugo.storybooktoolbar.DY_mbXuP.min.js +0 -882
  152. package/dist/revolugo.termsandconditions.DXNFR45_.min.js +0 -423
  153. package/dist/revolugo.termsandconditions.DfGTVPYa.min.js +0 -23
  154. package/dist/revolugo.use-breakpoint-service.CJltQiSH.min.js +0 -106
  155. package/dist/revolugo.vautocomplete.BjPSa1jg.min.js +0 -466
  156. package/dist/revolugo.vbadge.D1RCkHoZ.min.js +0 -118
  157. package/dist/revolugo.vbtn.CQ9EDLRJ.min.js +0 -417
  158. package/dist/revolugo.vcard.DNU4i52n.min.js +0 -329
  159. package/dist/revolugo.vcheckboxbtn.De-k8-O3.min.js +0 -491
  160. package/dist/revolugo.vdialog.CjEajxIC.min.js +0 -139
  161. package/dist/revolugo.vdivider.Cp9bHPnI.min.js +0 -77
  162. package/dist/revolugo.vexpansionpanels.L2ZpX4zd.min.js +0 -276
  163. package/dist/revolugo.vform.Bw9rddZZ.min.js +0 -50
  164. package/dist/revolugo.vinput.P34xrpIC.min.js +0 -477
  165. package/dist/revolugo.vlabel.CLHrAz78.min.js +0 -51
  166. package/dist/revolugo.vlist.hRQlcp5M.min.js +0 -1348
  167. package/dist/revolugo.vmenu.BRFw3Jzk.min.js +0 -152
  168. package/dist/revolugo.vselect.u2C25NCe.min.js +0 -688
  169. package/dist/revolugo.vsheet.8UeU7qQn.min.js +0 -72
  170. package/dist/revolugo.vskeletonloader.Dk0enVo6.min.js +0 -137
  171. package/dist/revolugo.vsnackbar.18JqJsZ2.min.js +0 -202
  172. package/dist/revolugo.vspacer.CPbtu_-W.min.js +0 -7
  173. package/dist/revolugo.vtextarea.Cjuqcka5.min.js +0 -2102
  174. package/dist/revolugo.vtextfield.BUNcwTRK.min.js +0 -509
  175. package/dist/revolugo.vtoolbar.CvbAGFXR.min.js +0 -188
  176. package/dist/revolugo.vtooltip.CsXJFD-V.min.js +0 -395
  177. package/dist/revolugo.vwindowitem.DGRfRU3q.min.js +0 -329
  178. package/dist/revolugo.watch-list.D0FxBTWy.min.js +0 -16
  179. package/dist/revolugo.webcomponentwrapper.DFYGhYzz.min.js +0 -2148
@@ -1,23 +0,0 @@
1
- import { T as r } from "./revolugo.termsandconditions.DXNFR45_.min.js";
2
- import { W as t, _ as p } from "./revolugo.webcomponentwrapper.DFYGhYzz.min.js";
3
- import { d as a, c as m, w as i, r as o, o as c, a as d, n as _, h as C } from "./revolugo.index.wc.7I5uexuc.min.js";
4
- const f = a({
5
- components: {
6
- TermsAndConditions: r,
7
- WebComponentWrapper: t
8
- }
9
- });
10
- function l(n, u, W, T, $, A) {
11
- const e = o("TermsAndConditions", !0), s = o("WebComponentWrapper");
12
- return c(), m(s, null, {
13
- default: i(() => [
14
- d(e, _(C(n.$props)), null, 16)
15
- ]),
16
- _: 1
17
- });
18
- }
19
- const k = /* @__PURE__ */ p(f, [["render", l]]);
20
- export {
21
- k as default
22
- };
23
- //# sourceMappingURL=revolugo.termsandconditions.DfGTVPYa.min.js.map
@@ -1,106 +0,0 @@
1
- import { c9 as x, k as a, d as y, D as v, C as k, ca as O, M as S, cb as g } from "./revolugo.index.wc.7I5uexuc.min.js";
2
- function C(t) {
3
- return /^[2]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/u.test(t);
4
- }
5
- function E(t) {
6
- return t.filter(
7
- (e) => C(e) && a(e, "YYYY-MM-DD").isSameOrAfter(a(), "day")
8
- ).sort(
9
- (e, s) => a(e).isAfter(a(s), "day") ? 1 : -1
10
- );
11
- }
12
- function I(t, r) {
13
- const e = x(E([t, r]));
14
- return e.length === 2 ? e : e.length === 1 ? e[0] === a().format("YYYY-MM-DD") ? [
15
- a().format("YYYY-MM-DD"),
16
- a().add(1, "day").format("YYYY-MM-DD")
17
- ] : [a().format("YYYY-MM-DD"), e[0]] : [
18
- a().format("YYYY-MM-DD"),
19
- a().add(1, "day").format("YYYY-MM-DD")
20
- ];
21
- }
22
- function d(t) {
23
- return `${t}Store`;
24
- }
25
- function N(t) {
26
- const [r, e] = t.split("/");
27
- return function() {
28
- const o = this == null ? void 0 : this[d(r)];
29
- return e ? o[e] : o;
30
- };
31
- }
32
- const q = () => y({
33
- computed: {
34
- $store() {
35
- return {
36
- get: this.get
37
- };
38
- }
39
- },
40
- methods: {
41
- dispatch(t, r) {
42
- const [e, s] = t.split("/");
43
- return this[d(e)][s](r);
44
- },
45
- get(t, r) {
46
- const [e, s] = t.split("/"), o = this == null ? void 0 : this[d(e)], u = s ? o[s] : o;
47
- return typeof u == "function" ? u(r) : u;
48
- }
49
- },
50
- name: "Pathify"
51
- });
52
- function w(t) {
53
- return v(() => {
54
- var e;
55
- const r = (e = t.value) == null ? void 0 : e.$el;
56
- return r || t.value;
57
- });
58
- }
59
- function R(t) {
60
- const r = k(null), e = k(null), s = O(), o = w(t), u = () => {
61
- var n, l, i;
62
- return ((n = o.value) == null ? void 0 : n.className) === g ? o.value : typeof ((l = o.value) == null ? void 0 : l.closest) != "function" ? null : ((i = o.value) == null ? void 0 : i.closest(`.${g}`)) ?? null;
63
- }, Y = v(
64
- () => e.value && s.breakpointObservers[e.value] || {
65
- ready: !1
66
- }
67
- ), b = v(
68
- () => {
69
- var n;
70
- return (n = Object.entries(Y.value).find(
71
- ([l, i]) => l !== "ready" && i === !0
72
- )) == null ? void 0 : n[0];
73
- }
74
- ), c = (n, l, i = !0) => {
75
- const D = ["xs", "sm", "md", "lg", "xl"], f = D.indexOf(
76
- b.value
77
- ), p = D.indexOf(n);
78
- return l === "above" ? i ? p < f : p <= f : i ? p > f : p >= f;
79
- }, M = (n) => c(n, "above"), B = (n) => c(n, "above", !1), $ = (n) => c(n, "below"), h = (n) => c(n, "below", !1), m = () => {
80
- r.value = r.value || u(), r.value && (e.value = r.value.getAttribute("observer-id"));
81
- };
82
- return S(t, () => {
83
- m();
84
- }), {
85
- $breakpointService: Y,
86
- $isCurrentBreakpointAbove: M,
87
- $isCurrentBreakpointAboveOrEqual: B,
88
- $isCurrentBreakpointBelow: $,
89
- $isCurrentBreakpointBelowOrEqual: h,
90
- breakpointObserverEl: r,
91
- breakpointServiceId: e,
92
- breakpointServiceInit: m,
93
- compareToCurrentBreakpoint: c,
94
- currentBreakpoint: b,
95
- getBreakpointObserverRootElement: u
96
- };
97
- }
98
- export {
99
- w as a,
100
- E as b,
101
- N as g,
102
- q as p,
103
- I as s,
104
- R as u
105
- };
106
- //# sourceMappingURL=revolugo.use-breakpoint-service.CJltQiSH.min.js.map
@@ -1,466 +0,0 @@
1
- import { u as Ce, m as Ee, a as xe } from "./revolugo.vselect.u2C25NCe.min.js";
2
- import { c as Me, V as le } from "./revolugo.vtextfield.BUNcwTRK.min.js";
3
- import { d as Ie, u as _e, p as Le } from "./revolugo.webcomponentwrapper.DFYGhYzz.min.js";
4
- import { _ as ie, a5 as A, D as F, J as G, a8 as Ae, a3 as q, aU as Oe, Z as Re, ac as Pe, C as Y, a2 as X, M as z, a6 as Te, a as s, y as R, bG as ae, bH as ne, bI as De, R as ue, bo as Ke, F as H, bJ as Ue, bK as Ne, f as je } from "./revolugo.index.wc.7I5uexuc.min.js";
5
- import { b as Be } from "./revolugo.vinput.P34xrpIC.min.js";
6
- import { f as Ge } from "./revolugo.forwardrefs.-bfQnFea.min.js";
7
- import { u as Ye, b as ze, V as oe } from "./revolugo.vlist.hRQlcp5M.min.js";
8
- import { V as re, h as He, a as Je } from "./revolugo.index.gIPq0z7C.min.js";
9
- import { V as Qe } from "./revolugo.vmenu.BRFw3Jzk.min.js";
10
- import { a as We } from "./revolugo.vcheckboxbtn.De-k8-O3.min.js";
11
- import { V as Ze } from "./revolugo.btag.DjjDRtQ7.min.js";
12
- function Fe(e) {
13
- try {
14
- if (typeof document < "u") {
15
- window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
16
- sheets: [],
17
- components: []
18
- };
19
- const r = import.meta.url, l = r.slice(0, r.lastIndexOf("/") + 1) + e;
20
- window.REVOLUGO_ELEMENTS_STYLES.sheets.push(l);
21
- for (const g of REVOLUGO_ELEMENTS_STYLES.components)
22
- g(l);
23
- if (e.indexOf("fonts") >= 0) {
24
- const g = document.createElement("link");
25
- g.rel = "stylesheet", linK.href = l, document.head.appendChild(g);
26
- }
27
- }
28
- } catch (r) {
29
- console.error("[revolugo-elements] ", r);
30
- }
31
- }
32
- const $e = (e, r, l) => e == null || r == null ? -1 : e.toString().toLocaleLowerCase().indexOf(r.toString().toLocaleLowerCase()), Xe = ie({
33
- customFilter: Function,
34
- customKeyFilter: Object,
35
- filterKeys: [Array, String],
36
- filterMode: {
37
- type: String,
38
- default: "intersection"
39
- },
40
- noFilter: Boolean
41
- }, "filter");
42
- function qe(e, r, l) {
43
- var x;
44
- const g = [], m = (l == null ? void 0 : l.default) ?? $e, y = l != null && l.filterKeys ? q(l.filterKeys) : !1, V = Object.keys((l == null ? void 0 : l.customKeyFilter) ?? {}).length;
45
- if (!(e != null && e.length)) return g;
46
- e: for (let S = 0; S < e.length; S++) {
47
- const [w, M = w] = q(e[S]), i = {}, u = {};
48
- let p = -1;
49
- if ((r || V > 0) && !(l != null && l.noFilter)) {
50
- if (typeof w == "object") {
51
- const P = y || Object.keys(M);
52
- for (const C of P) {
53
- const K = Oe(M, C), T = (x = l == null ? void 0 : l.customKeyFilter) == null ? void 0 : x[C];
54
- if (p = T ? T(K, r, w) : m(K, r, w), p !== -1 && p !== !1)
55
- T ? i[C] = p : u[C] = p;
56
- else if ((l == null ? void 0 : l.filterMode) === "every")
57
- continue e;
58
- }
59
- } else
60
- p = m(w, r, w), p !== -1 && p !== !1 && (u.title = p);
61
- const I = Object.keys(u).length, _ = Object.keys(i).length;
62
- if (!I && !_ || (l == null ? void 0 : l.filterMode) === "union" && _ !== V && !I || (l == null ? void 0 : l.filterMode) === "intersection" && (_ !== V || !I)) continue;
63
- }
64
- g.push({
65
- index: S,
66
- matches: {
67
- ...u,
68
- ...i
69
- }
70
- });
71
- }
72
- return g;
73
- }
74
- function et(e, r, l, g) {
75
- const m = A([]), y = A(/* @__PURE__ */ new Map()), V = F(() => G(r));
76
- Ae(() => {
77
- const S = typeof l == "function" ? l() : G(l), w = typeof S != "string" && typeof S != "number" ? "" : String(S), M = qe(V.value, w, {
78
- customKeyFilter: {
79
- ...e.customKeyFilter,
80
- ...G(g == null ? void 0 : g.customKeyFilter)
81
- },
82
- default: e.customFilter,
83
- filterKeys: e.filterKeys,
84
- filterMode: e.filterMode,
85
- noFilter: e.noFilter
86
- }), i = G(r), u = [], p = /* @__PURE__ */ new Map();
87
- M.forEach((I) => {
88
- let {
89
- index: _,
90
- matches: P
91
- } = I;
92
- const C = i[_];
93
- u.push(C), p.set(C.value, P);
94
- }), m.value = u, y.value = p;
95
- });
96
- function x(S) {
97
- return y.value.get(S.value);
98
- }
99
- return {
100
- filteredItems: m,
101
- filteredMatches: y,
102
- getMatches: x
103
- };
104
- }
105
- function tt(e, r, l) {
106
- if (r == null) return e;
107
- if (Array.isArray(r)) throw new Error("Multiple matches is not implemented");
108
- return typeof r == "number" && ~r ? s(H, null, [s("span", {
109
- class: "v-autocomplete__unmask"
110
- }, [e.substr(0, r)]), s("span", {
111
- class: "v-autocomplete__mask"
112
- }, [e.substr(r, l)]), s("span", {
113
- class: "v-autocomplete__unmask"
114
- }, [e.substr(r + l)])]) : e;
115
- }
116
- const lt = ie({
117
- autoSelectFirst: {
118
- type: [Boolean, String]
119
- },
120
- clearOnSelect: Boolean,
121
- search: String,
122
- ...Xe({
123
- filterKeys: ["title"]
124
- }),
125
- ...Ee(),
126
- ...Te(Me({
127
- modelValue: null,
128
- role: "combobox"
129
- }), ["validationValue", "dirty", "appendInnerIcon"]),
130
- ...Le({
131
- transition: !1
132
- })
133
- }, "VAutocomplete"), mt = Re()({
134
- name: "VAutocomplete",
135
- props: lt(),
136
- emits: {
137
- "update:focused": (e) => !0,
138
- "update:search": (e) => !0,
139
- "update:modelValue": (e) => !0,
140
- "update:menu": (e) => !0
141
- },
142
- setup(e, r) {
143
- let {
144
- slots: l
145
- } = r;
146
- const {
147
- t: g
148
- } = Pe(), m = Y(), y = A(!1), V = A(!0), x = A(!1), S = Y(), w = Y(), M = X(e, "menu"), i = F({
149
- get: () => M.value,
150
- set: (t) => {
151
- var a;
152
- M.value && !t && ((a = S.value) != null && a.ΨopenChildren.size) || (M.value = t);
153
- }
154
- }), u = A(-1), p = F(() => {
155
- var t;
156
- return (t = m.value) == null ? void 0 : t.color;
157
- }), I = F(() => i.value ? e.closeText : e.openText), {
158
- items: _,
159
- transformIn: P,
160
- transformOut: C
161
- } = Ye(e), {
162
- textColorClasses: K,
163
- textColorStyles: T
164
- } = Ie(p), v = X(e, "search", ""), o = X(e, "modelValue", [], (t) => P(t === null ? [null] : q(t)), (t) => {
165
- const a = C(t);
166
- return e.multiple ? a : a[0] ?? null;
167
- }), se = F(() => typeof e.counterValue == "function" ? e.counterValue(o.value) : typeof e.counterValue == "number" ? e.counterValue : o.value.length), U = Be(e), {
168
- filteredItems: J,
169
- getMatches: ce
170
- } = et(e, _, () => V.value ? "" : v.value), E = F(() => e.hideSelected ? J.value.filter((t) => !o.value.some((a) => a.value === t.value)) : J.value), N = F(() => !!(e.chips || l.chip)), D = F(() => N.value || !!l.selection), fe = F(() => o.value.map((t) => t.props.value)), Q = F(() => {
171
- var a;
172
- return (e.autoSelectFirst === !0 || e.autoSelectFirst === "exact" && v.value === ((a = E.value[0]) == null ? void 0 : a.title)) && E.value.length > 0 && !V.value && !x.value;
173
- }), W = F(() => e.hideNoData && !E.value.length || U.isReadonly.value || U.isDisabled.value), Z = Y(), ve = Ce(Z, m);
174
- function de(t) {
175
- e.openOnClear && (i.value = !0), v.value = "";
176
- }
177
- function me() {
178
- W.value || (i.value = !0);
179
- }
180
- function he(t) {
181
- W.value || (y.value && (t.preventDefault(), t.stopPropagation()), i.value = !i.value);
182
- }
183
- function ge(t) {
184
- var a;
185
- t.key !== " " && ae(t) && ((a = m.value) == null || a.focus());
186
- }
187
- function ye(t) {
188
- var n, c, k;
189
- if (U.isReadonly.value) return;
190
- const a = m.value.selectionStart, f = o.value.length;
191
- if (["Enter", "ArrowDown", "ArrowUp"].includes(t.key) && t.preventDefault(), ["Enter", "ArrowDown"].includes(t.key) && (i.value = !0), ["Escape"].includes(t.key) && (i.value = !1), Q.value && ["Enter", "Tab"].includes(t.key) && !o.value.some((d) => {
192
- let {
193
- value: h
194
- } = d;
195
- return h === E.value[0].value;
196
- }) && L(E.value[0]), t.key === "ArrowDown" && Q.value && ((n = Z.value) == null || n.focus("next")), ["Backspace", "Delete"].includes(t.key)) {
197
- if (!e.multiple && D.value && o.value.length > 0 && !v.value) return L(o.value[0], !1);
198
- if (~u.value) {
199
- t.preventDefault();
200
- const d = u.value;
201
- L(o.value[u.value], !1), u.value = d >= f - 1 ? f - 2 : d;
202
- } else t.key === "Backspace" && !v.value && (u.value = f - 1);
203
- return;
204
- }
205
- if (e.multiple)
206
- if (t.key === "ArrowLeft") {
207
- if (u.value < 0 && a > 0) return;
208
- const d = u.value > -1 ? u.value - 1 : f - 1;
209
- o.value[d] ? u.value = d : (u.value = -1, m.value.setSelectionRange((c = v.value) == null ? void 0 : c.length, (k = v.value) == null ? void 0 : k.length));
210
- } else if (t.key === "ArrowRight") {
211
- if (u.value < 0) return;
212
- const d = u.value + 1;
213
- o.value[d] ? u.value = d : (u.value = -1, m.value.setSelectionRange(0, 0));
214
- } else ~u.value && ae(t) && (u.value = -1);
215
- }
216
- function Ve(t) {
217
- if (ne(m.value, ":autofill") || ne(m.value, ":-webkit-autofill")) {
218
- const a = _.value.find((f) => f.title === t.target.value);
219
- a && L(a);
220
- }
221
- }
222
- function pe() {
223
- var t;
224
- e.eager && ((t = w.value) == null || t.calculateVisibleItems());
225
- }
226
- function Se() {
227
- var t;
228
- y.value && (V.value = !0, (t = m.value) == null || t.focus());
229
- }
230
- function ke(t) {
231
- y.value = !0, setTimeout(() => {
232
- x.value = !0;
233
- });
234
- }
235
- function be(t) {
236
- x.value = !1;
237
- }
238
- function we(t) {
239
- (t == null || t === "" && !e.multiple && !D.value) && (o.value = []);
240
- }
241
- const $ = A(!1);
242
- function L(t) {
243
- let a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
244
- if (!(!t || t.props.disabled))
245
- if (e.multiple) {
246
- const f = o.value.findIndex((c) => (e.valueComparator || De)(c.value, t.value)), n = a ?? !~f;
247
- if (~f) {
248
- const c = n ? [...o.value, t] : [...o.value];
249
- c.splice(f, 1), o.value = c;
250
- } else n && (o.value = [...o.value, t]);
251
- e.clearOnSelect && (v.value = "");
252
- } else {
253
- const f = a !== !1;
254
- o.value = f ? [t] : [], v.value = f && !D.value ? t.title : "", ue(() => {
255
- i.value = !1, V.value = !0;
256
- });
257
- }
258
- }
259
- return z(y, (t, a) => {
260
- var f;
261
- t !== a && (t ? ($.value = !0, v.value = e.multiple || D.value ? "" : String(((f = o.value.at(-1)) == null ? void 0 : f.props.title) ?? ""), V.value = !0, ue(() => $.value = !1)) : (!e.multiple && v.value == null && (o.value = []), i.value = !1, o.value.some((n) => {
262
- let {
263
- title: c
264
- } = n;
265
- return c === v.value;
266
- }) || (v.value = ""), u.value = -1));
267
- }), z(v, (t) => {
268
- !y.value || $.value || (t && (i.value = !0), V.value = !t);
269
- }), z(i, () => {
270
- if (!e.hideSelected && i.value && o.value.length) {
271
- const t = E.value.findIndex((a) => o.value.some((f) => a.value === f.value));
272
- Ke && window.requestAnimationFrame(() => {
273
- var a;
274
- t >= 0 && ((a = w.value) == null || a.scrollToIndex(t));
275
- });
276
- }
277
- }), z(() => e.items, (t, a) => {
278
- i.value || y.value && !a.length && t.length && (i.value = !0);
279
- }), _e(() => {
280
- const t = !!(!e.hideNoData || E.value.length || l["prepend-item"] || l["append-item"] || l["no-data"]), a = o.value.length > 0, f = le.filterProps(e);
281
- return s(le, R({
282
- ref: m
283
- }, f, {
284
- modelValue: v.value,
285
- "onUpdate:modelValue": [(n) => v.value = n, we],
286
- focused: y.value,
287
- "onUpdate:focused": (n) => y.value = n,
288
- validationValue: o.externalValue,
289
- counterValue: se.value,
290
- dirty: a,
291
- onChange: Ve,
292
- class: ["v-autocomplete", `v-autocomplete--${e.multiple ? "multiple" : "single"}`, {
293
- "v-autocomplete--active-menu": i.value,
294
- "v-autocomplete--chips": !!e.chips,
295
- "v-autocomplete--selection-slot": !!D.value,
296
- "v-autocomplete--selecting-index": u.value > -1
297
- }, e.class],
298
- style: e.style,
299
- readonly: U.isReadonly.value,
300
- placeholder: a ? void 0 : e.placeholder,
301
- "onClick:clear": de,
302
- "onMousedown:control": me,
303
- onKeydown: ye
304
- }), {
305
- ...l,
306
- default: () => s(H, null, [s(Qe, R({
307
- ref: S,
308
- modelValue: i.value,
309
- "onUpdate:modelValue": (n) => i.value = n,
310
- activator: "parent",
311
- contentClass: "v-autocomplete__content",
312
- disabled: W.value,
313
- eager: e.eager,
314
- maxHeight: 310,
315
- openOnClick: !1,
316
- closeOnContentClick: !1,
317
- transition: e.transition,
318
- onAfterEnter: pe,
319
- onAfterLeave: Se
320
- }, e.menuProps), {
321
- default: () => [t && s(ze, R({
322
- ref: Z,
323
- selected: fe.value,
324
- selectStrategy: e.multiple ? "independent" : "single-independent",
325
- onMousedown: (n) => n.preventDefault(),
326
- onKeydown: ge,
327
- onFocusin: ke,
328
- onFocusout: be,
329
- tabindex: "-1",
330
- "aria-live": "polite",
331
- color: e.itemColor ?? e.color
332
- }, ve, e.listProps), {
333
- default: () => {
334
- var n, c, k;
335
- return [(n = l["prepend-item"]) == null ? void 0 : n.call(l), !E.value.length && !e.hideNoData && (((c = l["no-data"]) == null ? void 0 : c.call(l)) ?? s(oe, {
336
- key: "no-data",
337
- title: g(e.noDataText)
338
- }, null)), s(xe, {
339
- ref: w,
340
- renderless: !0,
341
- items: E.value
342
- }, {
343
- default: (d) => {
344
- var te;
345
- let {
346
- item: h,
347
- index: O,
348
- itemRef: b
349
- } = d;
350
- const ee = R(h.props, {
351
- ref: b,
352
- key: h.value,
353
- active: Q.value && O === 0 ? !0 : void 0,
354
- onClick: () => L(h, null)
355
- });
356
- return ((te = l.item) == null ? void 0 : te.call(l, {
357
- item: h,
358
- index: O,
359
- props: ee
360
- })) ?? s(oe, R(ee, {
361
- role: "option"
362
- }), {
363
- prepend: (j) => {
364
- let {
365
- isSelected: B
366
- } = j;
367
- return s(H, null, [e.multiple && !e.hideSelected ? s(We, {
368
- key: h.value,
369
- modelValue: B,
370
- ripple: !1,
371
- tabindex: "-1"
372
- }, null) : void 0, h.props.prependAvatar && s(He, {
373
- image: h.props.prependAvatar
374
- }, null), h.props.prependIcon && s(re, {
375
- icon: h.props.prependIcon
376
- }, null)]);
377
- },
378
- title: () => {
379
- var j, B;
380
- return V.value ? h.title : tt(h.title, (j = ce(h)) == null ? void 0 : j.title, ((B = v.value) == null ? void 0 : B.length) ?? 0);
381
- }
382
- });
383
- }
384
- }), (k = l["append-item"]) == null ? void 0 : k.call(l)];
385
- }
386
- })]
387
- }), o.value.map((n, c) => {
388
- function k(b) {
389
- b.stopPropagation(), b.preventDefault(), L(n, !1);
390
- }
391
- const d = {
392
- "onClick:close": k,
393
- onKeydown(b) {
394
- b.key !== "Enter" && b.key !== " " || (b.preventDefault(), b.stopPropagation(), k(b));
395
- },
396
- onMousedown(b) {
397
- b.preventDefault(), b.stopPropagation();
398
- },
399
- modelValue: !0,
400
- "onUpdate:modelValue": void 0
401
- }, h = N.value ? !!l.chip : !!l.selection, O = h ? Ne(N.value ? l.chip({
402
- item: n,
403
- index: c,
404
- props: d
405
- }) : l.selection({
406
- item: n,
407
- index: c
408
- })) : void 0;
409
- if (!(h && !O))
410
- return s("div", {
411
- key: n.value,
412
- class: ["v-autocomplete__selection", c === u.value && ["v-autocomplete__selection--selected", K.value]],
413
- style: c === u.value ? T.value : {}
414
- }, [N.value ? l.chip ? s(Je, {
415
- key: "chip-defaults",
416
- defaults: {
417
- VChip: {
418
- closable: e.closableChips,
419
- size: "small",
420
- text: n.title
421
- }
422
- }
423
- }, {
424
- default: () => [O]
425
- }) : s(Ze, R({
426
- key: "chip",
427
- closable: e.closableChips,
428
- size: "small",
429
- text: n.title,
430
- disabled: n.props.disabled
431
- }, d), null) : O ?? s("span", {
432
- class: "v-autocomplete__selection-text"
433
- }, [n.title, e.multiple && c < o.value.length - 1 && s("span", {
434
- class: "v-autocomplete__selection-comma"
435
- }, [je(",")])])]);
436
- })]),
437
- "append-inner": function() {
438
- var d;
439
- for (var n = arguments.length, c = new Array(n), k = 0; k < n; k++)
440
- c[k] = arguments[k];
441
- return s(H, null, [(d = l["append-inner"]) == null ? void 0 : d.call(l, ...c), e.menuIcon ? s(re, {
442
- class: "v-autocomplete__menu-icon",
443
- icon: e.menuIcon,
444
- onMousedown: he,
445
- onClick: Ue,
446
- "aria-label": g(I.value),
447
- title: g(I.value),
448
- tabindex: "-1"
449
- }, null) : void 0]);
450
- }
451
- });
452
- }), Ge({
453
- isFocused: y,
454
- isPristine: V,
455
- menu: i,
456
- search: v,
457
- filteredItems: J,
458
- select: L
459
- }, m);
460
- }
461
- });
462
- Fe("css/revolugo.vautocomplete.CuVjyvcC.css");
463
- export {
464
- mt as V
465
- };
466
- //# sourceMappingURL=revolugo.vautocomplete.BjPSa1jg.min.js.map