@revolugo/elements 6.8.3 → 6.9.0-beta.1

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.D-ewuOCW.min.js +37 -0
  12. package/dist/revolugo.bookingdetailssidebar.BRLlzjXQ.min.js +38 -0
  13. package/dist/revolugo.bookingmanager.Ci80ZtQq.min.js +25 -0
  14. package/dist/revolugo.cancellationpoliciesbadge.BmB_v88T.min.js +25 -0
  15. package/dist/revolugo.cancellationpoliciesbadge.props.BWaBFYyA.min.js +30835 -0
  16. package/dist/revolugo.cancellationpolicieslist.CvjZgm65.min.js +25 -0
  17. package/dist/revolugo.creditcardform.DchE6ERe.min.js +25 -0
  18. package/dist/revolugo.creditcardpayment.rFJuxjVg.min.js +25 -0
  19. package/dist/revolugo.currencypickerbtn.c8kPje9S.min.js +25 -0
  20. package/dist/revolugo.fastbookingflow.BpmE5b2x.min.js +35 -0
  21. package/dist/revolugo.fullbookingflow.BEm3P95h.min.js +25 -0
  22. package/dist/revolugo.hoteldescriptionview.Cx7-eby9.min.js +25 -0
  23. package/dist/revolugo.hotelofferlist.DxlYnKuQ.min.js +25 -0
  24. package/dist/revolugo.hoteloffersearchmenu.B1HOhu8q.min.js +73 -0
  25. package/dist/revolugo.hoteloffersmap.Dp9qUMgf.min.js +25 -0
  26. package/dist/revolugo.hoteloffersview.bRZJ4gUf.min.js +20 -0
  27. package/dist/revolugo.hotelroomofferlist.CLWCTZLL.min.js +25 -0
  28. package/dist/revolugo.hotelroomoffersbookingflow.uSv9mKdU.min.js +25 -0
  29. package/dist/revolugo.hotelroomoffersearchmenu.Cis5ipFV.min.js +25 -0
  30. package/dist/revolugo.hotelroomoffersview.D1GjuISX.min.js +25 -0
  31. package/dist/revolugo.index.BE2tE8N5.min.js +106 -0
  32. package/dist/{revolugo.index.wc.7I5uexuc.min.js → revolugo.index.wc.CyK5SkTq.min.js} +12071 -12302
  33. package/dist/revolugo.langpickerbtn.lGFSQhi6.min.js +30 -0
  34. package/dist/revolugo.min.js +1 -1
  35. package/dist/revolugo.prebookform.BJX5iFVi.min.js +25 -0
  36. package/dist/revolugo.preferencesmenu.BG33NHu5.min.js +24 -0
  37. package/dist/revolugo.preferencesmenu.DSZpOi0p.min.js +1098 -0
  38. package/dist/revolugo.roominglisteditor.DMJoetkk.min.js +25 -0
  39. package/dist/revolugo.storybooktoolbar.dFSHlmiH.min.js +846 -0
  40. package/dist/revolugo.termsandconditions.DG62I8gY.min.js +24 -0
  41. package/dist/revolugo.webcomponentwrapper.C-tG4b2e.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,395 +0,0 @@
1
- import { j as ie, k as re, b as H, V as U } from "./revolugo.index.gIPq0z7C.min.js";
2
- import { w as N, u as K, e as ue, m as ce, g as fe, y as de, l as D } from "./revolugo.webcomponentwrapper.DFYGhYzz.min.js";
3
- import { Z as j, _ as Q, ax as ve, aP as ge, a5 as x, D as v, cc as he, bo as Y, M as pe, a as p, aS as Se, $ as B, bR as me, a2 as ye, aE as Ee, C as be, y as $, a6 as xe } from "./revolugo.index.wc.7I5uexuc.min.js";
4
- import { f as we } from "./revolugo.forwardrefs.-bfQnFea.min.js";
5
- function se(e) {
6
- try {
7
- if (typeof document < "u") {
8
- window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
9
- sheets: [],
10
- components: []
11
- };
12
- const n = import.meta.url, o = n.slice(0, n.lastIndexOf("/") + 1) + e;
13
- window.REVOLUGO_ELEMENTS_STYLES.sheets.push(o);
14
- for (const s of REVOLUGO_ELEMENTS_STYLES.components)
15
- s(o);
16
- if (e.indexOf("fonts") >= 0) {
17
- const s = document.createElement("link");
18
- s.rel = "stylesheet", linK.href = o, document.head.appendChild(s);
19
- }
20
- }
21
- } catch (n) {
22
- console.error("[revolugo-elements] ", n);
23
- }
24
- }
25
- function ze(e) {
26
- let {
27
- selectedElement: n,
28
- containerElement: o,
29
- isRtl: s,
30
- isHorizontal: g
31
- } = e;
32
- const h = w(g, o), i = J(g, s, o), d = w(g, n), f = Z(g, n), S = d * 0.4;
33
- return i > f ? f - S : i + h < f + d ? f - h + d + S : i;
34
- }
35
- function Oe(e) {
36
- let {
37
- selectedElement: n,
38
- containerElement: o,
39
- isHorizontal: s
40
- } = e;
41
- const g = w(s, o), h = Z(s, n), i = w(s, n);
42
- return h - g / 2 + i / 2;
43
- }
44
- function q(e, n) {
45
- const o = e ? "scrollWidth" : "scrollHeight";
46
- return (n == null ? void 0 : n[o]) || 0;
47
- }
48
- function ke(e, n) {
49
- const o = e ? "clientWidth" : "clientHeight";
50
- return (n == null ? void 0 : n[o]) || 0;
51
- }
52
- function J(e, n, o) {
53
- if (!o)
54
- return 0;
55
- const {
56
- scrollLeft: s,
57
- offsetWidth: g,
58
- scrollWidth: h
59
- } = o;
60
- return e ? n ? h - g + s : s : o.scrollTop;
61
- }
62
- function w(e, n) {
63
- const o = e ? "offsetWidth" : "offsetHeight";
64
- return (n == null ? void 0 : n[o]) || 0;
65
- }
66
- function Z(e, n) {
67
- const o = e ? "offsetLeft" : "offsetTop";
68
- return (n == null ? void 0 : n[o]) || 0;
69
- }
70
- const Te = Symbol.for("vuetify:v-slide-group"), Ve = Q({
71
- centerActive: Boolean,
72
- direction: {
73
- type: String,
74
- default: "horizontal"
75
- },
76
- symbol: {
77
- type: null,
78
- default: Te
79
- },
80
- nextIcon: {
81
- type: B,
82
- default: "$next"
83
- },
84
- prevIcon: {
85
- type: B,
86
- default: "$prev"
87
- },
88
- showArrows: {
89
- type: [Boolean, String],
90
- validator: (e) => typeof e == "boolean" || ["always", "desktop", "mobile"].includes(e)
91
- },
92
- ...ce(),
93
- ...Se({
94
- mobile: null
95
- }),
96
- ...ue(),
97
- ...re({
98
- selectedClass: "v-slide-group-item--active"
99
- })
100
- }, "VSlideGroup"), Le = j()({
101
- name: "VSlideGroup",
102
- props: Ve(),
103
- emits: {
104
- "update:modelValue": (e) => !0
105
- },
106
- setup(e, n) {
107
- let {
108
- slots: o
109
- } = n;
110
- const {
111
- isRtl: s
112
- } = ve(), {
113
- displayClasses: g,
114
- mobile: h
115
- } = ge(e), i = ie(e, e.symbol), d = x(!1), f = x(0), S = x(0), z = x(0), r = v(() => e.direction === "horizontal"), {
116
- resizeRef: u,
117
- contentRect: m
118
- } = N(), {
119
- resizeRef: c,
120
- contentRect: y
121
- } = N(), E = he(), C = v(() => ({
122
- container: u.el,
123
- duration: 200,
124
- easing: "easeOutQuart"
125
- })), X = v(() => i.selected.value.length ? i.items.value.findIndex((l) => l.id === i.selected.value[0]) : -1), ee = v(() => i.selected.value.length ? i.items.value.findIndex((l) => l.id === i.selected.value[i.selected.value.length - 1]) : -1);
126
- if (Y) {
127
- let l = -1;
128
- pe(() => [i.selected.value, m.value, y.value, r.value], () => {
129
- cancelAnimationFrame(l), l = requestAnimationFrame(() => {
130
- if (m.value && y.value) {
131
- const t = r.value ? "width" : "height";
132
- S.value = m.value[t], z.value = y.value[t], d.value = S.value + 1 < z.value;
133
- }
134
- if (X.value >= 0 && c.el) {
135
- const t = c.el.children[ee.value];
136
- F(t, e.centerActive);
137
- }
138
- });
139
- });
140
- }
141
- const O = x(!1);
142
- function F(l, t) {
143
- let a = 0;
144
- t ? a = Oe({
145
- containerElement: u.el,
146
- isHorizontal: r.value,
147
- selectedElement: l
148
- }) : a = ze({
149
- containerElement: u.el,
150
- isHorizontal: r.value,
151
- isRtl: s.value,
152
- selectedElement: l
153
- }), G(a);
154
- }
155
- function G(l) {
156
- if (!Y || !u.el) return;
157
- const t = w(r.value, u.el), a = J(r.value, s.value, u.el);
158
- if (!(q(r.value, u.el) <= t || // Prevent scrolling by only a couple of pixels, which doesn't look smooth
159
- Math.abs(l - a) < 16)) {
160
- if (r.value && s.value && u.el) {
161
- const {
162
- scrollWidth: L,
163
- offsetWidth: M
164
- } = u.el;
165
- l = L - M - l;
166
- }
167
- r.value ? E.horizontal(l, C.value) : E(l, C.value);
168
- }
169
- }
170
- function te(l) {
171
- const {
172
- scrollTop: t,
173
- scrollLeft: a
174
- } = l.target;
175
- f.value = r.value ? a : t;
176
- }
177
- function le(l) {
178
- if (O.value = !0, !(!d.value || !c.el)) {
179
- for (const t of l.composedPath())
180
- for (const a of c.el.children)
181
- if (a === t) {
182
- F(a);
183
- return;
184
- }
185
- }
186
- }
187
- function oe(l) {
188
- O.value = !1;
189
- }
190
- let T = !1;
191
- function ne(l) {
192
- var t;
193
- !T && !O.value && !(l.relatedTarget && ((t = c.el) != null && t.contains(l.relatedTarget))) && b(), T = !1;
194
- }
195
- function W() {
196
- T = !0;
197
- }
198
- function ae(l) {
199
- if (!c.el) return;
200
- function t(a) {
201
- l.preventDefault(), b(a);
202
- }
203
- r.value ? l.key === "ArrowRight" ? t(s.value ? "prev" : "next") : l.key === "ArrowLeft" && t(s.value ? "next" : "prev") : l.key === "ArrowDown" ? t("next") : l.key === "ArrowUp" && t("prev"), l.key === "Home" ? t("first") : l.key === "End" && t("last");
204
- }
205
- function k(l, t) {
206
- if (!l) return;
207
- let a = l;
208
- do
209
- a = a == null ? void 0 : a[t === "next" ? "nextElementSibling" : "previousElementSibling"];
210
- while (a != null && a.hasAttribute("disabled"));
211
- return a;
212
- }
213
- function b(l) {
214
- if (!c.el) return;
215
- let t;
216
- if (!l)
217
- t = me(c.el)[0];
218
- else if (l === "next") {
219
- if (t = k(c.el.querySelector(":focus"), l), !t) return b("first");
220
- } else if (l === "prev") {
221
- if (t = k(c.el.querySelector(":focus"), l), !t) return b("last");
222
- } else l === "first" ? (t = c.el.firstElementChild, t != null && t.hasAttribute("disabled") && (t = k(t, "next"))) : l === "last" && (t = c.el.lastElementChild, t != null && t.hasAttribute("disabled") && (t = k(t, "prev")));
223
- t && t.focus({
224
- preventScroll: !0
225
- });
226
- }
227
- function V(l) {
228
- const t = r.value && s.value ? -1 : 1, a = (l === "prev" ? -t : t) * S.value;
229
- let I = f.value + a;
230
- if (r.value && s.value && u.el) {
231
- const {
232
- scrollWidth: L,
233
- offsetWidth: M
234
- } = u.el;
235
- I += L - M;
236
- }
237
- G(I);
238
- }
239
- const P = v(() => ({
240
- next: i.next,
241
- prev: i.prev,
242
- select: i.select,
243
- isSelected: i.isSelected
244
- })), R = v(() => {
245
- switch (e.showArrows) {
246
- // Always show arrows on desktop & mobile
247
- case "always":
248
- return !0;
249
- // Always show arrows on desktop
250
- case "desktop":
251
- return !h.value;
252
- // Show arrows on mobile when overflowing.
253
- // This matches the default 2.2 behavior
254
- case !0:
255
- return d.value || Math.abs(f.value) > 0;
256
- // Always show on mobile
257
- case "mobile":
258
- return h.value || d.value || Math.abs(f.value) > 0;
259
- // https://material.io/components/tabs#scrollable-tabs
260
- // Always show arrows when
261
- // overflowed on desktop
262
- default:
263
- return !h.value && (d.value || Math.abs(f.value) > 0);
264
- }
265
- }), _ = v(() => Math.abs(f.value) > 1), A = v(() => {
266
- if (!u.value) return !1;
267
- const l = q(r.value, u.el), t = ke(r.value, u.el);
268
- return l - t - Math.abs(f.value) > 1;
269
- });
270
- return K(() => p(e.tag, {
271
- class: ["v-slide-group", {
272
- "v-slide-group--vertical": !r.value,
273
- "v-slide-group--has-affixes": R.value,
274
- "v-slide-group--is-overflowing": d.value
275
- }, g.value, e.class],
276
- style: e.style,
277
- tabindex: O.value || i.selected.value.length ? -1 : 0,
278
- onFocus: ne
279
- }, {
280
- default: () => {
281
- var l, t, a;
282
- return [R.value && p("div", {
283
- key: "prev",
284
- class: ["v-slide-group__prev", {
285
- "v-slide-group__prev--disabled": !_.value
286
- }],
287
- onMousedown: W,
288
- onClick: () => _.value && V("prev")
289
- }, [((l = o.prev) == null ? void 0 : l.call(o, P.value)) ?? p(H, null, {
290
- default: () => [p(U, {
291
- icon: s.value ? e.nextIcon : e.prevIcon
292
- }, null)]
293
- })]), p("div", {
294
- key: "container",
295
- ref: u,
296
- class: "v-slide-group__container",
297
- onScroll: te
298
- }, [p("div", {
299
- ref: c,
300
- class: "v-slide-group__content",
301
- onFocusin: le,
302
- onFocusout: oe,
303
- onKeydown: ae
304
- }, [(t = o.default) == null ? void 0 : t.call(o, P.value)])]), R.value && p("div", {
305
- key: "next",
306
- class: ["v-slide-group__next", {
307
- "v-slide-group__next--disabled": !A.value
308
- }],
309
- onMousedown: W,
310
- onClick: () => A.value && V("next")
311
- }, [((a = o.next) == null ? void 0 : a.call(o, P.value)) ?? p(H, null, {
312
- default: () => [p(U, {
313
- icon: s.value ? e.prevIcon : e.nextIcon
314
- }, null)]
315
- })])];
316
- }
317
- })), {
318
- selected: i.selected,
319
- scrollTo: V,
320
- scrollOffset: f,
321
- focus: b,
322
- hasPrev: _,
323
- hasNext: A
324
- };
325
- }
326
- }), Pe = Q({
327
- id: String,
328
- text: String,
329
- ...xe(de({
330
- closeOnBack: !1,
331
- location: "end",
332
- locationStrategy: "connected",
333
- eager: !0,
334
- minWidth: 0,
335
- offset: 10,
336
- openOnClick: !1,
337
- openOnHover: !0,
338
- origin: "auto",
339
- scrim: !1,
340
- scrollStrategy: "reposition",
341
- transition: !1
342
- }), ["absolute", "persistent"])
343
- }, "VTooltip"), Me = j()({
344
- name: "VTooltip",
345
- props: Pe(),
346
- emits: {
347
- "update:modelValue": (e) => !0
348
- },
349
- setup(e, n) {
350
- let {
351
- slots: o
352
- } = n;
353
- const s = ye(e, "modelValue"), {
354
- scopeId: g
355
- } = fe(), h = Ee(), i = v(() => e.id || `v-tooltip-${h}`), d = be(), f = v(() => e.location.split(" ").length > 1 ? e.location : e.location + " center"), S = v(() => e.origin === "auto" || e.origin === "overlap" || e.origin.split(" ").length > 1 || e.location.split(" ").length > 1 ? e.origin : e.origin + " center"), z = v(() => e.transition ? e.transition : s.value ? "scale-transition" : "fade-transition"), r = v(() => $({
356
- "aria-describedby": i.value
357
- }, e.activatorProps));
358
- return K(() => {
359
- const u = D.filterProps(e);
360
- return p(D, $({
361
- ref: d,
362
- class: ["v-tooltip", e.class],
363
- style: e.style,
364
- id: i.value
365
- }, u, {
366
- modelValue: s.value,
367
- "onUpdate:modelValue": (m) => s.value = m,
368
- transition: z.value,
369
- absolute: !0,
370
- location: f.value,
371
- origin: S.value,
372
- persistent: !0,
373
- role: "tooltip",
374
- activatorProps: r.value,
375
- _disableGlobalStack: !0
376
- }, g), {
377
- activator: o.activator,
378
- default: function() {
379
- var E;
380
- for (var m = arguments.length, c = new Array(m), y = 0; y < m; y++)
381
- c[y] = arguments[y];
382
- return ((E = o.default) == null ? void 0 : E.call(o, ...c)) ?? e.text;
383
- }
384
- });
385
- }), we({}, d);
386
- }
387
- });
388
- se("css/revolugo.vtooltip.O8QDYs1J.css");
389
- export {
390
- Me as V,
391
- Te as a,
392
- Le as b,
393
- Ve as m
394
- };
395
- //# sourceMappingURL=revolugo.vtooltip.CsXJFD-V.min.js.map