@revolugo/elements 5.5.2-beta.9 → 5.5.2-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (247) hide show
  1. package/dist/css/revolugo.0.min.css +5 -0
  2. package/dist/css/revolugo.1.min.css +1 -0
  3. package/dist/css/revolugo.11.min.css +1 -0
  4. package/dist/css/revolugo.12.min.css +1 -0
  5. package/dist/css/revolugo.13.min.css +1 -0
  6. package/dist/css/revolugo.14.min.css +1 -0
  7. package/dist/css/revolugo.15.min.css +1 -0
  8. package/dist/css/revolugo.16.min.css +1 -0
  9. package/dist/css/revolugo.17.min.css +1 -0
  10. package/dist/css/revolugo.18.min.css +1 -0
  11. package/dist/css/revolugo.19.min.css +1 -0
  12. package/dist/css/revolugo.2.min.css +1 -0
  13. package/dist/css/revolugo.20.min.css +1 -0
  14. package/dist/css/revolugo.21.min.css +1 -0
  15. package/dist/css/revolugo.22.min.css +1 -0
  16. package/dist/css/revolugo.23.min.css +1 -0
  17. package/dist/css/revolugo.24.min.css +1 -0
  18. package/dist/css/revolugo.25.min.css +1 -0
  19. package/dist/css/revolugo.26.min.css +1 -0
  20. package/dist/css/revolugo.27.min.css +1 -0
  21. package/dist/css/revolugo.28.min.css +1 -0
  22. package/dist/css/revolugo.29.min.css +1 -0
  23. package/dist/css/revolugo.30.min.css +1 -0
  24. package/dist/css/revolugo.31.min.css +1 -0
  25. package/dist/css/revolugo.32.min.css +1 -0
  26. package/dist/css/revolugo.33.min.css +1 -0
  27. package/dist/css/revolugo.34.min.css +1 -0
  28. package/dist/css/revolugo.4.min.css +1 -0
  29. package/dist/css/revolugo.5.min.css +1 -0
  30. package/dist/css/revolugo.6.min.css +1 -0
  31. package/dist/css/revolugo.7.min.css +1 -0
  32. package/dist/css/revolugo.fonts.min.css +1 -0
  33. package/dist/fonts/amenities.2aad1d12.woff +0 -0
  34. package/dist/fonts/amenities.9adae269.ttf +0 -0
  35. package/dist/fonts/amenities.a9bf50f8.svg +42 -0
  36. package/dist/fonts/amenities.bd6b3a4a.eot +0 -0
  37. package/dist/fonts/beds.2b8e38c8.svg +12 -0
  38. package/dist/img/apst.c1092975.png +0 -0
  39. package/dist/img/apst.ec7669f2.png +0 -0
  40. package/dist/img/atout-france.72107e30.png +0 -0
  41. package/dist/img/atout-france.df038f22.png +0 -0
  42. package/dist/img/revolugo.179c459d.png +0 -0
  43. package/dist/img/revolugo.e0879dcc.png +0 -0
  44. package/dist/img/stripe.405543e2.png +0 -0
  45. package/dist/img/stripe.c3e16f9f.png +0 -0
  46. package/dist/index.min.js +1 -65
  47. package/dist/revolugo.0.min.js +18 -0
  48. package/dist/revolugo.1.min.js +1 -0
  49. package/dist/revolugo.11.min.js +134 -0
  50. package/dist/revolugo.12.min.js +19 -0
  51. package/dist/revolugo.13.min.js +14 -0
  52. package/dist/revolugo.14.min.js +19 -0
  53. package/dist/revolugo.15.min.js +139 -0
  54. package/dist/revolugo.16.min.js +14 -0
  55. package/dist/revolugo.17.min.js +14 -0
  56. package/dist/revolugo.18.min.js +1 -0
  57. package/dist/revolugo.19.min.js +1 -0
  58. package/dist/revolugo.2.min.js +1 -0
  59. package/dist/revolugo.20.min.js +1 -0
  60. package/dist/revolugo.21.min.js +116 -0
  61. package/dist/revolugo.22.min.js +1 -0
  62. package/dist/revolugo.23.min.js +1 -0
  63. package/dist/revolugo.24.min.js +1 -0
  64. package/dist/revolugo.25.min.js +1 -0
  65. package/dist/revolugo.26.min.js +1 -0
  66. package/dist/revolugo.27.min.js +1 -0
  67. package/dist/revolugo.28.min.js +116 -0
  68. package/dist/revolugo.29.min.js +1 -0
  69. package/dist/revolugo.30.min.js +1 -0
  70. package/dist/revolugo.31.min.js +1 -0
  71. package/dist/revolugo.32.min.js +1 -0
  72. package/dist/revolugo.33.min.js +1 -0
  73. package/dist/revolugo.34.min.js +1 -0
  74. package/dist/revolugo.35.min.js +1 -0
  75. package/dist/revolugo.36.min.js +1 -0
  76. package/dist/revolugo.4.min.js +1 -0
  77. package/dist/revolugo.5.min.js +1 -0
  78. package/dist/revolugo.6.min.js +1 -0
  79. package/dist/revolugo.7.min.js +1 -0
  80. package/dist/revolugo.en-US.min.js +1 -0
  81. package/dist/revolugo.fonts.min.js +1 -0
  82. package/dist/revolugo.fr-FR.min.js +1 -0
  83. package/dist/revolugo.min.js +7 -257
  84. package/package.json +26 -29
  85. package/dist/css/fonts.css +0 -1
  86. package/dist/css/revolugo.bdaterangepicker.DEh20utH.css +0 -1
  87. package/dist/css/revolugo.bhotelroomsdetails.4XsxkvH7.css +0 -1
  88. package/dist/css/revolugo.bhotelsearchbar.dwYB1gUC.css +0 -1
  89. package/dist/css/revolugo.bookingdetailssidebar.tDtXpaIj.css +0 -1
  90. package/dist/css/revolugo.bphoneinput.Kq_-XiGI.css +0 -1
  91. package/dist/css/revolugo.bstarrating.nzH7iii4.css +0 -1
  92. package/dist/css/revolugo.btag.Bdbqb_8a.css +0 -1
  93. package/dist/css/revolugo.common.BSIsYREh.css +0 -1
  94. package/dist/css/revolugo.creditcardform.BGPUxkRC.css +0 -1
  95. package/dist/css/revolugo.creditcardpayment.0MNnDloZ.css +0 -1
  96. package/dist/css/revolugo.currencypicker.BRYsKdMu.css +0 -1
  97. package/dist/css/revolugo.fullbookingflow.BHV7_MhK.css +0 -1
  98. package/dist/css/revolugo.hotel-offer.Di9LJKMP.css +0 -1
  99. package/dist/css/revolugo.hoteldescriptionview.9ofE1uWG.css +0 -1
  100. package/dist/css/revolugo.hoteloffersmap.-ZhDcfsj.css +0 -1
  101. package/dist/css/revolugo.hoteloffersview.MWOmwEwv.css +0 -1
  102. package/dist/css/revolugo.hotelroomofferlist.xJfKaofV.css +0 -1
  103. package/dist/css/revolugo.hotelroomoffersbookingflow.PPEIqHuM.css +0 -1
  104. package/dist/css/revolugo.hotelroomoffersview.B8Y-2QYc.css +0 -1
  105. package/dist/css/revolugo.index.BMkl7a3p.css +0 -1
  106. package/dist/css/revolugo.index.CFW4Oklv.css +0 -1
  107. package/dist/css/revolugo.index.DXv5c7NS.css +0 -1
  108. package/dist/css/revolugo.langpicker.B3TsOwUq.css +0 -1
  109. package/dist/css/revolugo.parsed-height.FfkITAOo.css +0 -1
  110. package/dist/css/revolugo.parsed-props.C3kOvm7T.css +0 -1
  111. package/dist/css/revolugo.prebookform.DBm2B4rS.css +0 -1
  112. package/dist/css/revolugo.revolugo-config.Dg8v1l3c.css +0 -5
  113. package/dist/css/revolugo.storybooktoolbar.CVnww0dZ.css +0 -1
  114. package/dist/css/revolugo.termsandconditions.DV2YnGzG.css +0 -1
  115. package/dist/css/revolugo.valert.BzcMswjJ.css +0 -1
  116. package/dist/css/revolugo.vautocomplete.OMX_yAge.css +0 -1
  117. package/dist/css/revolugo.vbadge.CiK_DSkI.css +0 -1
  118. package/dist/css/revolugo.vbtn.By46MJOU.css +0 -1
  119. package/dist/css/revolugo.vcard.DmB53ZNL.css +0 -1
  120. package/dist/css/revolugo.vchip.BdAdP6lC.css +0 -1
  121. package/dist/css/revolugo.vdialog.C02Cvwul.css +0 -1
  122. package/dist/css/revolugo.vexpansionpanelheader.B2eKo8Lo.css +0 -1
  123. package/dist/css/revolugo.vinput.SfhpXNi0.css +0 -1
  124. package/dist/css/revolugo.vitemgroup.EbHsz8Rr.css +0 -1
  125. package/dist/css/revolugo.vlistitem.BzwNE1YK.css +0 -1
  126. package/dist/css/revolugo.vmenu.BKE0IO4q.css +0 -1
  127. package/dist/css/revolugo.vselect.DljSkk6y.css +0 -1
  128. package/dist/css/revolugo.vsheet.Dtdo2Rps.css +0 -1
  129. package/dist/css/revolugo.vskeletonloader.BpGoaAbZ.css +0 -1
  130. package/dist/css/revolugo.vslidegroup.D5TIbmaw.css +0 -1
  131. package/dist/css/revolugo.vsnackbar.DTAXPYkr.css +0 -1
  132. package/dist/css/revolugo.vtextfield.BliJY6uv.css +0 -1
  133. package/dist/css/revolugo.vtoolbar.DQsezjcM.css +0 -1
  134. package/dist/css/revolugo.vtooltip.B_oOB9pj.css +0 -1
  135. package/dist/css/revolugo.vuetify.BpIoHlAi.css +0 -1
  136. package/dist/css/revolugo.webcomponentwrapper.BRZRuwZ0.css +0 -1
  137. package/dist/index.es.min.js +0 -13850
  138. package/dist/index.es.min.js.map +0 -1
  139. package/dist/index.min.js.map +0 -1
  140. package/dist/revolugo.banktransferdetails.C7_zVOmo.min.js +0 -105
  141. package/dist/revolugo.bbreakfastoptionbadge.Ce49dA49.min.js +0 -62
  142. package/dist/revolugo.bdaterangepicker.Bn7furEJ.min.js +0 -1351
  143. package/dist/revolugo.bformattedamount.BFXskYwq.min.js +0 -82
  144. package/dist/revolugo.bhotelroomsdetails.CGzQEygX.min.js +0 -213
  145. package/dist/revolugo.bhotelsearchbar.AZssZXVa.min.js +0 -446
  146. package/dist/revolugo.booking-api-client.sLozEu8x.min.js +0 -7472
  147. package/dist/revolugo.bookingdetailssidebar.Cyh9ESY5.min.js +0 -242
  148. package/dist/revolugo.bookingdetailssidebar.CzJuxCyi.min.js +0 -28
  149. package/dist/revolugo.bookingmanager.DFOGB8oH.min.js +0 -405
  150. package/dist/revolugo.bphoneinput.BD5yV30G.min.js +0 -1935
  151. package/dist/revolugo.bpricesummaryskeleton.DLPx7XMt.min.js +0 -47
  152. package/dist/revolugo.breakpoint-service.CligvfbR.min.js +0 -65
  153. package/dist/revolugo.bstarrating.EUallQbz.min.js +0 -173
  154. package/dist/revolugo.btag.BFCVF0Me.min.js +0 -68
  155. package/dist/revolugo.cancellationpoliciesbadge.BlUG2A9X.min.js +0 -92
  156. package/dist/revolugo.cancellationpoliciesbadge.DOwMr0x3.min.js +0 -28
  157. package/dist/revolugo.cancellationpolicieslist.5yiBohSU.min.js +0 -317
  158. package/dist/revolugo.cancellationpolicieslist.fjdTs1rY.min.js +0 -28
  159. package/dist/revolugo.common.C_rtPL-E.min.js +0 -34
  160. package/dist/revolugo.creditcardform.BsdKbnXx.min.js +0 -28
  161. package/dist/revolugo.creditcardform.C4KL6e78.min.js +0 -2047
  162. package/dist/revolugo.creditcardpayment.CLaSbFFC.min.js +0 -288
  163. package/dist/revolugo.creditcardpayment.RGU5VhA2.min.js +0 -28
  164. package/dist/revolugo.currencypicker.wqREtJ__.min.js +0 -122
  165. package/dist/revolugo.currencypickerbtn.B2m0S_4y.min.js +0 -28
  166. package/dist/revolugo.currencypickerbtn.DBD-dfnI.min.js +0 -121
  167. package/dist/revolugo.dialog-attach.GnnAYjIE.min.js +0 -27
  168. package/dist/revolugo.en-us.BP-UxrRq.min.js +0 -1171
  169. package/dist/revolugo.event-bus.CYLYgD3Y.min.js +0 -37
  170. package/dist/revolugo.fr-fr.CF_knN5b.min.js +0 -1177
  171. package/dist/revolugo.fullbookingflow.RNktCvt-.min.js +0 -239
  172. package/dist/revolugo.hotel-offer.BUVwH9VX.min.js +0 -605
  173. package/dist/revolugo.hoteldescriptionview.Bq1O1Xil.min.js +0 -28
  174. package/dist/revolugo.hoteldescriptionview.CLJG1-vV.min.js +0 -2208
  175. package/dist/revolugo.hotelofferitemlayout.Tqhfw-aC.min.js +0 -64
  176. package/dist/revolugo.hotelofferlist.Be53qHlr.min.js +0 -3450
  177. package/dist/revolugo.hotelofferlist.VPSkB1g0.min.js +0 -28
  178. package/dist/revolugo.hotelofferrequestcreator.BDI8RIzt.min.js +0 -225
  179. package/dist/revolugo.hoteloffersearchmenu.BpJ-FUdV.min.js +0 -54
  180. package/dist/revolugo.hoteloffersmap.BlhVP5-Z.min.js +0 -28
  181. package/dist/revolugo.hoteloffersmap.wLH_KGii.min.js +0 -8737
  182. package/dist/revolugo.hoteloffersview.CcKk-z9v.min.js +0 -157
  183. package/dist/revolugo.hoteloffersview.IxtmOXHX.min.js +0 -28
  184. package/dist/revolugo.hotelroomofferlist.CLiINofQ.min.js +0 -28
  185. package/dist/revolugo.hotelroomofferlist.CahCySw9.min.js +0 -1336
  186. package/dist/revolugo.hotelroomofferrequestcreator.CBVXmo6p.min.js +0 -225
  187. package/dist/revolugo.hotelroomoffersbookingflow.D0JLkG3W.min.js +0 -679
  188. package/dist/revolugo.hotelroomoffersearchmenu.ClB2fFNQ.min.js +0 -38
  189. package/dist/revolugo.hotelroomoffersearchmenu.hkcy1YzX.min.js +0 -29
  190. package/dist/revolugo.hotelroomoffersview.CF7YEgbC.min.js +0 -28
  191. package/dist/revolugo.hotelroomoffersview.WAYlooyc.min.js +0 -124
  192. package/dist/revolugo.i18n.CyGKqo0B.min.js +0 -10929
  193. package/dist/revolugo.index.2rRqbmTI.min.js +0 -43
  194. package/dist/revolugo.index.B-fKWuIg.min.js +0 -142
  195. package/dist/revolugo.index.BXlPRtGz.min.js +0 -42
  196. package/dist/revolugo.index.B_EzELYh.min.js +0 -161
  197. package/dist/revolugo.index.BpZHnXFS.min.js +0 -68
  198. package/dist/revolugo.index.CB0aeVeA.min.js +0 -9
  199. package/dist/revolugo.index.CsWvarCO.min.js +0 -9
  200. package/dist/revolugo.index.D4mTtHy0.min.js +0 -270
  201. package/dist/revolugo.index.DEJEDSDi.min.js +0 -281
  202. package/dist/revolugo.index.DVlgraIx.min.js +0 -13
  203. package/dist/revolugo.index.FGCgdl6A.min.js +0 -390
  204. package/dist/revolugo.index.Lg6xnuBU.min.js +0 -15
  205. package/dist/revolugo.index.Tg1ts5ba.min.js +0 -128
  206. package/dist/revolugo.index.roOsqEC8.min.js +0 -322
  207. package/dist/revolugo.langpicker.DxUfUdgi.min.js +0 -103
  208. package/dist/revolugo.langpickerbtn.BKUmtrmC.min.js +0 -28
  209. package/dist/revolugo.langpickerbtn.CTjVH93j.min.js +0 -111
  210. package/dist/revolugo.localizedformat.BmFJB2Ek.min.js +0 -47
  211. package/dist/revolugo.parsed-height.C9EDOdpc.min.js +0 -2341
  212. package/dist/revolugo.parsed-props.DLM9lIFH.min.js +0 -95
  213. package/dist/revolugo.prebookform.BOw8d85r.min.js +0 -28
  214. package/dist/revolugo.prebookform.C-UGopr1.min.js +0 -484
  215. package/dist/revolugo.revolugo-config.CV2-KqZg.min.js +0 -1707
  216. package/dist/revolugo.roominglisteditor.BraACVch.min.js +0 -201
  217. package/dist/revolugo.roominglisteditor.BylXWjko.min.js +0 -28
  218. package/dist/revolugo.sentry.BUFmhrag.min.js +0 -10989
  219. package/dist/revolugo.store.CrqNkSlz.min.js +0 -2497
  220. package/dist/revolugo.storybooktoolbar.B3GXxMU5.min.js +0 -300
  221. package/dist/revolugo.termsandconditions.gfMYAJC9.min.js +0 -162
  222. package/dist/revolugo.termsandconditions.iierLPPe.min.js +0 -27
  223. package/dist/revolugo.typed-mixins.D4p2Nb8x.min.js +0 -8
  224. package/dist/revolugo.valert.D2QkjVyq.min.js +0 -194
  225. package/dist/revolugo.vautocomplete.DesK4IqD.min.js +0 -255
  226. package/dist/revolugo.vbadge.D8uLY_qO.min.js +0 -172
  227. package/dist/revolugo.vbtn.BnwFj80Q.min.js +0 -286
  228. package/dist/revolugo.vcard.B9oLf8X7.min.js +0 -80
  229. package/dist/revolugo.vchip.gQCW4zyM.min.js +0 -157
  230. package/dist/revolugo.vdialog.BGaQYjRQ.min.js +0 -341
  231. package/dist/revolugo.vexpansionpanelheader.PUrYDsqZ.min.js +0 -263
  232. package/dist/revolugo.vform.B2Cw_jFG.min.js +0 -98
  233. package/dist/revolugo.vinput.BH9yXmhW.min.js +0 -509
  234. package/dist/revolugo.vitemgroup.ZH_RbJd4.min.js +0 -168
  235. package/dist/revolugo.vlistitem.rGqVrGQv.min.js +0 -204
  236. package/dist/revolugo.vmenu.DVIyMqmT.min.js +0 -349
  237. package/dist/revolugo.vselect.DGAcOur7.min.js +0 -859
  238. package/dist/revolugo.vsheet.g-wezcj4.min.js +0 -120
  239. package/dist/revolugo.vskeletonloader.By4xa0Dw.min.js +0 -172
  240. package/dist/revolugo.vslidegroup.FBTC8IQv.min.js +0 -650
  241. package/dist/revolugo.vsnackbar.B-3BiuN_.min.js +0 -178
  242. package/dist/revolugo.vtextfield.Bz_46CYU.min.js +0 -438
  243. package/dist/revolugo.vtoolbar.C8u8AAF6.min.js +0 -364
  244. package/dist/revolugo.vtooltip.D-CwTnZW.min.js +0 -168
  245. package/dist/revolugo.vuetify.wVP8V0K5.min.js +0 -865
  246. package/dist/revolugo.watch-list.B0bwqcfr.min.js +0 -44
  247. package/dist/revolugo.webcomponentwrapper.C4B-n-nK.min.js +0 -777
@@ -1,2208 +0,0 @@
1
- import { E as ie } from "./revolugo.revolugo-config.CV2-KqZg.min.js";
2
- import { V as U, A as oe, j as ae, P as le, v as ce, N as ft, m as ue, Q as pe, e as fe } from "./revolugo.i18n.CyGKqo0B.min.js";
3
- import { b as Nt } from "./revolugo.breakpoint-service.CligvfbR.min.js";
4
- import { t as de } from "./revolugo.typed-mixins.D4p2Nb8x.min.js";
5
- import { l as F, n as $, _ as g, a as m, B as he } from "./revolugo.webcomponentwrapper.C4B-n-nK.min.js";
6
- import { _ as x } from "./revolugo.vskeletonloader.By4xa0Dw.min.js";
7
- import { _ as k } from "./revolugo.vcard.B9oLf8X7.min.js";
8
- import { V as T } from "./revolugo.index.CB0aeVeA.min.js";
9
- import { C as me, a as ye } from "./revolugo.currencypickerbtn.DBD-dfnI.min.js";
10
- import { L as _e, a as ge } from "./revolugo.langpickerbtn.CTjVH93j.min.js";
11
- import { _ as be } from "./revolugo.vmenu.DVIyMqmT.min.js";
12
- import { _ as ot } from "./revolugo.vbtn.BnwFj80Q.min.js";
13
- import { _ as we } from "./revolugo.langpicker.DxUfUdgi.min.js";
14
- import { a as Lt } from "./revolugo.vtoolbar.C8u8AAF6.min.js";
15
- import { _ as v } from "./revolugo.index.FGCgdl6A.min.js";
16
- import { a as xe, B as Se, m as Ee } from "./revolugo.hotel-offer.BUVwH9VX.min.js";
17
- import { _ as Y } from "./revolugo.vtooltip.D-CwTnZW.min.js";
18
- import { _ as ve } from "./revolugo.vbadge.D8uLY_qO.min.js";
19
- import { a as Ce, b as ke, B as Re } from "./revolugo.bstarrating.EUallQbz.min.js";
20
- import { p as Te, _ as bt } from "./revolugo.parsed-props.DLM9lIFH.min.js";
21
- import { w as Ae } from "./revolugo.watch-list.B0bwqcfr.min.js";
22
- /* empty css */
23
- import { _ as Oe, a as Pe, b as Ne, c as Le } from "./revolugo.vexpansionpanelheader.PUrYDsqZ.min.js";
24
- import { _ as De } from "./revolugo.vsnackbar.B-3BiuN_.min.js";
25
- function se(n) {
26
- try {
27
- if (typeof document < "u") {
28
- window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
29
- sheets: [],
30
- components: []
31
- };
32
- const t = import.meta.url, e = t.slice(0, t.lastIndexOf("/") + 1) + n;
33
- window.REVOLUGO_ELEMENTS_STYLES.sheets.push(e);
34
- for (const r of REVOLUGO_ELEMENTS_STYLES.components)
35
- r(e);
36
- if (n.indexOf("fonts") >= 0) {
37
- const r = document.createElement("link");
38
- r.rel = "stylesheet", linK.href = e, document.head.appendChild(r);
39
- }
40
- }
41
- } catch (t) {
42
- console.error("[revolugo-elements] ", t);
43
- }
44
- }
45
- const $e = {
46
- venueTravelTimes: {
47
- type: Array
48
- }
49
- }, Be = U.extend({
50
- mixins: [F("components/ui/BTravelTimes")],
51
- props: $e,
52
- computed: {
53
- formattedTravelTimes() {
54
- var e, r;
55
- const n = (r = (e = this.venueTravelTimes) == null ? void 0 : e[0]) == null ? void 0 : r.travelTimes;
56
- if (!n)
57
- return;
58
- const t = [];
59
- return n.walking && n.walking < 3600 && t.push({
60
- icon: "fa-person-walking",
61
- name: "walking",
62
- time: n.walking
63
- }), n.transit && t.push({
64
- icon: "fa-subway",
65
- name: "transit",
66
- time: n.transit
67
- }), n.driving && t.push({
68
- icon: "fa-car",
69
- name: "driving",
70
- time: n.driving
71
- }), t;
72
- }
73
- },
74
- methods: {
75
- formatTravelTime(n) {
76
- const t = Math.floor(n / 3600), e = Math.round(n % 3600 / 60);
77
- return e === 0 && t === 0 ? "1min" : t === 0 ? `${e}min` : `${t}h ${e}min`;
78
- }
79
- }
80
- });
81
- var Ue = function() {
82
- var t = this, e = t._self._c;
83
- return t._self._setupProxy, e("span", { staticClass: "text-caption d-flex align-center" }, t._l(t.formattedTravelTimes, function({ icon: r, name: s, time: i }, o) {
84
- var l;
85
- return e("span", { key: o, staticClass: "d-inline-flex mr-2" }, [e(Y, { attrs: { attach: ((l = t.$el) == null ? void 0 : l.parent) || t.$el, bottom: "" }, scopedSlots: t._u([{ key: "activator", fn: function({ on: u, attrs: f }) {
86
- return [e("span", t._g(t._b({ staticClass: "grey--text text--darken-2" }, "span", f, !1), u), [e(v, { attrs: { color: "grey darken-2", "x-small": "" } }, [t._v(" " + t._s(r) + " ")]), e("span", [t._v(" " + t._s(t.formatTravelTime(i)))])], 1)];
87
- } }], null, !0) }, [e("span", [t._v(t._s(t.$t(`BTravelTimes.${s}`)))])])], 1);
88
- }), 0);
89
- }, Fe = [], Me = /* @__PURE__ */ $(
90
- Be,
91
- Ue,
92
- Fe,
93
- !1,
94
- null,
95
- null,
96
- null,
97
- null
98
- );
99
- const Ie = Me.exports;
100
- var G = function() {
101
- return G = Object.assign || function(t) {
102
- for (var e, r = 1, s = arguments.length; r < s; r++) {
103
- e = arguments[r];
104
- for (var i in e)
105
- Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i]);
106
- }
107
- return t;
108
- }, G.apply(this, arguments);
109
- };
110
- function He(n) {
111
- return n.toLowerCase();
112
- }
113
- var je = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g], Ve = /[^A-Z0-9]+/gi;
114
- function qe(n, t) {
115
- t === void 0 && (t = {});
116
- for (var e = t.splitRegexp, r = e === void 0 ? je : e, s = t.stripRegexp, i = s === void 0 ? Ve : s, o = t.transform, l = o === void 0 ? He : o, u = t.delimiter, f = u === void 0 ? " " : u, p = wt(wt(n, r, "$1\0$2"), i, "\0"), c = 0, _ = p.length; p.charAt(c) === "\0"; )
117
- c++;
118
- for (; p.charAt(_ - 1) === "\0"; )
119
- _--;
120
- return p.slice(c, _).split("\0").map(l).join(f);
121
- }
122
- function wt(n, t, e) {
123
- return t instanceof RegExp ? n.replace(t, e) : t.reduce(function(r, s) {
124
- return r.replace(s, e);
125
- }, n);
126
- }
127
- function ze(n, t) {
128
- return t === void 0 && (t = {}), qe(n, G({ delimiter: "." }, t));
129
- }
130
- function Je(n, t) {
131
- return t === void 0 && (t = {}), ze(n, G({ delimiter: "_" }, t));
132
- }
133
- const We = {
134
- boilerplate: { type: Boolean }
135
- }, Ge = de(Nt).extend({
136
- name: "HotelDescriptionViewLayout",
137
- props: We,
138
- computed: {
139
- carouselThumbnailsCount() {
140
- var n;
141
- return ((n = this == null ? void 0 : this.$breakpointService) == null ? void 0 : n.width) && Math.ceil(this.$breakpointService.width / 105) || 7;
142
- }
143
- }
144
- });
145
- var Ke = function() {
146
- var t = this, e = t._self._c;
147
- return t._self._setupProxy, e(g, { attrs: { "no-gutters": "" } }, [e(m, [e(g, { attrs: { "no-gutters": "" } }, [e(m, { attrs: { cols: "12" } }, [t._t("name", function() {
148
- return [e(x, { attrs: { boilerplate: t.boilerplate, height: "29px", tile: "", type: "heading", width: "380px" } })];
149
- })], 2), e(m, { staticClass: "mr-2", attrs: { cols: "auto" } }, [t._t("address", function() {
150
- return [e(x, { staticClass: "mt-2", attrs: { boilerplate: t.boilerplate, height: "18px", tile: "", type: "heading", width: "300px" } })];
151
- })], 2), t.$slots["travel-times"] ? e(m, { attrs: { cols: "auto" } }, [t._t("travel-times")], 2) : t._e()], 1), e(g, { attrs: { "no-gutters": "" } }, [e(m, { staticClass: "mr-2", attrs: { cols: "auto" } }, [t._t("showOnMap", function() {
152
- return [e(x, { staticClass: "mt-2", attrs: { boilerplate: t.boilerplate, height: "18px", tile: "", type: "heading", width: "130px" } })];
153
- })], 2), e(m, { attrs: { cols: "auto" } }, [t._t("nearby-stations", function() {
154
- return [e(x, { staticClass: "mt-2", attrs: { boilerplate: t.boilerplate, height: "18px", tile: "", type: "heading", width: "100px" } })];
155
- })], 2), e(m, { attrs: { align: "end", "align-self": "end" } }, [t._t("review-rating", function() {
156
- return [e(x, { staticClass: "mt-2 d-inline-block", attrs: { boilerplate: t.boilerplate, height: "18px", tile: "", type: "heading", width: "100px" } })];
157
- })], 2)], 1), t.$slots.event ? e(g, { attrs: { dense: "" } }, [e(m, { staticClass: "d-block d-md-none", attrs: { cols: "12" } }, [t._t("event")], 2)], 1) : t._e(), e(g, { attrs: { dense: "" } }, [e(m, { attrs: { cols: "12", md: "8" } }, [e(g, [e(m, [t._t("carousel", function() {
158
- return [e(x, { attrs: { boilerplate: t.boilerplate, height: "410px", tile: "", type: "image", width: "100%" } }), e("div", { staticClass: "mt-1 d-flex flex-nowrap overflow-hidden" }, t._l(t.carouselThumbnailsCount, function(r) {
159
- return e("div", { key: r }, [e("div", [e(x, { staticClass: "mr-1", attrs: { boilerplate: t.boilerplate, height: "70px", tile: "", type: "image", width: "105px" } })], 1)]);
160
- }), 0)];
161
- })], 2)], 1), e(g, { attrs: { dense: "" } }, [e(m, [t._t("description", function() {
162
- return [e(k, { attrs: { elevation: "0", outlined: "" } }, [e(T, [e(g, { attrs: { "no-gutters": "" } }, [e(m, [e(x, { attrs: { boilerplate: t.boilerplate, height: "19px", tile: "", type: "image", width: "140px" } })], 1)], 1), t._l(4, function(r) {
163
- return e(g, { key: r, attrs: { "no-gutters": "" } }, [e(m, [e(x, { staticClass: "mt-6", attrs: { boilerplate: t.boilerplate, height: "16.5px", tile: "", type: "heading", width: "120px" } }), e(x, { staticClass: "mt-1", attrs: { boilerplate: t.boilerplate, tile: "", type: "text@2" } })], 1)], 1);
164
- })], 2)], 1)];
165
- })], 2)], 1)], 1), e(m, [e(g, { attrs: { dense: "" } }, [t.$slots["request-summary"] ? e(m, { staticClass: "d-none d-md-block", attrs: { cols: "12" } }, [e(k, { attrs: { elevation: "0", outlined: "" } }, [t._t("request-summary")], 2)], 1) : t._e(), t.$slots.event ? e(m, { staticClass: "d-none d-md-block", attrs: { cols: "12" } }, [t._t("event")], 2) : t._e(), e(m, { staticClass: "flex-grow-1", attrs: { cols: "12", md: "12", sm: "6" } }, [e(k, { attrs: { elevation: "0", outlined: "" } }, [e(T, { staticClass: "pa-1" }, [e(g, [e(m, [t._t("booking-line", function() {
166
- return [e(x, { attrs: { boilerplate: t.boilerplate, height: "14px", tile: "", type: "image", width: "100%" } })];
167
- })], 2)], 1)], 1)], 1)], 1), e(m, { staticClass: "flex-grow-1", attrs: { cols: "12", md: "12", sm: "6" } }, [e(k, { staticClass: "h-100", attrs: { align: "center", elevation: "0", outlined: "" } }, [e(T, { staticClass: "pa-2" }, [t._t("checkin-checkout", function() {
168
- return [e(g, { attrs: { dense: "" } }, [e(m, [e(x, { attrs: { boilerplate: t.boilerplate, height: "16px", tile: "", type: "heading", width: "112px" } })], 1), e(m, [e(x, { attrs: { boilerplate: t.boilerplate, height: "16px", tile: "", type: "heading", width: "112px" } })], 1)], 1)];
169
- })], 2)], 1)], 1), e(m, { attrs: { cols: "12" } }, [t._t("amenities", function() {
170
- return [e(k, { attrs: { elevation: "0", outlined: "" } }, [e(T, { staticClass: "flex-grow-1" }, [e(g, [e(m, [e(x, { attrs: { boilerplate: t.boilerplate, height: "17px", tile: "", type: "heading", width: "120px" } })], 1)], 1), e(g, { staticClass: "mt-4" }, t._l(4, function(r) {
171
- return e(m, { key: r, staticClass: "py-1", attrs: { cols: "6", lg: "6", md: "12", sm: "12" } }, [e(x, { attrs: { boilerplate: t.boilerplate, height: "18px", tile: "", type: "heading", width: "80%" } })], 1);
172
- }), 1)], 1)], 1)];
173
- })], 2), e(m, { attrs: { cols: "12" } }, [t._t("map-widget", function() {
174
- return [e(x, { attrs: { boilerplate: t.boilerplate, height: "150px", tile: "", type: "image", width: "1OO%" } })];
175
- })], 2), e(m, { staticClass: "d-flex", staticStyle: { "flex-direction": "column" }, attrs: { cols: "12" } }, [t._t("points-of-interest", function() {
176
- return [e(k, { attrs: { elevation: "0", outlined: "" } }, [e(T, [e(g, [e(m, [e(x, { staticClass: "mb-3", attrs: { boilerplate: t.boilerplate, height: "16px", tile: "", type: "heading", width: "150px" } })], 1)], 1), t._l(6, function(r) {
177
- return e(g, { key: r, attrs: { "no-gutters": "" } }, [e(m, { attrs: { cols: "8" } }, [e(x, { attrs: { boilerplate: t.boilerplate, height: "18px", tile: "", type: "text", width: "70%" } })], 1), e(m, { attrs: { align: "right", cols: "4" } }, [e(x, { attrs: { boilerplate: t.boilerplate, height: "14px", tile: "", type: "text", width: "55px" } })], 1)], 1);
178
- })], 2)], 1)];
179
- })], 2)], 1)], 1)], 1)], 1)], 1);
180
- }, Ye = [], Xe = /* @__PURE__ */ $(
181
- Ge,
182
- Ke,
183
- Ye,
184
- !1,
185
- null,
186
- "5cb50dda",
187
- null,
188
- null
189
- );
190
- const Dt = Xe.exports, Qe = U.extend({
191
- name: "HotelDescriptionViewError",
192
- components: {
193
- BErrorOverlay: he,
194
- HotelDescriptionViewLayout: Dt
195
- },
196
- mixins: [F("components/RevolugoElements/HotelDescriptionViewError")],
197
- props: {
198
- // eslint-disable-next-line vue/require-default-prop
199
- errorMessage: String
200
- }
201
- });
202
- var Ze = function() {
203
- var t = this, e = t._self._c;
204
- return t._self._setupProxy, e("div", { staticClass: "position-relative" }, [e("hotel-description-view-layout", { attrs: { boilerplate: "" } }), e("b-error-overlay", { scopedSlots: t._u([{ key: "title", fn: function() {
205
- return [t._v(" " + t._s(t.$t("HotelDescriptionViewError.internalError.title")) + " ")];
206
- }, proxy: !0 }, { key: "description", fn: function() {
207
- return [t._v(" " + t._s(t.errorMessage || t.$t("HotelDescriptionViewError.internalError.description")) + " ")];
208
- }, proxy: !0 }]) })], 1);
209
- }, tn = [], en = /* @__PURE__ */ $(
210
- Qe,
211
- Ze,
212
- tn,
213
- !1,
214
- null,
215
- null,
216
- null,
217
- null
218
- );
219
- const nn = en.exports, rn = {
220
- block: {
221
- type: Boolean,
222
- default: !1
223
- },
224
- color: {
225
- type: String,
226
- default: "secondary"
227
- },
228
- compact: {
229
- type: Boolean,
230
- default: !0
231
- },
232
- direction: {
233
- type: String,
234
- default: "top"
235
- }
236
- }, sn = U.extend({
237
- name: "PreferencesMenu",
238
- components: {
239
- CurrencyPickerBtn: me,
240
- CurrencyPickerDialog: ye,
241
- LangPickerBtn: _e,
242
- LangPickerDialog: ge
243
- },
244
- mixins: [F("components/RevolugoElements/PreferencesMenu")],
245
- props: rn,
246
- data() {
247
- return {
248
- currencyPickerDialog: !1,
249
- isOpen: !1,
250
- langPickerDialog: !1
251
- };
252
- },
253
- computed: {
254
- activeCurrency() {
255
- return oe[this.config.currency];
256
- },
257
- activeLang() {
258
- return ae[this.config.lang ?? le.EN_US];
259
- },
260
- transition() {
261
- switch (this.direction) {
262
- case "top":
263
- return "slide-y-reverse-transition";
264
- case "bottom":
265
- return "slide-y-transition";
266
- case "left":
267
- return "slide-x-reverse-transition";
268
- case "right":
269
- return "slide-x-transition";
270
- default:
271
- return "slide-y-transition";
272
- }
273
- }
274
- },
275
- methods: {
276
- onCurrencyPickerBtnClicked() {
277
- this.currencyPickerDialog = !0;
278
- },
279
- onLangPickerBtnClicked() {
280
- this.langPickerDialog = !0;
281
- }
282
- }
283
- });
284
- var on = function() {
285
- var r;
286
- var t = this, e = t._self._c;
287
- return t._self._setupProxy, t.compact ? e("span", [e(be, { attrs: { attach: ((r = t.$el) == null ? void 0 : r.parent) || t.$el || !0, bottom: t.direction === "bottom", "content-class": "elevation-0", elevation: "0", left: t.direction === "left", "offset-y": "", right: t.direction === "right", top: t.direction === "top", transition: t.transition }, scopedSlots: t._u([{ key: "activator", fn: function({ on: s, attrs: i }) {
288
- return [e(ot, t._g(t._b({ staticClass: "elevation-0 px-1", staticStyle: { "max-width": "62px", width: "62px" }, attrs: { block: t.block, color: t.color, dark: "", small: "" } }, "v-btn", i, !1), s), [t.isOpen ? e(v, { attrs: { size: "18" } }, [t._v(" fa-times ")]) : [e("small", { staticClass: "pr-1" }, [t._v(t._s(t.activeCurrency.code) + " / ")]), e(we, { attrs: { "min-width": "16", width: "16" } }, [e(Lt, { attrs: { "max-height": "16", "max-width": "16", src: `https://flagcdn.com/h60/${t.activeLang.countryCode.toLowerCase()}.png`, srcset: `https://flagcdn.com/h80/${t.activeLang.countryCode.toLowerCase()}.png 2x,
289
- https://flagcdn.com/h120/${t.activeLang.countryCode.toLowerCase()}.png 3x` } })], 1)]], 2)];
290
- } }], null, !1, 2954965536) }, [e(k, [e(T, { staticClass: "px-3" }, [e(g, [e(m, [e("currency-picker-btn", { attrs: { color: t.color, elevation: "7" }, nativeOn: { click: function(s) {
291
- return t.onCurrencyPickerBtnClicked.apply(null, arguments);
292
- } } })], 1)], 1), e(g, { attrs: { dense: "" } }, [e(m, [e("lang-picker-btn", { attrs: { elevation: "7" }, nativeOn: { click: function(s) {
293
- return t.onLangPickerBtnClicked.apply(null, arguments);
294
- } } })], 1)], 1)], 1)], 1)], 1), e("currency-picker-dialog", { model: { value: t.currencyPickerDialog, callback: function(s) {
295
- t.currencyPickerDialog = s;
296
- }, expression: "currencyPickerDialog" } }), e("lang-picker-dialog", { model: { value: t.langPickerDialog, callback: function(s) {
297
- t.langPickerDialog = s;
298
- }, expression: "langPickerDialog" } })], 1) : e("span", [e("currency-picker-btn", { attrs: { color: t.color, dialog: "" } }), e("span", { staticClass: "pr-1" }), e("lang-picker-btn", { attrs: { dialog: "" } })], 1);
299
- }, an = [], ln = /* @__PURE__ */ $(
300
- sn,
301
- on,
302
- an,
303
- !1,
304
- null,
305
- "1b79a181",
306
- null,
307
- null
308
- );
309
- const cn = ln.exports;
310
- function $t(n, t) {
311
- return function() {
312
- return n.apply(t, arguments);
313
- };
314
- }
315
- const { toString: un } = Object.prototype, { getPrototypeOf: dt } = Object, X = /* @__PURE__ */ ((n) => (t) => {
316
- const e = un.call(t);
317
- return n[e] || (n[e] = e.slice(8, -1).toLowerCase());
318
- })(/* @__PURE__ */ Object.create(null)), O = (n) => (n = n.toLowerCase(), (t) => X(t) === n), Q = (n) => (t) => typeof t === n, { isArray: M } = Array, j = Q("undefined");
319
- function pn(n) {
320
- return n !== null && !j(n) && n.constructor !== null && !j(n.constructor) && R(n.constructor.isBuffer) && n.constructor.isBuffer(n);
321
- }
322
- const Bt = O("ArrayBuffer");
323
- function fn(n) {
324
- let t;
325
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(n) : t = n && n.buffer && Bt(n.buffer), t;
326
- }
327
- const dn = Q("string"), R = Q("function"), Ut = Q("number"), Z = (n) => n !== null && typeof n == "object", hn = (n) => n === !0 || n === !1, z = (n) => {
328
- if (X(n) !== "object")
329
- return !1;
330
- const t = dt(n);
331
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in n) && !(Symbol.iterator in n);
332
- }, mn = O("Date"), yn = O("File"), _n = O("Blob"), gn = O("FileList"), bn = (n) => Z(n) && R(n.pipe), wn = (n) => {
333
- let t;
334
- return n && (typeof FormData == "function" && n instanceof FormData || R(n.append) && ((t = X(n)) === "formdata" || // detect form-data instance
335
- t === "object" && R(n.toString) && n.toString() === "[object FormData]"));
336
- }, xn = O("URLSearchParams"), Sn = (n) => n.trim ? n.trim() : n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
337
- function V(n, t, { allOwnKeys: e = !1 } = {}) {
338
- if (n === null || typeof n > "u")
339
- return;
340
- let r, s;
341
- if (typeof n != "object" && (n = [n]), M(n))
342
- for (r = 0, s = n.length; r < s; r++)
343
- t.call(null, n[r], r, n);
344
- else {
345
- const i = e ? Object.getOwnPropertyNames(n) : Object.keys(n), o = i.length;
346
- let l;
347
- for (r = 0; r < o; r++)
348
- l = i[r], t.call(null, n[l], l, n);
349
- }
350
- }
351
- function Ft(n, t) {
352
- t = t.toLowerCase();
353
- const e = Object.keys(n);
354
- let r = e.length, s;
355
- for (; r-- > 0; )
356
- if (s = e[r], t === s.toLowerCase())
357
- return s;
358
- return null;
359
- }
360
- const Mt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, It = (n) => !j(n) && n !== Mt;
361
- function at() {
362
- const { caseless: n } = It(this) && this || {}, t = {}, e = (r, s) => {
363
- const i = n && Ft(t, s) || s;
364
- z(t[i]) && z(r) ? t[i] = at(t[i], r) : z(r) ? t[i] = at({}, r) : M(r) ? t[i] = r.slice() : t[i] = r;
365
- };
366
- for (let r = 0, s = arguments.length; r < s; r++)
367
- arguments[r] && V(arguments[r], e);
368
- return t;
369
- }
370
- const En = (n, t, e, { allOwnKeys: r } = {}) => (V(t, (s, i) => {
371
- e && R(s) ? n[i] = $t(s, e) : n[i] = s;
372
- }, { allOwnKeys: r }), n), vn = (n) => (n.charCodeAt(0) === 65279 && (n = n.slice(1)), n), Cn = (n, t, e, r) => {
373
- n.prototype = Object.create(t.prototype, r), n.prototype.constructor = n, Object.defineProperty(n, "super", {
374
- value: t.prototype
375
- }), e && Object.assign(n.prototype, e);
376
- }, kn = (n, t, e, r) => {
377
- let s, i, o;
378
- const l = {};
379
- if (t = t || {}, n == null)
380
- return t;
381
- do {
382
- for (s = Object.getOwnPropertyNames(n), i = s.length; i-- > 0; )
383
- o = s[i], (!r || r(o, n, t)) && !l[o] && (t[o] = n[o], l[o] = !0);
384
- n = e !== !1 && dt(n);
385
- } while (n && (!e || e(n, t)) && n !== Object.prototype);
386
- return t;
387
- }, Rn = (n, t, e) => {
388
- n = String(n), (e === void 0 || e > n.length) && (e = n.length), e -= t.length;
389
- const r = n.indexOf(t, e);
390
- return r !== -1 && r === e;
391
- }, Tn = (n) => {
392
- if (!n)
393
- return null;
394
- if (M(n))
395
- return n;
396
- let t = n.length;
397
- if (!Ut(t))
398
- return null;
399
- const e = new Array(t);
400
- for (; t-- > 0; )
401
- e[t] = n[t];
402
- return e;
403
- }, An = /* @__PURE__ */ ((n) => (t) => n && t instanceof n)(typeof Uint8Array < "u" && dt(Uint8Array)), On = (n, t) => {
404
- const r = (n && n[Symbol.iterator]).call(n);
405
- let s;
406
- for (; (s = r.next()) && !s.done; ) {
407
- const i = s.value;
408
- t.call(n, i[0], i[1]);
409
- }
410
- }, Pn = (n, t) => {
411
- let e;
412
- const r = [];
413
- for (; (e = n.exec(t)) !== null; )
414
- r.push(e);
415
- return r;
416
- }, Nn = O("HTMLFormElement"), Ln = (n) => n.toLowerCase().replace(
417
- /[-_\s]([a-z\d])(\w*)/g,
418
- function(e, r, s) {
419
- return r.toUpperCase() + s;
420
- }
421
- ), xt = (({ hasOwnProperty: n }) => (t, e) => n.call(t, e))(Object.prototype), Dn = O("RegExp"), Ht = (n, t) => {
422
- const e = Object.getOwnPropertyDescriptors(n), r = {};
423
- V(e, (s, i) => {
424
- let o;
425
- (o = t(s, i, n)) !== !1 && (r[i] = o || s);
426
- }), Object.defineProperties(n, r);
427
- }, $n = (n) => {
428
- Ht(n, (t, e) => {
429
- if (R(n) && ["arguments", "caller", "callee"].indexOf(e) !== -1)
430
- return !1;
431
- const r = n[e];
432
- if (R(r)) {
433
- if (t.enumerable = !1, "writable" in t) {
434
- t.writable = !1;
435
- return;
436
- }
437
- t.set || (t.set = () => {
438
- throw Error("Can not rewrite read-only method '" + e + "'");
439
- });
440
- }
441
- });
442
- }, Bn = (n, t) => {
443
- const e = {}, r = (s) => {
444
- s.forEach((i) => {
445
- e[i] = !0;
446
- });
447
- };
448
- return M(n) ? r(n) : r(String(n).split(t)), e;
449
- }, Un = () => {
450
- }, Fn = (n, t) => (n = +n, Number.isFinite(n) ? n : t), nt = "abcdefghijklmnopqrstuvwxyz", St = "0123456789", jt = {
451
- DIGIT: St,
452
- ALPHA: nt,
453
- ALPHA_DIGIT: nt + nt.toUpperCase() + St
454
- }, Mn = (n = 16, t = jt.ALPHA_DIGIT) => {
455
- let e = "";
456
- const { length: r } = t;
457
- for (; n--; )
458
- e += t[Math.random() * r | 0];
459
- return e;
460
- };
461
- function In(n) {
462
- return !!(n && R(n.append) && n[Symbol.toStringTag] === "FormData" && n[Symbol.iterator]);
463
- }
464
- const Hn = (n) => {
465
- const t = new Array(10), e = (r, s) => {
466
- if (Z(r)) {
467
- if (t.indexOf(r) >= 0)
468
- return;
469
- if (!("toJSON" in r)) {
470
- t[s] = r;
471
- const i = M(r) ? [] : {};
472
- return V(r, (o, l) => {
473
- const u = e(o, s + 1);
474
- !j(u) && (i[l] = u);
475
- }), t[s] = void 0, i;
476
- }
477
- }
478
- return r;
479
- };
480
- return e(n, 0);
481
- }, jn = O("AsyncFunction"), Vn = (n) => n && (Z(n) || R(n)) && R(n.then) && R(n.catch), a = {
482
- isArray: M,
483
- isArrayBuffer: Bt,
484
- isBuffer: pn,
485
- isFormData: wn,
486
- isArrayBufferView: fn,
487
- isString: dn,
488
- isNumber: Ut,
489
- isBoolean: hn,
490
- isObject: Z,
491
- isPlainObject: z,
492
- isUndefined: j,
493
- isDate: mn,
494
- isFile: yn,
495
- isBlob: _n,
496
- isRegExp: Dn,
497
- isFunction: R,
498
- isStream: bn,
499
- isURLSearchParams: xn,
500
- isTypedArray: An,
501
- isFileList: gn,
502
- forEach: V,
503
- merge: at,
504
- extend: En,
505
- trim: Sn,
506
- stripBOM: vn,
507
- inherits: Cn,
508
- toFlatObject: kn,
509
- kindOf: X,
510
- kindOfTest: O,
511
- endsWith: Rn,
512
- toArray: Tn,
513
- forEachEntry: On,
514
- matchAll: Pn,
515
- isHTMLForm: Nn,
516
- hasOwnProperty: xt,
517
- hasOwnProp: xt,
518
- // an alias to avoid ESLint no-prototype-builtins detection
519
- reduceDescriptors: Ht,
520
- freezeMethods: $n,
521
- toObjectSet: Bn,
522
- toCamelCase: Ln,
523
- noop: Un,
524
- toFiniteNumber: Fn,
525
- findKey: Ft,
526
- global: Mt,
527
- isContextDefined: It,
528
- ALPHABET: jt,
529
- generateString: Mn,
530
- isSpecCompliantForm: In,
531
- toJSONObject: Hn,
532
- isAsyncFn: jn,
533
- isThenable: Vn
534
- };
535
- function y(n, t, e, r, s) {
536
- Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = n, this.name = "AxiosError", t && (this.code = t), e && (this.config = e), r && (this.request = r), s && (this.response = s);
537
- }
538
- a.inherits(y, Error, {
539
- toJSON: function() {
540
- return {
541
- // Standard
542
- message: this.message,
543
- name: this.name,
544
- // Microsoft
545
- description: this.description,
546
- number: this.number,
547
- // Mozilla
548
- fileName: this.fileName,
549
- lineNumber: this.lineNumber,
550
- columnNumber: this.columnNumber,
551
- stack: this.stack,
552
- // Axios
553
- config: a.toJSONObject(this.config),
554
- code: this.code,
555
- status: this.response && this.response.status ? this.response.status : null
556
- };
557
- }
558
- });
559
- const Vt = y.prototype, qt = {};
560
- [
561
- "ERR_BAD_OPTION_VALUE",
562
- "ERR_BAD_OPTION",
563
- "ECONNABORTED",
564
- "ETIMEDOUT",
565
- "ERR_NETWORK",
566
- "ERR_FR_TOO_MANY_REDIRECTS",
567
- "ERR_DEPRECATED",
568
- "ERR_BAD_RESPONSE",
569
- "ERR_BAD_REQUEST",
570
- "ERR_CANCELED",
571
- "ERR_NOT_SUPPORT",
572
- "ERR_INVALID_URL"
573
- // eslint-disable-next-line func-names
574
- ].forEach((n) => {
575
- qt[n] = { value: n };
576
- });
577
- Object.defineProperties(y, qt);
578
- Object.defineProperty(Vt, "isAxiosError", { value: !0 });
579
- y.from = (n, t, e, r, s, i) => {
580
- const o = Object.create(Vt);
581
- return a.toFlatObject(n, o, function(u) {
582
- return u !== Error.prototype;
583
- }, (l) => l !== "isAxiosError"), y.call(o, n.message, t, e, r, s), o.cause = n, o.name = n.name, i && Object.assign(o, i), o;
584
- };
585
- const qn = null;
586
- function lt(n) {
587
- return a.isPlainObject(n) || a.isArray(n);
588
- }
589
- function zt(n) {
590
- return a.endsWith(n, "[]") ? n.slice(0, -2) : n;
591
- }
592
- function Et(n, t, e) {
593
- return n ? n.concat(t).map(function(s, i) {
594
- return s = zt(s), !e && i ? "[" + s + "]" : s;
595
- }).join(e ? "." : "") : t;
596
- }
597
- function zn(n) {
598
- return a.isArray(n) && !n.some(lt);
599
- }
600
- const Jn = a.toFlatObject(a, {}, null, function(t) {
601
- return /^is[A-Z]/.test(t);
602
- });
603
- function tt(n, t, e) {
604
- if (!a.isObject(n))
605
- throw new TypeError("target must be an object");
606
- t = t || new FormData(), e = a.toFlatObject(e, {
607
- metaTokens: !0,
608
- dots: !1,
609
- indexes: !1
610
- }, !1, function(h, S) {
611
- return !a.isUndefined(S[h]);
612
- });
613
- const r = e.metaTokens, s = e.visitor || p, i = e.dots, o = e.indexes, u = (e.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
614
- if (!a.isFunction(s))
615
- throw new TypeError("visitor must be a function");
616
- function f(d) {
617
- if (d === null)
618
- return "";
619
- if (a.isDate(d))
620
- return d.toISOString();
621
- if (!u && a.isBlob(d))
622
- throw new y("Blob is not supported. Use a Buffer instead.");
623
- return a.isArrayBuffer(d) || a.isTypedArray(d) ? u && typeof Blob == "function" ? new Blob([d]) : Buffer.from(d) : d;
624
- }
625
- function p(d, h, S) {
626
- let E = d;
627
- if (d && !S && typeof d == "object") {
628
- if (a.endsWith(h, "{}"))
629
- h = r ? h : h.slice(0, -2), d = JSON.stringify(d);
630
- else if (a.isArray(d) && zn(d) || (a.isFileList(d) || a.endsWith(h, "[]")) && (E = a.toArray(d)))
631
- return h = zt(h), E.forEach(function(L, re) {
632
- !(a.isUndefined(L) || L === null) && t.append(
633
- // eslint-disable-next-line no-nested-ternary
634
- o === !0 ? Et([h], re, i) : o === null ? h : h + "[]",
635
- f(L)
636
- );
637
- }), !1;
638
- }
639
- return lt(d) ? !0 : (t.append(Et(S, h, i), f(d)), !1);
640
- }
641
- const c = [], _ = Object.assign(Jn, {
642
- defaultVisitor: p,
643
- convertValue: f,
644
- isVisitable: lt
645
- });
646
- function C(d, h) {
647
- if (!a.isUndefined(d)) {
648
- if (c.indexOf(d) !== -1)
649
- throw Error("Circular reference detected in " + h.join("."));
650
- c.push(d), a.forEach(d, function(E, N) {
651
- (!(a.isUndefined(E) || E === null) && s.call(
652
- t,
653
- E,
654
- a.isString(N) ? N.trim() : N,
655
- h,
656
- _
657
- )) === !0 && C(E, h ? h.concat(N) : [N]);
658
- }), c.pop();
659
- }
660
- }
661
- if (!a.isObject(n))
662
- throw new TypeError("data must be an object");
663
- return C(n), t;
664
- }
665
- function vt(n) {
666
- const t = {
667
- "!": "%21",
668
- "'": "%27",
669
- "(": "%28",
670
- ")": "%29",
671
- "~": "%7E",
672
- "%20": "+",
673
- "%00": "\0"
674
- };
675
- return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g, function(r) {
676
- return t[r];
677
- });
678
- }
679
- function ht(n, t) {
680
- this._pairs = [], n && tt(n, this, t);
681
- }
682
- const Jt = ht.prototype;
683
- Jt.append = function(t, e) {
684
- this._pairs.push([t, e]);
685
- };
686
- Jt.toString = function(t) {
687
- const e = t ? function(r) {
688
- return t.call(this, r, vt);
689
- } : vt;
690
- return this._pairs.map(function(s) {
691
- return e(s[0]) + "=" + e(s[1]);
692
- }, "").join("&");
693
- };
694
- function Wn(n) {
695
- return encodeURIComponent(n).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
696
- }
697
- function Wt(n, t, e) {
698
- if (!t)
699
- return n;
700
- const r = e && e.encode || Wn, s = e && e.serialize;
701
- let i;
702
- if (s ? i = s(t, e) : i = a.isURLSearchParams(t) ? t.toString() : new ht(t, e).toString(r), i) {
703
- const o = n.indexOf("#");
704
- o !== -1 && (n = n.slice(0, o)), n += (n.indexOf("?") === -1 ? "?" : "&") + i;
705
- }
706
- return n;
707
- }
708
- class Ct {
709
- constructor() {
710
- this.handlers = [];
711
- }
712
- /**
713
- * Add a new interceptor to the stack
714
- *
715
- * @param {Function} fulfilled The function to handle `then` for a `Promise`
716
- * @param {Function} rejected The function to handle `reject` for a `Promise`
717
- *
718
- * @return {Number} An ID used to remove interceptor later
719
- */
720
- use(t, e, r) {
721
- return this.handlers.push({
722
- fulfilled: t,
723
- rejected: e,
724
- synchronous: r ? r.synchronous : !1,
725
- runWhen: r ? r.runWhen : null
726
- }), this.handlers.length - 1;
727
- }
728
- /**
729
- * Remove an interceptor from the stack
730
- *
731
- * @param {Number} id The ID that was returned by `use`
732
- *
733
- * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
734
- */
735
- eject(t) {
736
- this.handlers[t] && (this.handlers[t] = null);
737
- }
738
- /**
739
- * Clear all interceptors from the stack
740
- *
741
- * @returns {void}
742
- */
743
- clear() {
744
- this.handlers && (this.handlers = []);
745
- }
746
- /**
747
- * Iterate over all the registered interceptors
748
- *
749
- * This method is particularly useful for skipping over any
750
- * interceptors that may have become `null` calling `eject`.
751
- *
752
- * @param {Function} fn The function to call for each interceptor
753
- *
754
- * @returns {void}
755
- */
756
- forEach(t) {
757
- a.forEach(this.handlers, function(r) {
758
- r !== null && t(r);
759
- });
760
- }
761
- }
762
- const Gt = {
763
- silentJSONParsing: !0,
764
- forcedJSONParsing: !0,
765
- clarifyTimeoutError: !1
766
- }, Gn = typeof URLSearchParams < "u" ? URLSearchParams : ht, Kn = typeof FormData < "u" ? FormData : null, Yn = typeof Blob < "u" ? Blob : null, Xn = {
767
- isBrowser: !0,
768
- classes: {
769
- URLSearchParams: Gn,
770
- FormData: Kn,
771
- Blob: Yn
772
- },
773
- protocols: ["http", "https", "file", "blob", "url", "data"]
774
- }, Kt = typeof window < "u" && typeof document < "u", Qn = ((n) => Kt && ["ReactNative", "NativeScript", "NS"].indexOf(n) < 0)(typeof navigator < "u" && navigator.product), Zn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
775
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", tr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
776
- __proto__: null,
777
- hasBrowserEnv: Kt,
778
- hasStandardBrowserEnv: Qn,
779
- hasStandardBrowserWebWorkerEnv: Zn
780
- }, Symbol.toStringTag, { value: "Module" })), A = {
781
- ...tr,
782
- ...Xn
783
- };
784
- function er(n, t) {
785
- return tt(n, new A.classes.URLSearchParams(), Object.assign({
786
- visitor: function(e, r, s, i) {
787
- return A.isNode && a.isBuffer(e) ? (this.append(r, e.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
788
- }
789
- }, t));
790
- }
791
- function nr(n) {
792
- return a.matchAll(/\w+|\[(\w*)]/g, n).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
793
- }
794
- function rr(n) {
795
- const t = {}, e = Object.keys(n);
796
- let r;
797
- const s = e.length;
798
- let i;
799
- for (r = 0; r < s; r++)
800
- i = e[r], t[i] = n[i];
801
- return t;
802
- }
803
- function Yt(n) {
804
- function t(e, r, s, i) {
805
- let o = e[i++];
806
- if (o === "__proto__")
807
- return !0;
808
- const l = Number.isFinite(+o), u = i >= e.length;
809
- return o = !o && a.isArray(s) ? s.length : o, u ? (a.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !l) : ((!s[o] || !a.isObject(s[o])) && (s[o] = []), t(e, r, s[o], i) && a.isArray(s[o]) && (s[o] = rr(s[o])), !l);
810
- }
811
- if (a.isFormData(n) && a.isFunction(n.entries)) {
812
- const e = {};
813
- return a.forEachEntry(n, (r, s) => {
814
- t(nr(r), s, e, 0);
815
- }), e;
816
- }
817
- return null;
818
- }
819
- function sr(n, t, e) {
820
- if (a.isString(n))
821
- try {
822
- return (t || JSON.parse)(n), a.trim(n);
823
- } catch (r) {
824
- if (r.name !== "SyntaxError")
825
- throw r;
826
- }
827
- return (e || JSON.stringify)(n);
828
- }
829
- const mt = {
830
- transitional: Gt,
831
- adapter: ["xhr", "http"],
832
- transformRequest: [function(t, e) {
833
- const r = e.getContentType() || "", s = r.indexOf("application/json") > -1, i = a.isObject(t);
834
- if (i && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
835
- return s ? JSON.stringify(Yt(t)) : t;
836
- if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t))
837
- return t;
838
- if (a.isArrayBufferView(t))
839
- return t.buffer;
840
- if (a.isURLSearchParams(t))
841
- return e.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
842
- let l;
843
- if (i) {
844
- if (r.indexOf("application/x-www-form-urlencoded") > -1)
845
- return er(t, this.formSerializer).toString();
846
- if ((l = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
847
- const u = this.env && this.env.FormData;
848
- return tt(
849
- l ? { "files[]": t } : t,
850
- u && new u(),
851
- this.formSerializer
852
- );
853
- }
854
- }
855
- return i || s ? (e.setContentType("application/json", !1), sr(t)) : t;
856
- }],
857
- transformResponse: [function(t) {
858
- const e = this.transitional || mt.transitional, r = e && e.forcedJSONParsing, s = this.responseType === "json";
859
- if (t && a.isString(t) && (r && !this.responseType || s)) {
860
- const o = !(e && e.silentJSONParsing) && s;
861
- try {
862
- return JSON.parse(t);
863
- } catch (l) {
864
- if (o)
865
- throw l.name === "SyntaxError" ? y.from(l, y.ERR_BAD_RESPONSE, this, null, this.response) : l;
866
- }
867
- }
868
- return t;
869
- }],
870
- /**
871
- * A timeout in milliseconds to abort a request. If set to 0 (default) a
872
- * timeout is not created.
873
- */
874
- timeout: 0,
875
- xsrfCookieName: "XSRF-TOKEN",
876
- xsrfHeaderName: "X-XSRF-TOKEN",
877
- maxContentLength: -1,
878
- maxBodyLength: -1,
879
- env: {
880
- FormData: A.classes.FormData,
881
- Blob: A.classes.Blob
882
- },
883
- validateStatus: function(t) {
884
- return t >= 200 && t < 300;
885
- },
886
- headers: {
887
- common: {
888
- Accept: "application/json, text/plain, */*",
889
- "Content-Type": void 0
890
- }
891
- }
892
- };
893
- a.forEach(["delete", "get", "head", "post", "put", "patch"], (n) => {
894
- mt.headers[n] = {};
895
- });
896
- const yt = mt, ir = a.toObjectSet([
897
- "age",
898
- "authorization",
899
- "content-length",
900
- "content-type",
901
- "etag",
902
- "expires",
903
- "from",
904
- "host",
905
- "if-modified-since",
906
- "if-unmodified-since",
907
- "last-modified",
908
- "location",
909
- "max-forwards",
910
- "proxy-authorization",
911
- "referer",
912
- "retry-after",
913
- "user-agent"
914
- ]), or = (n) => {
915
- const t = {};
916
- let e, r, s;
917
- return n && n.split(`
918
- `).forEach(function(o) {
919
- s = o.indexOf(":"), e = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!e || t[e] && ir[e]) && (e === "set-cookie" ? t[e] ? t[e].push(r) : t[e] = [r] : t[e] = t[e] ? t[e] + ", " + r : r);
920
- }), t;
921
- }, kt = Symbol("internals");
922
- function I(n) {
923
- return n && String(n).trim().toLowerCase();
924
- }
925
- function J(n) {
926
- return n === !1 || n == null ? n : a.isArray(n) ? n.map(J) : String(n);
927
- }
928
- function ar(n) {
929
- const t = /* @__PURE__ */ Object.create(null), e = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
930
- let r;
931
- for (; r = e.exec(n); )
932
- t[r[1]] = r[2];
933
- return t;
934
- }
935
- const lr = (n) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());
936
- function rt(n, t, e, r, s) {
937
- if (a.isFunction(r))
938
- return r.call(this, t, e);
939
- if (s && (t = e), !!a.isString(t)) {
940
- if (a.isString(r))
941
- return t.indexOf(r) !== -1;
942
- if (a.isRegExp(r))
943
- return r.test(t);
944
- }
945
- }
946
- function cr(n) {
947
- return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, e, r) => e.toUpperCase() + r);
948
- }
949
- function ur(n, t) {
950
- const e = a.toCamelCase(" " + t);
951
- ["get", "set", "has"].forEach((r) => {
952
- Object.defineProperty(n, r + e, {
953
- value: function(s, i, o) {
954
- return this[r].call(this, t, s, i, o);
955
- },
956
- configurable: !0
957
- });
958
- });
959
- }
960
- class et {
961
- constructor(t) {
962
- t && this.set(t);
963
- }
964
- set(t, e, r) {
965
- const s = this;
966
- function i(l, u, f) {
967
- const p = I(u);
968
- if (!p)
969
- throw new Error("header name must be a non-empty string");
970
- const c = a.findKey(s, p);
971
- (!c || s[c] === void 0 || f === !0 || f === void 0 && s[c] !== !1) && (s[c || u] = J(l));
972
- }
973
- const o = (l, u) => a.forEach(l, (f, p) => i(f, p, u));
974
- return a.isPlainObject(t) || t instanceof this.constructor ? o(t, e) : a.isString(t) && (t = t.trim()) && !lr(t) ? o(or(t), e) : t != null && i(e, t, r), this;
975
- }
976
- get(t, e) {
977
- if (t = I(t), t) {
978
- const r = a.findKey(this, t);
979
- if (r) {
980
- const s = this[r];
981
- if (!e)
982
- return s;
983
- if (e === !0)
984
- return ar(s);
985
- if (a.isFunction(e))
986
- return e.call(this, s, r);
987
- if (a.isRegExp(e))
988
- return e.exec(s);
989
- throw new TypeError("parser must be boolean|regexp|function");
990
- }
991
- }
992
- }
993
- has(t, e) {
994
- if (t = I(t), t) {
995
- const r = a.findKey(this, t);
996
- return !!(r && this[r] !== void 0 && (!e || rt(this, this[r], r, e)));
997
- }
998
- return !1;
999
- }
1000
- delete(t, e) {
1001
- const r = this;
1002
- let s = !1;
1003
- function i(o) {
1004
- if (o = I(o), o) {
1005
- const l = a.findKey(r, o);
1006
- l && (!e || rt(r, r[l], l, e)) && (delete r[l], s = !0);
1007
- }
1008
- }
1009
- return a.isArray(t) ? t.forEach(i) : i(t), s;
1010
- }
1011
- clear(t) {
1012
- const e = Object.keys(this);
1013
- let r = e.length, s = !1;
1014
- for (; r--; ) {
1015
- const i = e[r];
1016
- (!t || rt(this, this[i], i, t, !0)) && (delete this[i], s = !0);
1017
- }
1018
- return s;
1019
- }
1020
- normalize(t) {
1021
- const e = this, r = {};
1022
- return a.forEach(this, (s, i) => {
1023
- const o = a.findKey(r, i);
1024
- if (o) {
1025
- e[o] = J(s), delete e[i];
1026
- return;
1027
- }
1028
- const l = t ? cr(i) : String(i).trim();
1029
- l !== i && delete e[i], e[l] = J(s), r[l] = !0;
1030
- }), this;
1031
- }
1032
- concat(...t) {
1033
- return this.constructor.concat(this, ...t);
1034
- }
1035
- toJSON(t) {
1036
- const e = /* @__PURE__ */ Object.create(null);
1037
- return a.forEach(this, (r, s) => {
1038
- r != null && r !== !1 && (e[s] = t && a.isArray(r) ? r.join(", ") : r);
1039
- }), e;
1040
- }
1041
- [Symbol.iterator]() {
1042
- return Object.entries(this.toJSON())[Symbol.iterator]();
1043
- }
1044
- toString() {
1045
- return Object.entries(this.toJSON()).map(([t, e]) => t + ": " + e).join(`
1046
- `);
1047
- }
1048
- get [Symbol.toStringTag]() {
1049
- return "AxiosHeaders";
1050
- }
1051
- static from(t) {
1052
- return t instanceof this ? t : new this(t);
1053
- }
1054
- static concat(t, ...e) {
1055
- const r = new this(t);
1056
- return e.forEach((s) => r.set(s)), r;
1057
- }
1058
- static accessor(t) {
1059
- const r = (this[kt] = this[kt] = {
1060
- accessors: {}
1061
- }).accessors, s = this.prototype;
1062
- function i(o) {
1063
- const l = I(o);
1064
- r[l] || (ur(s, o), r[l] = !0);
1065
- }
1066
- return a.isArray(t) ? t.forEach(i) : i(t), this;
1067
- }
1068
- }
1069
- et.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
1070
- a.reduceDescriptors(et.prototype, ({ value: n }, t) => {
1071
- let e = t[0].toUpperCase() + t.slice(1);
1072
- return {
1073
- get: () => n,
1074
- set(r) {
1075
- this[e] = r;
1076
- }
1077
- };
1078
- });
1079
- a.freezeMethods(et);
1080
- const P = et;
1081
- function st(n, t) {
1082
- const e = this || yt, r = t || e, s = P.from(r.headers);
1083
- let i = r.data;
1084
- return a.forEach(n, function(l) {
1085
- i = l.call(e, i, s.normalize(), t ? t.status : void 0);
1086
- }), s.normalize(), i;
1087
- }
1088
- function Xt(n) {
1089
- return !!(n && n.__CANCEL__);
1090
- }
1091
- function q(n, t, e) {
1092
- y.call(this, n ?? "canceled", y.ERR_CANCELED, t, e), this.name = "CanceledError";
1093
- }
1094
- a.inherits(q, y, {
1095
- __CANCEL__: !0
1096
- });
1097
- function pr(n, t, e) {
1098
- const r = e.config.validateStatus;
1099
- !e.status || !r || r(e.status) ? n(e) : t(new y(
1100
- "Request failed with status code " + e.status,
1101
- [y.ERR_BAD_REQUEST, y.ERR_BAD_RESPONSE][Math.floor(e.status / 100) - 4],
1102
- e.config,
1103
- e.request,
1104
- e
1105
- ));
1106
- }
1107
- const fr = A.hasStandardBrowserEnv ? (
1108
- // Standard browser envs support document.cookie
1109
- {
1110
- write(n, t, e, r, s, i) {
1111
- const o = [n + "=" + encodeURIComponent(t)];
1112
- a.isNumber(e) && o.push("expires=" + new Date(e).toGMTString()), a.isString(r) && o.push("path=" + r), a.isString(s) && o.push("domain=" + s), i === !0 && o.push("secure"), document.cookie = o.join("; ");
1113
- },
1114
- read(n) {
1115
- const t = document.cookie.match(new RegExp("(^|;\\s*)(" + n + ")=([^;]*)"));
1116
- return t ? decodeURIComponent(t[3]) : null;
1117
- },
1118
- remove(n) {
1119
- this.write(n, "", Date.now() - 864e5);
1120
- }
1121
- }
1122
- ) : (
1123
- // Non-standard browser env (web workers, react-native) lack needed support.
1124
- {
1125
- write() {
1126
- },
1127
- read() {
1128
- return null;
1129
- },
1130
- remove() {
1131
- }
1132
- }
1133
- );
1134
- function dr(n) {
1135
- return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(n);
1136
- }
1137
- function hr(n, t) {
1138
- return t ? n.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : n;
1139
- }
1140
- function Qt(n, t) {
1141
- return n && !dr(t) ? hr(n, t) : t;
1142
- }
1143
- const mr = A.hasStandardBrowserEnv ? (
1144
- // Standard browser envs have full support of the APIs needed to test
1145
- // whether the request URL is of the same origin as current location.
1146
- function() {
1147
- const t = /(msie|trident)/i.test(navigator.userAgent), e = document.createElement("a");
1148
- let r;
1149
- function s(i) {
1150
- let o = i;
1151
- return t && (e.setAttribute("href", o), o = e.href), e.setAttribute("href", o), {
1152
- href: e.href,
1153
- protocol: e.protocol ? e.protocol.replace(/:$/, "") : "",
1154
- host: e.host,
1155
- search: e.search ? e.search.replace(/^\?/, "") : "",
1156
- hash: e.hash ? e.hash.replace(/^#/, "") : "",
1157
- hostname: e.hostname,
1158
- port: e.port,
1159
- pathname: e.pathname.charAt(0) === "/" ? e.pathname : "/" + e.pathname
1160
- };
1161
- }
1162
- return r = s(window.location.href), function(o) {
1163
- const l = a.isString(o) ? s(o) : o;
1164
- return l.protocol === r.protocol && l.host === r.host;
1165
- };
1166
- }()
1167
- ) : (
1168
- // Non standard browser envs (web workers, react-native) lack needed support.
1169
- /* @__PURE__ */ function() {
1170
- return function() {
1171
- return !0;
1172
- };
1173
- }()
1174
- );
1175
- function yr(n) {
1176
- const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(n);
1177
- return t && t[1] || "";
1178
- }
1179
- function _r(n, t) {
1180
- n = n || 10;
1181
- const e = new Array(n), r = new Array(n);
1182
- let s = 0, i = 0, o;
1183
- return t = t !== void 0 ? t : 1e3, function(u) {
1184
- const f = Date.now(), p = r[i];
1185
- o || (o = f), e[s] = u, r[s] = f;
1186
- let c = i, _ = 0;
1187
- for (; c !== s; )
1188
- _ += e[c++], c = c % n;
1189
- if (s = (s + 1) % n, s === i && (i = (i + 1) % n), f - o < t)
1190
- return;
1191
- const C = p && f - p;
1192
- return C ? Math.round(_ * 1e3 / C) : void 0;
1193
- };
1194
- }
1195
- function Rt(n, t) {
1196
- let e = 0;
1197
- const r = _r(50, 250);
1198
- return (s) => {
1199
- const i = s.loaded, o = s.lengthComputable ? s.total : void 0, l = i - e, u = r(l), f = i <= o;
1200
- e = i;
1201
- const p = {
1202
- loaded: i,
1203
- total: o,
1204
- progress: o ? i / o : void 0,
1205
- bytes: l,
1206
- rate: u || void 0,
1207
- estimated: u && o && f ? (o - i) / u : void 0,
1208
- event: s
1209
- };
1210
- p[t ? "download" : "upload"] = !0, n(p);
1211
- };
1212
- }
1213
- const gr = typeof XMLHttpRequest < "u", br = gr && function(n) {
1214
- return new Promise(function(e, r) {
1215
- let s = n.data;
1216
- const i = P.from(n.headers).normalize();
1217
- let { responseType: o, withXSRFToken: l } = n, u;
1218
- function f() {
1219
- n.cancelToken && n.cancelToken.unsubscribe(u), n.signal && n.signal.removeEventListener("abort", u);
1220
- }
1221
- let p;
1222
- if (a.isFormData(s)) {
1223
- if (A.hasStandardBrowserEnv || A.hasStandardBrowserWebWorkerEnv)
1224
- i.setContentType(!1);
1225
- else if ((p = i.getContentType()) !== !1) {
1226
- const [h, ...S] = p ? p.split(";").map((E) => E.trim()).filter(Boolean) : [];
1227
- i.setContentType([h || "multipart/form-data", ...S].join("; "));
1228
- }
1229
- }
1230
- let c = new XMLHttpRequest();
1231
- if (n.auth) {
1232
- const h = n.auth.username || "", S = n.auth.password ? unescape(encodeURIComponent(n.auth.password)) : "";
1233
- i.set("Authorization", "Basic " + btoa(h + ":" + S));
1234
- }
1235
- const _ = Qt(n.baseURL, n.url);
1236
- c.open(n.method.toUpperCase(), Wt(_, n.params, n.paramsSerializer), !0), c.timeout = n.timeout;
1237
- function C() {
1238
- if (!c)
1239
- return;
1240
- const h = P.from(
1241
- "getAllResponseHeaders" in c && c.getAllResponseHeaders()
1242
- ), E = {
1243
- data: !o || o === "text" || o === "json" ? c.responseText : c.response,
1244
- status: c.status,
1245
- statusText: c.statusText,
1246
- headers: h,
1247
- config: n,
1248
- request: c
1249
- };
1250
- pr(function(L) {
1251
- e(L), f();
1252
- }, function(L) {
1253
- r(L), f();
1254
- }, E), c = null;
1255
- }
1256
- if ("onloadend" in c ? c.onloadend = C : c.onreadystatechange = function() {
1257
- !c || c.readyState !== 4 || c.status === 0 && !(c.responseURL && c.responseURL.indexOf("file:") === 0) || setTimeout(C);
1258
- }, c.onabort = function() {
1259
- c && (r(new y("Request aborted", y.ECONNABORTED, n, c)), c = null);
1260
- }, c.onerror = function() {
1261
- r(new y("Network Error", y.ERR_NETWORK, n, c)), c = null;
1262
- }, c.ontimeout = function() {
1263
- let S = n.timeout ? "timeout of " + n.timeout + "ms exceeded" : "timeout exceeded";
1264
- const E = n.transitional || Gt;
1265
- n.timeoutErrorMessage && (S = n.timeoutErrorMessage), r(new y(
1266
- S,
1267
- E.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
1268
- n,
1269
- c
1270
- )), c = null;
1271
- }, A.hasStandardBrowserEnv && (l && a.isFunction(l) && (l = l(n)), l || l !== !1 && mr(_))) {
1272
- const h = n.xsrfHeaderName && n.xsrfCookieName && fr.read(n.xsrfCookieName);
1273
- h && i.set(n.xsrfHeaderName, h);
1274
- }
1275
- s === void 0 && i.setContentType(null), "setRequestHeader" in c && a.forEach(i.toJSON(), function(S, E) {
1276
- c.setRequestHeader(E, S);
1277
- }), a.isUndefined(n.withCredentials) || (c.withCredentials = !!n.withCredentials), o && o !== "json" && (c.responseType = n.responseType), typeof n.onDownloadProgress == "function" && c.addEventListener("progress", Rt(n.onDownloadProgress, !0)), typeof n.onUploadProgress == "function" && c.upload && c.upload.addEventListener("progress", Rt(n.onUploadProgress)), (n.cancelToken || n.signal) && (u = (h) => {
1278
- c && (r(!h || h.type ? new q(null, n, c) : h), c.abort(), c = null);
1279
- }, n.cancelToken && n.cancelToken.subscribe(u), n.signal && (n.signal.aborted ? u() : n.signal.addEventListener("abort", u)));
1280
- const d = yr(_);
1281
- if (d && A.protocols.indexOf(d) === -1) {
1282
- r(new y("Unsupported protocol " + d + ":", y.ERR_BAD_REQUEST, n));
1283
- return;
1284
- }
1285
- c.send(s || null);
1286
- });
1287
- }, ct = {
1288
- http: qn,
1289
- xhr: br
1290
- };
1291
- a.forEach(ct, (n, t) => {
1292
- if (n) {
1293
- try {
1294
- Object.defineProperty(n, "name", { value: t });
1295
- } catch {
1296
- }
1297
- Object.defineProperty(n, "adapterName", { value: t });
1298
- }
1299
- });
1300
- const Tt = (n) => `- ${n}`, wr = (n) => a.isFunction(n) || n === null || n === !1, Zt = {
1301
- getAdapter: (n) => {
1302
- n = a.isArray(n) ? n : [n];
1303
- const { length: t } = n;
1304
- let e, r;
1305
- const s = {};
1306
- for (let i = 0; i < t; i++) {
1307
- e = n[i];
1308
- let o;
1309
- if (r = e, !wr(e) && (r = ct[(o = String(e)).toLowerCase()], r === void 0))
1310
- throw new y(`Unknown adapter '${o}'`);
1311
- if (r)
1312
- break;
1313
- s[o || "#" + i] = r;
1314
- }
1315
- if (!r) {
1316
- const i = Object.entries(s).map(
1317
- ([l, u]) => `adapter ${l} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
1318
- );
1319
- let o = t ? i.length > 1 ? `since :
1320
- ` + i.map(Tt).join(`
1321
- `) : " " + Tt(i[0]) : "as no adapter specified";
1322
- throw new y(
1323
- "There is no suitable adapter to dispatch the request " + o,
1324
- "ERR_NOT_SUPPORT"
1325
- );
1326
- }
1327
- return r;
1328
- },
1329
- adapters: ct
1330
- };
1331
- function it(n) {
1332
- if (n.cancelToken && n.cancelToken.throwIfRequested(), n.signal && n.signal.aborted)
1333
- throw new q(null, n);
1334
- }
1335
- function At(n) {
1336
- return it(n), n.headers = P.from(n.headers), n.data = st.call(
1337
- n,
1338
- n.transformRequest
1339
- ), ["post", "put", "patch"].indexOf(n.method) !== -1 && n.headers.setContentType("application/x-www-form-urlencoded", !1), Zt.getAdapter(n.adapter || yt.adapter)(n).then(function(r) {
1340
- return it(n), r.data = st.call(
1341
- n,
1342
- n.transformResponse,
1343
- r
1344
- ), r.headers = P.from(r.headers), r;
1345
- }, function(r) {
1346
- return Xt(r) || (it(n), r && r.response && (r.response.data = st.call(
1347
- n,
1348
- n.transformResponse,
1349
- r.response
1350
- ), r.response.headers = P.from(r.response.headers))), Promise.reject(r);
1351
- });
1352
- }
1353
- const Ot = (n) => n instanceof P ? n.toJSON() : n;
1354
- function B(n, t) {
1355
- t = t || {};
1356
- const e = {};
1357
- function r(f, p, c) {
1358
- return a.isPlainObject(f) && a.isPlainObject(p) ? a.merge.call({ caseless: c }, f, p) : a.isPlainObject(p) ? a.merge({}, p) : a.isArray(p) ? p.slice() : p;
1359
- }
1360
- function s(f, p, c) {
1361
- if (a.isUndefined(p)) {
1362
- if (!a.isUndefined(f))
1363
- return r(void 0, f, c);
1364
- } else
1365
- return r(f, p, c);
1366
- }
1367
- function i(f, p) {
1368
- if (!a.isUndefined(p))
1369
- return r(void 0, p);
1370
- }
1371
- function o(f, p) {
1372
- if (a.isUndefined(p)) {
1373
- if (!a.isUndefined(f))
1374
- return r(void 0, f);
1375
- } else
1376
- return r(void 0, p);
1377
- }
1378
- function l(f, p, c) {
1379
- if (c in t)
1380
- return r(f, p);
1381
- if (c in n)
1382
- return r(void 0, f);
1383
- }
1384
- const u = {
1385
- url: i,
1386
- method: i,
1387
- data: i,
1388
- baseURL: o,
1389
- transformRequest: o,
1390
- transformResponse: o,
1391
- paramsSerializer: o,
1392
- timeout: o,
1393
- timeoutMessage: o,
1394
- withCredentials: o,
1395
- withXSRFToken: o,
1396
- adapter: o,
1397
- responseType: o,
1398
- xsrfCookieName: o,
1399
- xsrfHeaderName: o,
1400
- onUploadProgress: o,
1401
- onDownloadProgress: o,
1402
- decompress: o,
1403
- maxContentLength: o,
1404
- maxBodyLength: o,
1405
- beforeRedirect: o,
1406
- transport: o,
1407
- httpAgent: o,
1408
- httpsAgent: o,
1409
- cancelToken: o,
1410
- socketPath: o,
1411
- responseEncoding: o,
1412
- validateStatus: l,
1413
- headers: (f, p) => s(Ot(f), Ot(p), !0)
1414
- };
1415
- return a.forEach(Object.keys(Object.assign({}, n, t)), function(p) {
1416
- const c = u[p] || s, _ = c(n[p], t[p], p);
1417
- a.isUndefined(_) && c !== l || (e[p] = _);
1418
- }), e;
1419
- }
1420
- const te = "1.6.7", _t = {};
1421
- ["object", "boolean", "number", "function", "string", "symbol"].forEach((n, t) => {
1422
- _t[n] = function(r) {
1423
- return typeof r === n || "a" + (t < 1 ? "n " : " ") + n;
1424
- };
1425
- });
1426
- const Pt = {};
1427
- _t.transitional = function(t, e, r) {
1428
- function s(i, o) {
1429
- return "[Axios v" + te + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "");
1430
- }
1431
- return (i, o, l) => {
1432
- if (t === !1)
1433
- throw new y(
1434
- s(o, " has been removed" + (e ? " in " + e : "")),
1435
- y.ERR_DEPRECATED
1436
- );
1437
- return e && !Pt[o] && (Pt[o] = !0, console.warn(
1438
- s(
1439
- o,
1440
- " has been deprecated since v" + e + " and will be removed in the near future"
1441
- )
1442
- )), t ? t(i, o, l) : !0;
1443
- };
1444
- };
1445
- function xr(n, t, e) {
1446
- if (typeof n != "object")
1447
- throw new y("options must be an object", y.ERR_BAD_OPTION_VALUE);
1448
- const r = Object.keys(n);
1449
- let s = r.length;
1450
- for (; s-- > 0; ) {
1451
- const i = r[s], o = t[i];
1452
- if (o) {
1453
- const l = n[i], u = l === void 0 || o(l, i, n);
1454
- if (u !== !0)
1455
- throw new y("option " + i + " must be " + u, y.ERR_BAD_OPTION_VALUE);
1456
- continue;
1457
- }
1458
- if (e !== !0)
1459
- throw new y("Unknown option " + i, y.ERR_BAD_OPTION);
1460
- }
1461
- }
1462
- const ut = {
1463
- assertOptions: xr,
1464
- validators: _t
1465
- }, D = ut.validators;
1466
- class K {
1467
- constructor(t) {
1468
- this.defaults = t, this.interceptors = {
1469
- request: new Ct(),
1470
- response: new Ct()
1471
- };
1472
- }
1473
- /**
1474
- * Dispatch a request
1475
- *
1476
- * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
1477
- * @param {?Object} config
1478
- *
1479
- * @returns {Promise} The Promise to be fulfilled
1480
- */
1481
- async request(t, e) {
1482
- try {
1483
- return await this._request(t, e);
1484
- } catch (r) {
1485
- if (r instanceof Error) {
1486
- let s;
1487
- Error.captureStackTrace ? Error.captureStackTrace(s = {}) : s = new Error();
1488
- const i = s.stack ? s.stack.replace(/^.+\n/, "") : "";
1489
- r.stack ? i && !String(r.stack).endsWith(i.replace(/^.+\n.+\n/, "")) && (r.stack += `
1490
- ` + i) : r.stack = i;
1491
- }
1492
- throw r;
1493
- }
1494
- }
1495
- _request(t, e) {
1496
- typeof t == "string" ? (e = e || {}, e.url = t) : e = t || {}, e = B(this.defaults, e);
1497
- const { transitional: r, paramsSerializer: s, headers: i } = e;
1498
- r !== void 0 && ut.assertOptions(r, {
1499
- silentJSONParsing: D.transitional(D.boolean),
1500
- forcedJSONParsing: D.transitional(D.boolean),
1501
- clarifyTimeoutError: D.transitional(D.boolean)
1502
- }, !1), s != null && (a.isFunction(s) ? e.paramsSerializer = {
1503
- serialize: s
1504
- } : ut.assertOptions(s, {
1505
- encode: D.function,
1506
- serialize: D.function
1507
- }, !0)), e.method = (e.method || this.defaults.method || "get").toLowerCase();
1508
- let o = i && a.merge(
1509
- i.common,
1510
- i[e.method]
1511
- );
1512
- i && a.forEach(
1513
- ["delete", "get", "head", "post", "put", "patch", "common"],
1514
- (d) => {
1515
- delete i[d];
1516
- }
1517
- ), e.headers = P.concat(o, i);
1518
- const l = [];
1519
- let u = !0;
1520
- this.interceptors.request.forEach(function(h) {
1521
- typeof h.runWhen == "function" && h.runWhen(e) === !1 || (u = u && h.synchronous, l.unshift(h.fulfilled, h.rejected));
1522
- });
1523
- const f = [];
1524
- this.interceptors.response.forEach(function(h) {
1525
- f.push(h.fulfilled, h.rejected);
1526
- });
1527
- let p, c = 0, _;
1528
- if (!u) {
1529
- const d = [At.bind(this), void 0];
1530
- for (d.unshift.apply(d, l), d.push.apply(d, f), _ = d.length, p = Promise.resolve(e); c < _; )
1531
- p = p.then(d[c++], d[c++]);
1532
- return p;
1533
- }
1534
- _ = l.length;
1535
- let C = e;
1536
- for (c = 0; c < _; ) {
1537
- const d = l[c++], h = l[c++];
1538
- try {
1539
- C = d(C);
1540
- } catch (S) {
1541
- h.call(this, S);
1542
- break;
1543
- }
1544
- }
1545
- try {
1546
- p = At.call(this, C);
1547
- } catch (d) {
1548
- return Promise.reject(d);
1549
- }
1550
- for (c = 0, _ = f.length; c < _; )
1551
- p = p.then(f[c++], f[c++]);
1552
- return p;
1553
- }
1554
- getUri(t) {
1555
- t = B(this.defaults, t);
1556
- const e = Qt(t.baseURL, t.url);
1557
- return Wt(e, t.params, t.paramsSerializer);
1558
- }
1559
- }
1560
- a.forEach(["delete", "get", "head", "options"], function(t) {
1561
- K.prototype[t] = function(e, r) {
1562
- return this.request(B(r || {}, {
1563
- method: t,
1564
- url: e,
1565
- data: (r || {}).data
1566
- }));
1567
- };
1568
- });
1569
- a.forEach(["post", "put", "patch"], function(t) {
1570
- function e(r) {
1571
- return function(i, o, l) {
1572
- return this.request(B(l || {}, {
1573
- method: t,
1574
- headers: r ? {
1575
- "Content-Type": "multipart/form-data"
1576
- } : {},
1577
- url: i,
1578
- data: o
1579
- }));
1580
- };
1581
- }
1582
- K.prototype[t] = e(), K.prototype[t + "Form"] = e(!0);
1583
- });
1584
- const W = K;
1585
- class gt {
1586
- constructor(t) {
1587
- if (typeof t != "function")
1588
- throw new TypeError("executor must be a function.");
1589
- let e;
1590
- this.promise = new Promise(function(i) {
1591
- e = i;
1592
- });
1593
- const r = this;
1594
- this.promise.then((s) => {
1595
- if (!r._listeners)
1596
- return;
1597
- let i = r._listeners.length;
1598
- for (; i-- > 0; )
1599
- r._listeners[i](s);
1600
- r._listeners = null;
1601
- }), this.promise.then = (s) => {
1602
- let i;
1603
- const o = new Promise((l) => {
1604
- r.subscribe(l), i = l;
1605
- }).then(s);
1606
- return o.cancel = function() {
1607
- r.unsubscribe(i);
1608
- }, o;
1609
- }, t(function(i, o, l) {
1610
- r.reason || (r.reason = new q(i, o, l), e(r.reason));
1611
- });
1612
- }
1613
- /**
1614
- * Throws a `CanceledError` if cancellation has been requested.
1615
- */
1616
- throwIfRequested() {
1617
- if (this.reason)
1618
- throw this.reason;
1619
- }
1620
- /**
1621
- * Subscribe to the cancel signal
1622
- */
1623
- subscribe(t) {
1624
- if (this.reason) {
1625
- t(this.reason);
1626
- return;
1627
- }
1628
- this._listeners ? this._listeners.push(t) : this._listeners = [t];
1629
- }
1630
- /**
1631
- * Unsubscribe from the cancel signal
1632
- */
1633
- unsubscribe(t) {
1634
- if (!this._listeners)
1635
- return;
1636
- const e = this._listeners.indexOf(t);
1637
- e !== -1 && this._listeners.splice(e, 1);
1638
- }
1639
- /**
1640
- * Returns an object that contains a new `CancelToken` and a function that, when called,
1641
- * cancels the `CancelToken`.
1642
- */
1643
- static source() {
1644
- let t;
1645
- return {
1646
- token: new gt(function(s) {
1647
- t = s;
1648
- }),
1649
- cancel: t
1650
- };
1651
- }
1652
- }
1653
- const Sr = gt;
1654
- function Er(n) {
1655
- return function(e) {
1656
- return n.apply(null, e);
1657
- };
1658
- }
1659
- function vr(n) {
1660
- return a.isObject(n) && n.isAxiosError === !0;
1661
- }
1662
- const pt = {
1663
- Continue: 100,
1664
- SwitchingProtocols: 101,
1665
- Processing: 102,
1666
- EarlyHints: 103,
1667
- Ok: 200,
1668
- Created: 201,
1669
- Accepted: 202,
1670
- NonAuthoritativeInformation: 203,
1671
- NoContent: 204,
1672
- ResetContent: 205,
1673
- PartialContent: 206,
1674
- MultiStatus: 207,
1675
- AlreadyReported: 208,
1676
- ImUsed: 226,
1677
- MultipleChoices: 300,
1678
- MovedPermanently: 301,
1679
- Found: 302,
1680
- SeeOther: 303,
1681
- NotModified: 304,
1682
- UseProxy: 305,
1683
- Unused: 306,
1684
- TemporaryRedirect: 307,
1685
- PermanentRedirect: 308,
1686
- BadRequest: 400,
1687
- Unauthorized: 401,
1688
- PaymentRequired: 402,
1689
- Forbidden: 403,
1690
- NotFound: 404,
1691
- MethodNotAllowed: 405,
1692
- NotAcceptable: 406,
1693
- ProxyAuthenticationRequired: 407,
1694
- RequestTimeout: 408,
1695
- Conflict: 409,
1696
- Gone: 410,
1697
- LengthRequired: 411,
1698
- PreconditionFailed: 412,
1699
- PayloadTooLarge: 413,
1700
- UriTooLong: 414,
1701
- UnsupportedMediaType: 415,
1702
- RangeNotSatisfiable: 416,
1703
- ExpectationFailed: 417,
1704
- ImATeapot: 418,
1705
- MisdirectedRequest: 421,
1706
- UnprocessableEntity: 422,
1707
- Locked: 423,
1708
- FailedDependency: 424,
1709
- TooEarly: 425,
1710
- UpgradeRequired: 426,
1711
- PreconditionRequired: 428,
1712
- TooManyRequests: 429,
1713
- RequestHeaderFieldsTooLarge: 431,
1714
- UnavailableForLegalReasons: 451,
1715
- InternalServerError: 500,
1716
- NotImplemented: 501,
1717
- BadGateway: 502,
1718
- ServiceUnavailable: 503,
1719
- GatewayTimeout: 504,
1720
- HttpVersionNotSupported: 505,
1721
- VariantAlsoNegotiates: 506,
1722
- InsufficientStorage: 507,
1723
- LoopDetected: 508,
1724
- NotExtended: 510,
1725
- NetworkAuthenticationRequired: 511
1726
- };
1727
- Object.entries(pt).forEach(([n, t]) => {
1728
- pt[t] = n;
1729
- });
1730
- const Cr = pt;
1731
- function ee(n) {
1732
- const t = new W(n), e = $t(W.prototype.request, t);
1733
- return a.extend(e, W.prototype, t, { allOwnKeys: !0 }), a.extend(e, t, null, { allOwnKeys: !0 }), e.create = function(s) {
1734
- return ee(B(n, s));
1735
- }, e;
1736
- }
1737
- const w = ee(yt);
1738
- w.Axios = W;
1739
- w.CanceledError = q;
1740
- w.CancelToken = Sr;
1741
- w.isCancel = Xt;
1742
- w.VERSION = te;
1743
- w.toFormData = tt;
1744
- w.AxiosError = y;
1745
- w.Cancel = w.CanceledError;
1746
- w.all = function(t) {
1747
- return Promise.all(t);
1748
- };
1749
- w.spread = Er;
1750
- w.isAxiosError = vr;
1751
- w.mergeConfig = B;
1752
- w.AxiosHeaders = P;
1753
- w.formToJSON = (n) => Yt(a.isHTMLForm(n) ? new FormData(n) : n);
1754
- w.getAdapter = Zt.getAdapter;
1755
- w.HttpStatusCode = Cr;
1756
- w.default = w;
1757
- const kr = {
1758
- STAGING: "1-YPHL7bIic4W23TDLdCmGl4PouFUvJoj98DLxgwIqQ",
1759
- SANDBOX: "1-YPHL7bIic4W23TDLdCmGl4PouFUvJoj98DLxgwIqQ",
1760
- LOCAL: "1-YPHL7bIic4W23TDLdCmGl4PouFUvJoj98DLxgwIqQ",
1761
- LIVE: "1-YPHL7bIic4W23TDLdCmGl4PouFUvJoj98DLxgwIqQ"
1762
- }, Rr = window.RevolugoElements.config.apiEnvironment, ne = kr[Rr], H = (n, t) => {
1763
- if (!n)
1764
- throw new Error(t || "unknown assertion error");
1765
- };
1766
- var b = /* @__PURE__ */ ((n) => (n.AIRPORT = "airport", n.BUS = "bus", n.SUBWAY = "subway", n.TRAIN = "train", n.TRAM = "tram", n))(b || {});
1767
- const Tr = (n, t) => (H(n, "Missing latitude arg"), H(n, "Missing latitude arg"), H(t, "Missing longitude arg"), w({
1768
- baseURL: "https://places.ls.hereapi.com",
1769
- method: "GET",
1770
- url: `/places/v1/discover/explore?at=${n},${t}&apiKey=${ne}&cat=sights-museums`
1771
- }).then((e) => {
1772
- var r, s;
1773
- return (s = (r = e == null ? void 0 : e.data) == null ? void 0 : r.results) == null ? void 0 : s.items;
1774
- })), Ar = async (n, t, e = 500) => {
1775
- H(n, "Missing latitude arg"), H(t, "Missing longitude arg");
1776
- const s = (await w({
1777
- baseURL: "https://transit.hereapi.com/",
1778
- method: "GET",
1779
- url: `/v8/stations?in=${n},${t}&return=transport&maxPlaces=15&r=${e}&apiKey=${ne}`
1780
- }).then((o) => o.data.stations)).reduce((o, l) => {
1781
- const { place: u, transports: f } = l;
1782
- if (!f || !f.length)
1783
- return o;
1784
- o[u.name] = o[u.name] || {
1785
- lines: {},
1786
- location: {
1787
- lat: u.location.lat,
1788
- lng: u.location.lng
1789
- },
1790
- name: u.name
1791
- };
1792
- const p = f.reduce(
1793
- (c, _) => (c[_.mode] = c[_.mode] || {}, c[_.mode][_.name] = {
1794
- color: _.color,
1795
- name: _.name,
1796
- textColor: _.textColor
1797
- }, c),
1798
- // eslint-disable-next-line @typescript-eslint/prefer-reduce-type-parameter
1799
- {}
1800
- );
1801
- return o[u.name].lines = ce(o[u.name].lines, p), o;
1802
- }, {});
1803
- return ft(
1804
- Object.keys(s).map((o) => ({
1805
- ...s[o],
1806
- lines: ue(
1807
- s[o].lines,
1808
- (l) => Object.keys(l).map(
1809
- (u) => l[u]
1810
- )
1811
- )
1812
- })),
1813
- (o) => {
1814
- var l, u;
1815
- return ((l = o.lines.subway) == null ? void 0 : l.length) + (((u = o.lines.train) == null ? void 0 : u.length) ?? 0);
1816
- }
1817
- );
1818
- }, Or = {
1819
- latitude: { type: Number },
1820
- longitude: { type: Number }
1821
- }, Pr = U.extend({
1822
- mixins: [F("components/ui/BNearbyAttractions")],
1823
- props: Or,
1824
- data() {
1825
- return {
1826
- nearbyAttractions: []
1827
- };
1828
- },
1829
- async created() {
1830
- this.nearbyAttractions = await Tr(
1831
- this.latitude,
1832
- this.longitude
1833
- ).then(
1834
- (n) => ft(
1835
- n.filter(
1836
- (t) => t.distance <= 1300 && t.category.id !== "hotel"
1837
- ),
1838
- "distance"
1839
- ).slice(0, 7)
1840
- ).catch(() => []);
1841
- },
1842
- methods: {
1843
- attractionIcon(n) {
1844
- switch (n) {
1845
- case "bar-pub":
1846
- return "glass-cheers";
1847
- case "cinema":
1848
- return "film";
1849
- case "facility":
1850
- case "government-community-facility":
1851
- case "mall":
1852
- return "shopping-bag";
1853
- case "food-drink":
1854
- case "restaurant":
1855
- return "utensils";
1856
- case "going-out":
1857
- return "glass-cheers";
1858
- case "landmark-attraction":
1859
- return "archway";
1860
- case "museum":
1861
- case "sights-museums":
1862
- return "landmark";
1863
- case "religious-place":
1864
- return "church";
1865
- case "theatre-music-culture":
1866
- return "theater-masks";
1867
- default:
1868
- return "map-marker";
1869
- }
1870
- }
1871
- }
1872
- });
1873
- var Nr = function() {
1874
- var t = this, e = t._self._c;
1875
- return t._self._setupProxy, t.nearbyAttractions.length ? e("div", [e(g, [e(m, [e("p", { staticClass: "mb-2 subtitle-2 primary--text font-weight-bold" }, [t._v(" " + t._s(t.$t("BNearbyAttractions.title")) + " ")])])], 1), t._l(t.nearbyAttractions, function(r) {
1876
- return e(Y, { key: r.id, attrs: { attach: t.$parent.$el, bottom: "", "max-width": "230px" }, scopedSlots: t._u([{ key: "activator", fn: function({ on: s, attrs: i }) {
1877
- return [e(g, t._g(t._b({ staticClass: "mt-0 mt-sm-1 mt-md-0", attrs: { "no-gutters": "" } }, "v-row", i, !1), s), [e(m, { staticClass: "d-flex flex-column", attrs: { cols: "8" } }, [e("p", { staticClass: "mb-0 black--text caption" }, [e(v, { staticClass: "attraction-icon", attrs: { color: "secondary", size: "14" } }, [t._v(" " + t._s(`fa-${t.attractionIcon(r.category.id)}`) + " ")]), e("span", { staticClass: "ml-2" }, [t._v(t._s(r.title))])], 1)]), e(m, { staticClass: "d-flex flex-column text-right", attrs: { cols: "4" } }, [e("p", { staticClass: "mb-0 black--text caption text-no-wrap" }, [t._v(" " + t._s(Math.ceil(r.distance / 83)) + "min "), e(v, { attrs: { color: "secondary", size: "14" } }, [t._v(" fa-walking ")])], 1)])], 1)];
1878
- } }], null, !0) }, [e("span", { staticClass: "subtitle-2" }, [t._v(" " + t._s(t.$t(`BNearbyAttractions.list.${r.category.id}`)) + " ")])]);
1879
- })], 2) : t._e();
1880
- }, Lr = [], Dr = /* @__PURE__ */ $(
1881
- Pr,
1882
- Nr,
1883
- Lr,
1884
- !1,
1885
- null,
1886
- "29d80119",
1887
- null,
1888
- null
1889
- );
1890
- const $r = Dr.exports, Br = {
1891
- attach: {
1892
- required: !0,
1893
- type: Element
1894
- },
1895
- latitude: { type: Number },
1896
- longitude: { type: Number }
1897
- }, Ur = U.extend({
1898
- name: "BNearbyStations",
1899
- mixins: [F("components/ui/BNearbyStations")],
1900
- props: Br,
1901
- data() {
1902
- return {
1903
- stations: [],
1904
- transitModes: [
1905
- b.SUBWAY,
1906
- b.TRAM,
1907
- b.BUS,
1908
- b.TRAIN,
1909
- b.AIRPORT
1910
- ]
1911
- };
1912
- },
1913
- async created() {
1914
- this.stations = await Ar(this.latitude, this.longitude).then(
1915
- (n) => n.slice(0, 6)
1916
- );
1917
- },
1918
- methods: {
1919
- sortTransitModes(n) {
1920
- return ft(
1921
- n,
1922
- (t) => pe(
1923
- [
1924
- b.AIRPORT,
1925
- b.SUBWAY,
1926
- b.TRAM,
1927
- b.BUS,
1928
- b.TRAIN
1929
- ],
1930
- t
1931
- )
1932
- );
1933
- },
1934
- nearbyStationsIcon(n) {
1935
- switch (n) {
1936
- case b.AIRPORT:
1937
- return "fa-plane";
1938
- case b.BUS:
1939
- return "fa-bus";
1940
- case b.SUBWAY:
1941
- return "fa-subway";
1942
- case b.TRAIN:
1943
- return "fa-train";
1944
- case b.TRAM:
1945
- return "fa-train";
1946
- default:
1947
- return "";
1948
- }
1949
- },
1950
- nearbyStationsText(n) {
1951
- switch (n) {
1952
- case b.AIRPORT:
1953
- return this.$t("BNearbyStations.airport");
1954
- case b.BUS:
1955
- return this.$t("BNearbyStations.bus");
1956
- case b.SUBWAY:
1957
- return this.$t("BNearbyStations.subway");
1958
- case b.TRAIN:
1959
- return this.$t("BNearbyStations.train");
1960
- case b.TRAM:
1961
- return this.$t("BNearbyStations.tram");
1962
- default:
1963
- return "";
1964
- }
1965
- }
1966
- }
1967
- });
1968
- var Fr = function() {
1969
- var t = this, e = t._self._c;
1970
- return t._self._setupProxy, t.stations && t.stations.length ? e(Y, { attrs: { attach: t.$parent.$el, color: "white", "content-class": "elevation-1", right: "" }, scopedSlots: t._u([{ key: "activator", fn: function({ on: r, attrs: s }) {
1971
- return [e("span", t._g(t._b({ staticClass: "mr-2 align-center text-caption", style: { cursor: "help" } }, "span", s, !1), r), [e(v, { staticClass: "mr-1", attrs: { color: "primary", size: "12" } }, [t._v(" fa-bus-simple ")]), e("span", { staticClass: "font-weight-regular grey--text text--darken-2" }, [t._v(t._s(t.$t("BNearbyStations.nearbyStations")))])], 1)];
1972
- } }], null, !1, 693892761) }, [e("b", { staticClass: "grey--text text--darken-4" }, [t._v(t._s(t.$t("BNearbyStations.nearbyStationsRadius", { radius: 500 })) + ": ")]), t._l(t.stations, function(r) {
1973
- return [e("p", { key: r.name, staticClass: "grey--text text--darken-2 ma-0" }, [e("i", [e("b", [t._v(t._s(r.name))])]), t._l(t.sortTransitModes(Object.keys(r.lines)), function(s) {
1974
- return [e("p", { key: s, staticClass: "mt-1 mb-0 ml-2 text-caption" }, [e("span", { staticClass: "mr-2" }, [t._v(t._s(t.nearbyStationsText(s)) + ":")]), t._l(r.lines[s], function(i) {
1975
- return e(ve, { key: i.name, staticClass: "mr-1 rounded-circle", style: {
1976
- color: i.textColor
1977
- }, attrs: { color: i.color, inline: "", size: "20" }, scopedSlots: t._u([{ key: "badge", fn: function() {
1978
- return [e("b", [t._v(t._s(i.name))])];
1979
- }, proxy: !0 }], null, !0) });
1980
- })], 2)];
1981
- })], 2)];
1982
- })], 2) : t._e();
1983
- }, Mr = [], Ir = /* @__PURE__ */ $(
1984
- Ur,
1985
- Fr,
1986
- Mr,
1987
- !1,
1988
- null,
1989
- "05aa628f",
1990
- null,
1991
- null
1992
- );
1993
- const Hr = Ir.exports, jr = {
1994
- PreferencesMenu: !1
1995
- }, Vr = {
1996
- features: {
1997
- default: () => jr,
1998
- type: [Object, String]
1999
- },
2000
- hotelId: { type: String }
2001
- }, qr = U.extend({
2002
- name: "HotelDescriptionView",
2003
- components: {
2004
- HotelDescriptionViewLayout: Dt,
2005
- HotelDescriptionViewError: nn,
2006
- BImageCarousel: xe,
2007
- BStarRating: Ce,
2008
- BTripAdvisorRatingWidget: ke,
2009
- BNearbyAttractions: $r,
2010
- BNearbyStations: Hr,
2011
- BGoogleMapIframe: Se,
2012
- BReviewRating: Re,
2013
- BTravelTimes: Ie,
2014
- PreferencesMenu: cn
2015
- },
2016
- mixins: [
2017
- F("components/RevolugoElements/HotelDescriptionView"),
2018
- Nt,
2019
- Te({
2020
- fallbackValue: {},
2021
- propsName: "features"
2022
- }),
2023
- Ae(["bookingApiClient", "$i18n.locale"], "retrieveHotel")
2024
- ],
2025
- props: Vr,
2026
- data() {
2027
- return {
2028
- errorMessage: null,
2029
- hotel: void 0,
2030
- isLoading: !1,
2031
- isSuccessSnackbarDisplayed: !1,
2032
- successSnackbarMessage: null
2033
- };
2034
- },
2035
- computed: {
2036
- showOnMap() {
2037
- var n;
2038
- if ((n = this.hotel) != null && n.address) {
2039
- const t = this.hotel.address.split(" ").join("+");
2040
- return {
2041
- link: `https://www.google.com/maps?q=${t},+${this.hotel.city}`,
2042
- iframe: `https://maps.google.com/maps?q=${t},+${this.hotel.city}&output=embed`
2043
- };
2044
- }
2045
- return null;
2046
- },
2047
- imageUrls() {
2048
- var n, t;
2049
- return Ee({
2050
- hotelImages: (n = this.hotel) == null ? void 0 : n.hotelImages,
2051
- images: (t = this.hotel) == null ? void 0 : t.images
2052
- });
2053
- },
2054
- amenities() {
2055
- let n = [];
2056
- return this.hotel && this.hotel.amenities ? (n = Object.keys(this.hotel.amenities).filter(
2057
- (t) => {
2058
- var e;
2059
- return ((e = this.hotel) == null ? void 0 : e.amenities)[t];
2060
- }
2061
- ), n.sort(
2062
- (t, e) => (
2063
- // eslint-disable-next-line @typescript-eslint/no-base-to-string
2064
- this.$t(`HotelDescriptionView.amenityList.${t}`).toString().length - // eslint-disable-next-line @typescript-eslint/no-base-to-string
2065
- this.$t(`HotelDescriptionView.amenityList.${e}`).toString().length
2066
- )
2067
- )) : null;
2068
- },
2069
- venueTravelTimes() {
2070
- var n;
2071
- return (n = this.hotel) == null ? void 0 : n.venues;
2072
- }
2073
- },
2074
- watch: {
2075
- hotelId: {
2076
- immediate: !0,
2077
- async handler() {
2078
- await this.retrieveHotel();
2079
- }
2080
- }
2081
- },
2082
- methods: {
2083
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
2084
- retrieveHotel: fe(async function() {
2085
- var t, e, r;
2086
- if (this.hotel = void 0, this.isLoading = !0, !!this.hotelId)
2087
- try {
2088
- this.errorMessage = null, this.hotel = await ((e = this.bookingApiClient) == null ? void 0 : e.hotels.retrieve({
2089
- id: this.hotelId,
2090
- lang: this.config.lang,
2091
- event: (t = this.config.eventMetadata) == null ? void 0 : t.name
2092
- })), this.$eventBus.$emit(ie.HOTEL_RETRIEVED, this.hotel);
2093
- } catch (s) {
2094
- this.errorMessage = ((r = s == null ? void 0 : s.response) == null ? void 0 : r.statusText) || " ";
2095
- } finally {
2096
- this.isLoading = !1;
2097
- }
2098
- }, 50),
2099
- toSnakeCase(n) {
2100
- return Je(n);
2101
- },
2102
- async copyAddress() {
2103
- try {
2104
- if (!this.hotel)
2105
- return;
2106
- await navigator.clipboard.writeText(
2107
- this.$t("HotelDescriptionView.fullAddress", {
2108
- address: this.hotel.address,
2109
- postalCode: this.hotel.postalCode,
2110
- city: this.hotel.city,
2111
- countryCode: this.hotel.countryCode
2112
- })
2113
- ), this.successSnackbarMessage = this.$t(
2114
- "HotelDescriptionView.fullAddressCopied"
2115
- ), this.isSuccessSnackbarDisplayed = !0;
2116
- } catch {
2117
- console.log("error");
2118
- }
2119
- },
2120
- async copyBookingLinePhone() {
2121
- try {
2122
- await navigator.clipboard.writeText("+33180066288"), this.successSnackbarMessage = this.$t(
2123
- "HotelDescriptionView.bookingLine.copied"
2124
- ), this.isSuccessSnackbarDisplayed = !0;
2125
- } catch {
2126
- console.log("error");
2127
- }
2128
- }
2129
- }
2130
- });
2131
- var zr = function() {
2132
- var t = this, e = t._self._c;
2133
- return t._self._setupProxy, e("div", [t.isBookingApiClientDefined ? t.hotel ? [e("hotel-description-view-layout", { key: "filled", scopedSlots: t._u([{ key: "name", fn: function() {
2134
- return [e(g, { attrs: { dense: "" } }, [t.hotel.name ? e(m, { attrs: { cols: "12", order: "2", "order-sm": "1", sm: "10" } }, [e("span", { staticClass: "text-h5 font-weight-bold ma-0" }, [t._v(" " + t._s(t.hotel.name) + " ")]), e(Y, { attrs: { attach: t.$el, bottom: "" }, scopedSlots: t._u([{ key: "activator", fn: function({ on: r, attrs: s }) {
2135
- return [e("span", t._g(t._b({}, "span", s, !1), r), [e("b-star-rating", { attrs: { count: t.hotel.rating } })], 1)];
2136
- } }], null, !1, 861605338) }, [e("span", [t._v(t._s(t.$t("HotelDescriptionView.starRating")))])])], 1) : t._e(), t.parsedFeatures.PreferencesMenu ? e(m, { staticClass: "text-right", attrs: { "offset-sm": 0, order: "1", sm: "2" } }, [e("preferences-menu", { attrs: { compact: !1, direction: "bottom" } })], 1) : t._e()], 1)];
2137
- }, proxy: !0 }, { key: "review-rating", fn: function() {
2138
- return [e("b-review-rating", { attrs: { features: {
2139
- ReviewRatingDetails: !0
2140
- }, hotel: t.hotel, "tooltip-position": "left" } })];
2141
- }, proxy: !0 }, { key: "address", fn: function() {
2142
- return [t.hotel.address && t.hotel.city ? [e("a", { staticClass: "text-decoration-none text-caption", attrs: { target: "_blank" }, on: { click: function(r) {
2143
- return r.stopPropagation(), r.preventDefault(), t.copyAddress.apply(null, arguments);
2144
- } } }, [e("span", { staticClass: "ma-0" }, [e(v, { staticClass: "mr-1", attrs: { color: "primary", size: "12" } }, [t._v(" fa-map-marker-alt ")]), e("span", { staticClass: "grey--text text--darken-2" }, [t._v(" " + t._s(t.$t("HotelDescriptionView.fullAddress", { address: t.hotel.address, postalCode: t.hotel.postalCode, city: t.hotel.city, countryCode: t.hotel.countryCode })) + " ")])], 1)])] : [e("span")]];
2145
- }, proxy: !0 }, { key: "showOnMap", fn: function() {
2146
- var r;
2147
- return [t.hotel.address && t.hotel.city ? [(r = t.showOnMap) != null && r.link ? e("a", { staticClass: "text-decoration-none text-caption", attrs: { href: t.showOnMap.link, target: "_blank" } }, [e("span", { staticClass: "ma-0 d-inline-flex align-center" }, [e(v, { staticClass: "mr-1", attrs: { color: "primary", size: "12" } }, [t._v(" fa-map ")]), e("span", { staticClass: "font-weight-regular grey--text text--darken-2" }, [t._v(t._s(t.$t("HotelDescriptionView.showOnMap")))])], 1)]) : t._e()] : [e("span")]];
2148
- }, proxy: !0 }, { key: "nearby-stations", fn: function() {
2149
- return [t.hotel.latitude && t.hotel.longitude ? [e("b-nearby-stations", { attrs: { attach: t.$el, latitude: t.hotel.latitude, longitude: t.hotel.longitude } })] : [e("span")]];
2150
- }, proxy: !0 }, { key: "travel-times", fn: function() {
2151
- return [e("b-travel-times", { style: {
2152
- height: "24px"
2153
- }, attrs: { "venue-travel-times": t.venueTravelTimes } })];
2154
- }, proxy: !0 }, { key: "carousel", fn: function() {
2155
- var r, s;
2156
- return [t.hotel.images ? [e("b-image-carousel", { attrs: { height: "410px", "image-urls": (r = t.imageUrls) == null ? void 0 : r.highres, rounded: "", "show-thumbnails": "", "thumbnail-urls": (s = t.imageUrls) == null ? void 0 : s.thumbnails, "thumbnails-height": "70px", width: "100%" } })] : [e("div")]];
2157
- }, proxy: !0 }, { key: "description", fn: function() {
2158
- return [t.hotel.description ? [e(k, { attrs: { elevation: "0", outlined: "" } }, [e(T, [e(g, { attrs: { "no-gutters": "" } }, [e(m, [e("p", { staticClass: "mb-0" }, [e(v, { staticClass: "mr-1", attrs: { color: "primary accent-2", size: "18" } }, [t._v(" fa-h-square ")]), e("span", { staticClass: "black--text" }, [t._v(t._s(t.$t("HotelDescriptionView.description")))])], 1)])], 1), e(bt, { staticClass: "mt-2 mb-4" }), e("div", { staticClass: "d-flex flex-column align-end" }, [e("div", { ref: "hotelDescription", staticClass: "hotel-description body-2 black--text mb-0 w-100", domProps: { innerHTML: t._s(t.hotel.description) } })]), t.hotel.policy ? e(Oe, { staticClass: "mt-4", attrs: { flat: "" } }, [e(Pe, [e(Ne, { staticClass: "pa-0" }, [e("p", { staticClass: "mb-0" }, [e(v, { staticClass: "mr-2 mb-1", attrs: { color: "primary accent-2", size: "18" } }, [t._v(" fa-clipboard ")]), e("span", { staticClass: "black--text text-body-1" }, [t._v(t._s(t.$t("HotelDescriptionView.conditions")))])], 1)]), e(Le, [e("div", { domProps: { innerHTML: t._s(t.hotel.policy) } })])], 1)], 1) : t._e()], 1)], 1), t._t("hotel-room-offer-list")] : [e("span")]];
2159
- }, proxy: !0 }, t.$slots["request-summary"] ? { key: "request-summary", fn: function() {
2160
- return [t._t("request-summary")];
2161
- }, proxy: !0 } : null, { key: "event", fn: function() {
2162
- var r;
2163
- return [(r = t.config.eventMetadata) != null && r.name ? [e(k, { staticClass: "flex-grow-1", attrs: { elevation: "0", outlined: "" } }, [e(T, [e(g, { staticClass: "text-center" }, [t.config.eventMetadata.imageURL ? e(m, { attrs: { align: "center", cols: "6", md: "12" } }, [e(Lt, { attrs: { "content-class": "w-100 mx-auto", "lazy-src": t.config.eventMetadata.imageURL, "max-width": "300", src: t.config.eventMetadata.imageURL } })], 1) : t._e(), e(m, { attrs: { "align-self": "center" } }, [e("span", { staticClass: "primary--text font-weight-bold" }, [t._v(" " + t._s(t.config.eventMetadata.name) + " ")])])], 1)], 1)], 1)] : t._e()];
2164
- }, proxy: !0 }, { key: "booking-line", fn: function() {
2165
- return [e(g, { attrs: { dense: "" } }, [e(m, [e(ot, { staticClass: "text-center", attrs: { block: "", color: "secondary", depressed: "", href: "tel:+33180066288", small: "" } }, [e("span", [e(v, { staticClass: "mr-2", attrs: { color: "white", size: "12" } }, [t._v(" fa-phone ")]), e("small", { staticClass: "mr-2" }, [t._v("Booking Line")]), e("small", [t._v(" +33 1 80 06 62 88")])], 1), e(bt, { staticClass: "mx-4", attrs: { color: "white", vertical: "" } }), e(v, { attrs: { color: "white", size: "12" }, on: { click: function(r) {
2166
- return r.stopPropagation(), r.preventDefault(), t.copyBookingLinePhone.apply(null, arguments);
2167
- } } }, [t._v(" fa-copy ")])], 1), e(De, { attrs: { color: "success", "content-class": "text-center", elevation: "0", "max-width": "50px", right: "", timeout: 4500, top: "" }, scopedSlots: t._u([{ key: "action", fn: function({ attrs: r }) {
2168
- return [e(ot, t._b({ attrs: { color: "white", text: "" }, on: { click: function(s) {
2169
- t.isCopySnackbarDisplayed = !1;
2170
- } } }, "v-btn", r, !1), [e(v, { attrs: { color: "white", size: "16" } }, [t._v(" fa-times ")])], 1)];
2171
- } }]), model: { value: t.isSuccessSnackbarDisplayed, callback: function(r) {
2172
- t.isSuccessSnackbarDisplayed = r;
2173
- }, expression: "isSuccessSnackbarDisplayed" } }, [e("span", { staticClass: "white--text" }, [e(v, { staticClass: "mr-3", attrs: { color: "white", size: "12" } }, [t._v(" fa-check ")]), t._v(" " + t._s(t.successSnackbarMessage) + " ")], 1)])], 1)], 1)];
2174
- }, proxy: !0 }, { key: "checkin-checkout", fn: function() {
2175
- return [e(g, { attrs: { dense: "" } }, [e(m, { staticClass: "d-flex flex-column" }, [e("p", { staticClass: "subtitle-2 mb-0" }, [e("b", { staticClass: "primary--text font-weight-bold text-no-wrap" }, [t._v(t._s(t.$t("HotelDescriptionView.checkInTime")))]), e("span", { staticClass: "subtitle-2 text-no-wrap" }, [t._v("  " + t._s(t.hotel.checkInTime || "4:00 PM") + " ")])])]), e(m, { staticClass: "d-flex flex-column" }, [e("p", { staticClass: "subtitle-2 mb-0" }, [e("b", { staticClass: "primary--text font-weight-bold text-no-wrap" }, [t._v(t._s(t.$t("HotelDescriptionView.checkOutTime")))]), e("span", { staticClass: "subtitle-2 text-no-wrap" }, [t._v("  " + t._s(t.hotel.checkOutTime || "10:00 AM") + " ")])])])], 1)];
2176
- }, proxy: !0 }, { key: "amenities", fn: function() {
2177
- return [t.hotel.amenities ? [e(k, { staticClass: "flex-grow-1", attrs: { elevation: "0", outlined: "" } }, [e(T, [e(g, [e(m, [e("span", { staticClass: "primary--text font-weight-bold" }, [t._v(" " + t._s(t.$t("HotelDescriptionView.amenities")) + " ")])])], 1), e(g, { attrs: { justify: "start" } }, t._l(t.amenities, function(r) {
2178
- return e(m, { key: r, staticClass: "py-1", attrs: { cols: "auto" } }, [e("p", { staticClass: "ma-0 subtitle-2" }, [e("i", { class: `font-weight-bold secondary--text amenities-icon-${t.toSnakeCase(
2179
- r
2180
- )} mr-2` }), e("span", { staticClass: "font-weight-regular" }, [t._v(" " + t._s(t.$t(`HotelDescriptionView.amenityList.${r}`)) + " ")])])]);
2181
- }), 1)], 1)], 1)] : [e("div")]];
2182
- }, proxy: !0 }, { key: "map-widget", fn: function() {
2183
- return [t.hotel.city && t.hotel.address ? [e(k, { staticClass: "pa-0", attrs: { elevation: "0", outlined: "" } }, [e("b-google-map-iframe", { attrs: { address: t.hotel.address, city: t.hotel.city, height: "150px", width: "100%" } })], 1)] : [e("div")]];
2184
- }, proxy: !0 }, { key: "points-of-interest", fn: function() {
2185
- return [t.hotel.latitude && t.hotel.longitude ? [e(k, { attrs: { elevation: "0", outlined: "" } }, [e(T, [e(g, [e(m, [e("b-nearby-attractions", { attrs: { latitude: t.hotel.latitude, longitude: t.hotel.longitude } })], 1)], 1)], 1)], 1)] : [e("div")]];
2186
- }, proxy: !0 }], null, !0) }, [e("div")])] : [t.errorMessage ? [e("hotel-description-view-error", { attrs: { "error-message": t.errorMessage } })] : [e("hotel-description-view-layout", { key: "loading" })]] : void 0], 2);
2187
- }, Jr = [], Wr = /* @__PURE__ */ $(
2188
- qr,
2189
- zr,
2190
- Jr,
2191
- !1,
2192
- null,
2193
- "9d7e2e6a",
2194
- null,
2195
- null
2196
- );
2197
- const gs = Wr.exports;
2198
- se("css/revolugo.hoteldescriptionview.9ofE1uWG.css");
2199
- export {
2200
- Ie as B,
2201
- gs as H,
2202
- cn as P,
2203
- jr as a,
2204
- ne as b,
2205
- w as c,
2206
- Vr as h
2207
- };
2208
- //# sourceMappingURL=revolugo.hoteldescriptionview.CLJG1-vV.min.js.map