@revolugo/elements 6.9.6-beta.7 → 6.9.6-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 (193) hide show
  1. package/dist/css/fonts.css +1 -1
  2. package/dist/css/revolugo.bdaterangepicker.OLspTh_0.css +1 -0
  3. package/dist/css/revolugo.bhoteloffersfilterbar.BebBKpCh.css +1 -0
  4. package/dist/css/revolugo.bhotelroomsdetails.c1M8WEQ1.css +1 -0
  5. package/dist/css/revolugo.bimagecarousel.B2SxWMbZ.css +1 -0
  6. package/dist/css/revolugo.bookingdetailssidebar.Cp4sLBjD.css +1 -0
  7. package/dist/css/revolugo.bstarrating.CPHKEfup.css +1 -0
  8. package/dist/css/revolugo.btag.T7X_iIkW.css +1 -0
  9. package/dist/css/revolugo.cancellationpoliciesbadge.BLInUr3-.css +1 -0
  10. package/dist/css/revolugo.creditcardform.fTmPR0fS.css +1 -0
  11. package/dist/css/revolugo.creditcardpayment.D2PE5FCt.css +1 -0
  12. package/dist/css/revolugo.fullbookingflow.Bm8JAQF7.css +1 -0
  13. package/dist/css/revolugo.hoteldescriptionview.B-RiiuPY.css +1 -0
  14. package/dist/css/revolugo.hotelofferlist.BkctzTMI.css +1 -0
  15. package/dist/css/revolugo.hoteloffersearchmenuui.ZbUh8ba2.css +1 -0
  16. package/dist/css/revolugo.hoteloffersmap.Z5DFtK0_.css +1 -0
  17. package/dist/css/revolugo.hoteloffersview.CLbnSww6.css +1 -0
  18. package/dist/css/revolugo.hotelroomofferlist.D8JlZt_N.css +1 -0
  19. package/dist/css/revolugo.hotelroomoffersbookingflow.LHa5iHB7.css +1 -0
  20. package/dist/css/revolugo.index.DK7d_h6O.css +1 -0
  21. package/dist/css/revolugo.index.XNPQF1ia.css +5 -0
  22. package/dist/css/revolugo.langpickerbtn.BGnattUJ.css +1 -0
  23. package/dist/css/revolugo.prebookform.DmCR7hLv.css +1 -0
  24. package/dist/css/revolugo.preferencesmenu.fPv_7j-1.css +1 -0
  25. package/dist/css/revolugo.termsandconditions.D8IMR9da.css +1 -0
  26. package/dist/css/revolugo.vautocomplete.CuVjyvcC.css +1 -0
  27. package/dist/css/revolugo.vbadge.C45eZpxy.css +1 -0
  28. package/dist/css/revolugo.vbtn.DpMO1Ky2.css +1 -0
  29. package/dist/css/revolugo.vcard.TERzfknI.css +1 -0
  30. package/dist/css/revolugo.vcheckboxbtn.Bp_BNQWb.css +1 -0
  31. package/dist/css/revolugo.vdialog.DwTSAOeg.css +1 -0
  32. package/dist/css/revolugo.vdivider.CTbbZwnv.css +1 -0
  33. package/dist/css/revolugo.vexpansionpanels.RsCANmDP.css +1 -0
  34. package/dist/css/revolugo.vicon.eIkh7vVK.css +1 -0
  35. package/dist/css/revolugo.vinput.BPiFMorL.css +1 -0
  36. package/dist/css/revolugo.vlabel.BvKaKg7Y.css +1 -0
  37. package/dist/css/revolugo.vlist.-Y4qkukF.css +1 -0
  38. package/dist/css/revolugo.vmenu.DvKwEp1j.css +1 -0
  39. package/dist/css/revolugo.vselect.C5CKHFYB.css +1 -0
  40. package/dist/css/revolugo.vsheet.Dmcoj8cr.css +1 -0
  41. package/dist/css/revolugo.vskeletonloader.BlK8uFkX.css +1 -0
  42. package/dist/css/revolugo.vslidegroup.ECiLCEE9.css +1 -0
  43. package/dist/css/revolugo.vsnackbar.CCfuo3ao.css +1 -0
  44. package/dist/css/revolugo.vtextarea.Dxy6uSvm.css +1 -0
  45. package/dist/css/revolugo.vtextfield.BIH_AWWP.css +1 -0
  46. package/dist/css/revolugo.vtooltip.BHXJTQ4V.css +1 -0
  47. package/dist/css/revolugo.vwindowitem.CWBhiE_Y.css +1 -0
  48. package/dist/css/{revolugo.webcomponentwrapper.ViqP9D5c.css → revolugo.webcomponentwrapper.cFJPP6Rp.css} +1 -1
  49. package/dist/index.es.min.js +12530 -23
  50. package/dist/index.es.min.js.map +1 -1
  51. package/dist/index.min.js +19 -1
  52. package/dist/index.min.js.map +1 -1
  53. package/dist/revolugo._baseiteratee.Zjxh5X1S.min.js +247 -0
  54. package/dist/revolugo.banktransferdetails.BMe84dqg.min.js +380 -0
  55. package/dist/revolugo.bdaterangepicker.DzOGjDv0.min.js +8327 -0
  56. package/dist/revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.DMP_pksf.min.js +146 -0
  57. package/dist/revolugo.bhoteloffersfilterbar.Duj0L2BC.min.js +4901 -0
  58. package/dist/revolugo.bhotelroomsdetails.A441NOYj.min.js +965 -0
  59. package/dist/revolugo.bimagecarousel.CeagkLxi.min.js +566 -0
  60. package/dist/revolugo.bookingdetailssidebar.BR9pOQ-A.min.js +870 -0
  61. package/dist/revolugo.bookingdetailssidebar.C_cVgvbV.min.js +24 -0
  62. package/dist/revolugo.bookingmanager.Tqklnltl.min.js +1755 -0
  63. package/dist/revolugo.bpricesummaryskeleton.vue_vue_type_script_setup_true_lang.N9x3mRNq.min.js +66 -0
  64. package/dist/revolugo.bstarrating.vue_vue_type_script_setup_true_lang.vPcVvCoJ.min.js +570 -0
  65. package/dist/revolugo.btag.6i9RpwY_.min.js +375 -0
  66. package/dist/revolugo.cancellationpoliciesbadge.CJhYlUuT.min.js +198 -0
  67. package/dist/revolugo.cancellationpoliciesbadge.Vi2j73X9.min.js +28 -0
  68. package/dist/revolugo.cancellationpolicieslist.BuNsG_i4.min.js +25 -0
  69. package/dist/revolugo.cancellationpolicieslist.CaiWZD9_.min.js +148 -0
  70. package/dist/revolugo.cancellationpolicieslist.props.s6oWxIxG.min.js +21 -0
  71. package/dist/revolugo.case-transformers.BGpZ9qjt.min.js +123 -0
  72. package/dist/revolugo.common.D-l8b0V5.min.js +10 -0
  73. package/dist/{revolugo.creditcardstripeform.hPOL0GxK.min.js → revolugo.creditcardform.C1Y8cuiJ.min.js} +854 -871
  74. package/dist/revolugo.creditcardform.wbMwrte3.min.js +24 -0
  75. package/dist/revolugo.creditcardpayment.BsQwUNPu.min.js +885 -0
  76. package/dist/revolugo.creditcardpayment.v2TP6g1r.min.js +24 -0
  77. package/dist/revolugo.currencypicker.CCydQxvk.min.js +328 -0
  78. package/dist/revolugo.currencypickerbtn.54OJeTC0.min.js +157 -0
  79. package/dist/revolugo.currencypickerbtn.D0OyHd5Z.min.js +24 -0
  80. package/dist/revolugo.dates.Dma3i1u_.min.js +31 -0
  81. package/dist/revolugo.defaultsdeep.BlZWlkib.min.js +104 -0
  82. package/dist/{revolugo.dialog-attach.CVPFQqPY.min.js → revolugo.dialog-attach.blanCM_U.min.js} +2 -2
  83. package/dist/revolugo.dialog-transition.JX-XGblk.min.js +111 -0
  84. package/dist/revolugo.fastbookingflow.kwlndDrp.min.js +34 -0
  85. package/dist/revolugo.forwardrefs.VVhh1qV3.min.js +70 -0
  86. package/dist/revolugo.fullbookingflow.Cm0oV-cR.min.js +429 -0
  87. package/dist/revolugo.hotel-offer-request.aMUhw0jC.min.js +98 -0
  88. package/dist/revolugo.hoteldescriptionview.Dng4hMzd.min.js +2738 -0
  89. package/dist/revolugo.hoteldescriptionview.ojwTutv4.min.js +24 -0
  90. package/dist/revolugo.hotelofferitemlayout.vue_vue_type_script_setup_true_lang.olnYk_cF.min.js +239 -0
  91. package/dist/revolugo.hotelofferlist.BWC_k60T.min.js +5640 -0
  92. package/dist/revolugo.hotelofferlist.DacSdhyV.min.js +24 -0
  93. package/dist/revolugo.hotelofferrequestcreator.props.BeQuCTZy.min.js +44 -0
  94. package/dist/revolugo.hoteloffersearchmenu.BRYJjrI7.min.js +202 -0
  95. package/dist/revolugo.hoteloffersearchmenuui.CjFznky7.min.js +829 -0
  96. package/dist/revolugo.hoteloffersmap.B4YsCUhB.min.js +8330 -0
  97. package/dist/revolugo.hoteloffersmap.BjCpSBW5.min.js +24 -0
  98. package/dist/revolugo.hoteloffersview.Df1RPsE2.min.js +19 -0
  99. package/dist/revolugo.hoteloffersview.VHsBhOKb.min.js +616 -0
  100. package/dist/revolugo.hotelroomofferlist.kttmW_p0.min.js +24 -0
  101. package/dist/revolugo.hotelroomofferlist.t-3U4Nu4.min.js +2799 -0
  102. package/dist/revolugo.hotelroomofferrequestcreator.props.vFsZDl1K.min.js +171 -0
  103. package/dist/revolugo.hotelroomoffersbookingflow.CcnFaLm4.min.js +1281 -0
  104. package/dist/revolugo.hotelroomoffersearchmenu.FTQxJ_n5.min.js +25 -0
  105. package/dist/revolugo.hotelroomoffersearchmenu.WM6bLEz9.min.js +231 -0
  106. package/dist/revolugo.hotelroomoffersview.4GP75oBd.min.js +24 -0
  107. package/dist/revolugo.hotelroomoffersview.C64pbpV0.min.js +290 -0
  108. package/dist/revolugo.index.CmfloZTT.min.js +67 -0
  109. package/dist/revolugo.index.q2k-tLa2.min.js +1232 -0
  110. package/dist/revolugo.index.wc.BmAtoZjo.min.js +31558 -0
  111. package/dist/revolugo.langpicker.BDDm2CzN.min.js +99 -0
  112. package/dist/revolugo.langpickerbtn.BS-VKFY1.min.js +131 -0
  113. package/dist/revolugo.langpickerbtn.C_Z35YuF.min.js +29 -0
  114. package/dist/{revolugo.leaflet-src.esm.BnEQV3J-.min.js → revolugo.leaflet-src.esm.DBQWLG1M.min.js} +16 -16
  115. package/dist/revolugo.min.js +1 -1
  116. package/dist/revolugo.parsed-props.z2aR0x9r.min.js +40 -0
  117. package/dist/revolugo.pathify.DOgJK7nI.min.js +36 -0
  118. package/dist/revolugo.prebookform.DT2QXZUm.min.js +1527 -0
  119. package/dist/revolugo.prebookform.Dk1v8qZ9.min.js +24 -0
  120. package/dist/revolugo.preferencesmenu.BhDjryBC.min.js +24 -0
  121. package/dist/revolugo.preferencesmenu.DsDw7iXm.min.js +261 -0
  122. package/dist/revolugo.roominglisteditor.ChZhBnZ3.min.js +385 -0
  123. package/dist/revolugo.roominglisteditor.DaPP1NPv.min.js +24 -0
  124. package/dist/revolugo.rounded.BmZawp2x.min.js +68 -0
  125. package/dist/revolugo.ssrboot.CMusFTC5.min.js +18 -0
  126. package/dist/revolugo.storybooktoolbar.CLAq0fXx.min.js +881 -0
  127. package/dist/revolugo.termsandconditions.B8TrVOz1.min.js +404 -0
  128. package/dist/revolugo.termsandconditions.CI0t3pno.min.js +23 -0
  129. package/dist/revolugo.use-breakpoint-service.BmTXBw-9.min.js +39 -0
  130. package/dist/revolugo.use-dialog-attach.ByNAI0vu.min.js +16 -0
  131. package/dist/revolugo.use-html-element.BbD1LjYc.min.js +11 -0
  132. package/dist/revolugo.vautocomplete.D1yqzzar.min.js +445 -0
  133. package/dist/revolugo.vbadge.B1q1ebM4.min.js +112 -0
  134. package/dist/revolugo.vbtn.D-1pZWJQ.min.js +398 -0
  135. package/dist/revolugo.vcard.BhFz1a7-.min.js +313 -0
  136. package/dist/revolugo.vcheckboxbtn.BtTJE9k_.min.js +478 -0
  137. package/dist/revolugo.vdialog.Q1vj1S2Y.min.js +133 -0
  138. package/dist/revolugo.vdivider.Cw22Dcuf.min.js +77 -0
  139. package/dist/revolugo.vexpansionpanels.B6laIhZ5.min.js +262 -0
  140. package/dist/revolugo.vform.DKrc0wCb.min.js +46 -0
  141. package/dist/revolugo.vicon.OZg4Im8p.min.js +105 -0
  142. package/dist/revolugo.vinput.Bo6I7bO4.min.js +463 -0
  143. package/dist/revolugo.vlabel.CK1EiiGY.min.js +48 -0
  144. package/dist/revolugo.vlist.C2mV3Sh6.min.js +1299 -0
  145. package/dist/revolugo.vmenu.C2Y9H_mH.min.js +145 -0
  146. package/dist/revolugo.vselect.ukHPs1U9.min.js +660 -0
  147. package/dist/revolugo.vsheet.COT4-g6w.min.js +72 -0
  148. package/dist/revolugo.vskeletonloader.BUWqKsWc.min.js +136 -0
  149. package/dist/revolugo.vslidegroup.vYhKvZC2.min.js +325 -0
  150. package/dist/revolugo.vsnackbar.DGEvcXxN.min.js +198 -0
  151. package/dist/revolugo.vspacer.DKw4LWvz.min.js +7 -0
  152. package/dist/revolugo.vtextarea.JwpV0Q9q.min.js +2092 -0
  153. package/dist/revolugo.vtextfield.CF6W_mmu.min.js +501 -0
  154. package/dist/revolugo.vtoolbar.8GW_wkyp.min.js +180 -0
  155. package/dist/revolugo.vtooltip.D-CqFjzD.min.js +89 -0
  156. package/dist/revolugo.vwindowitem.DdXQiNtJ.min.js +317 -0
  157. package/dist/revolugo.watch-list.CqLXeMQh.min.js +16 -0
  158. package/dist/revolugo.webcomponentwrapper.DipHFVeJ.min.js +2088 -0
  159. package/package.json +2 -2
  160. package/dist/css/revolugo.cancellationpoliciesbadge.B4piKfhY.css +0 -1
  161. package/dist/css/revolugo.creditcardstripeform.C4-vMajR.css +0 -1
  162. package/dist/css/revolugo.index.BNlxBMG6.css +0 -5
  163. package/dist/css/revolugo.preferencesmenu.DQaHGrad.css +0 -1
  164. package/dist/revolugo.banktransferdetails.4x6-AgbX.min.js +0 -47
  165. package/dist/revolugo.bookingdetailssidebar.CnoDeRrI.min.js +0 -43
  166. package/dist/revolugo.bookingmanager.D3_SWxXa.min.js +0 -26
  167. package/dist/revolugo.cancellationpoliciesbadge.BxJHJBZO.min.js +0 -26
  168. package/dist/revolugo.cancellationpoliciesbadge.props.BvW8odFd.min.js +0 -28665
  169. package/dist/revolugo.cancellationpolicieslist.DB-DmSef.min.js +0 -26
  170. package/dist/revolugo.creditcardstripeform.BuEnuuJ1.min.js +0 -50
  171. package/dist/revolugo.currencypickerbtn.lpsDKzfm.min.js +0 -26
  172. package/dist/revolugo.fastbookingflow.BYFnM4UA.min.js +0 -36
  173. package/dist/revolugo.fullbookingflow.CglodTh7.min.js +0 -26
  174. package/dist/revolugo.hoteldescriptionview.hdOhk_-j.min.js +0 -26
  175. package/dist/revolugo.hotelofferlist.D0MiQSwa.min.js +0 -26
  176. package/dist/revolugo.hoteloffersearchmenu.AT_s5ADE.min.js +0 -115
  177. package/dist/revolugo.hoteloffersmap.pse2j-Vp.min.js +0 -26
  178. package/dist/revolugo.hoteloffersview.D1fowLJ1.min.js +0 -21
  179. package/dist/revolugo.hotelroomofferlist.BwJcWWhn.min.js +0 -26
  180. package/dist/revolugo.hotelroomoffersbookingflow.C3Zv_hBt.min.js +0 -26
  181. package/dist/revolugo.hotelroomoffersearchmenu.CMEK8Vkj.min.js +0 -26
  182. package/dist/revolugo.hotelroomoffersview.CKIc5mep.min.js +0 -26
  183. package/dist/revolugo.index.UiXV9XHV.min.js +0 -106
  184. package/dist/revolugo.index.wc.Ccgyr4X7.min.js +0 -26618
  185. package/dist/revolugo.langpickerbtn.BspqXXoI.min.js +0 -31
  186. package/dist/revolugo.prebookform.BhCJQmrm.min.js +0 -26
  187. package/dist/revolugo.preferencesmenu.DnQtbCNO.min.js +0 -935
  188. package/dist/revolugo.preferencesmenu.u45Ecso3.min.js +0 -24
  189. package/dist/revolugo.roominglisteditor.DGv07Ggk.min.js +0 -26
  190. package/dist/revolugo.storybooktoolbar.CrhCdrx8.min.js +0 -831
  191. package/dist/revolugo.termsandconditions.CSTcOVtl.min.js +0 -31
  192. package/dist/revolugo.vtoolbar.BwjwoNSz.min.js +0 -187
  193. package/dist/revolugo.webcomponentwrapper.QMEsz6ti.min.js +0 -30957
@@ -1,7 +1,15 @@
1
- import { b1 as qe, i as B, I as Be, J as ze, K as De, b2 as je, b as ct, ap as He, a as b, m as Bt, O as Fe, d as We, h as Ge, aF as Ke, x as Je, c as x, o as P, w as g, a8 as Ye, u as w, b3 as W, z as R, p as it, y as T, f as _t, j as wt, k as Ze, F as zt, b4 as Xe, aN as Qe, E as Dt } from "./revolugo.index.wc.Ccgyr4X7.min.js";
2
- import { d as tr, V as er } from "./revolugo.vtoolbar.BwjwoNSz.min.js";
3
- import { ay as rr, s as sr, az as jt, b9 as Ht, aC as nr, ba as ir, V as Ft, k as $t, I as or, J as Wt, d as G, e as L, b4 as ar, N as K, ac as lr, j as cr, b as ur, _ as pr } from "./revolugo.webcomponentwrapper.QMEsz6ti.min.js";
4
- function Ue(e) {
1
+ import { av as B, d as Re, u as Te, T as xe, H as te, k as At, b4 as Me, E as Le, a1 as Ne, a2 as Oe, a6 as Ve, aL as Ue, b5 as Ie, a as g, D as Pt, aa as qe, c as k, w as v, e as E, f as X, t as R, r as Be, g as z, i as ze, C as De, aB as je, Z as He, o as A } from "./revolugo.index.wc.BmAtoZjo.min.js";
2
+ import { _ as Fe } from "./revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.DMP_pksf.min.js";
3
+ import { p as kt } from "./revolugo.parsed-props.z2aR0x9r.min.js";
4
+ import { u as We, _ as Ge, V as D, a as N } from "./revolugo.webcomponentwrapper.DipHFVeJ.min.js";
5
+ import { V as ct } from "./revolugo.vicon.OZg4Im8p.min.js";
6
+ import { V as Ke, a as Je } from "./revolugo.vbtn.D-1pZWJQ.min.js";
7
+ import { V as Ye } from "./revolugo.vtoolbar.8GW_wkyp.min.js";
8
+ import { a as Rt, m as Ze, V as Xe } from "./revolugo.vcheckboxbtn.BtTJE9k_.min.js";
9
+ import { V as Tt, a as Qe } from "./revolugo.vcard.BhFz1a7-.min.js";
10
+ import { V as tr } from "./revolugo.vskeletonloader.BUWqKsWc.min.js";
11
+ import { u as er, V as xt, m as rr } from "./revolugo.vinput.Bo6I7bO4.min.js";
12
+ function ke(e) {
5
13
  try {
6
14
  if (typeof document < "u") {
7
15
  window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
@@ -21,90 +29,133 @@ function Ue(e) {
21
29
  console.error("[revolugo-elements] ", t);
22
30
  }
23
31
  }
24
- function dr(e, t, r) {
25
- if (e == null)
26
- return t;
27
- const s = r || ((n) => n);
28
- if (typeof e == "string")
29
- try {
30
- return s(JSON.parse(e));
31
- } catch {
32
- return t;
33
- }
34
- return s(e);
35
- }
36
- function Gt({
37
- cb: e,
38
- fallbackValue: t,
39
- prop: r
40
- }) {
41
- const s = dr(qe(r.value), t, e), n = tr(structuredClone(s), t || {});
42
- return B(s && n);
43
- }
44
- const hr = ze({
45
- ...nr(),
46
- ...Fe(ir(), ["inline"])
47
- }, "VCheckbox"), mr = Be()({
48
- name: "VCheckbox",
49
- inheritAttrs: !1,
50
- props: hr(),
51
- emits: {
52
- "update:modelValue": (e) => !0,
53
- "update:focused": (e) => !0
32
+ const sr = (e) => {
33
+ switch (e) {
34
+ case B.Production:
35
+ return "pk_live_x99EPirYIsCyUsRvPAfyhnRp";
36
+ case B.Sandbox:
37
+ case B.Staging:
38
+ case B.CiCd:
39
+ case B.Local:
40
+ default:
41
+ return "pk_test_wXnn2RrefTiOHB0zzxqJr0s8";
42
+ }
43
+ }, nr = {
44
+ amount: { type: Number },
45
+ currency: { type: String },
46
+ disabled: {
47
+ default: !1,
48
+ type: Boolean
54
49
  },
55
- setup(e, t) {
56
- let {
57
- attrs: r,
58
- slots: s
59
- } = t;
60
- const n = De(e, "modelValue"), {
61
- isFocused: i,
62
- focus: o,
63
- blur: u
64
- } = rr(e), l = je(), p = ct(() => e.id || `checkbox-${l}`);
65
- return sr(() => {
66
- const [m, y] = He(r), v = jt.filterProps(e), C = Ht.filterProps(e);
67
- return b(jt, Bt({
68
- class: ["v-checkbox", e.class]
69
- }, m, v, {
70
- modelValue: n.value,
71
- "onUpdate:modelValue": (O) => n.value = O,
72
- id: p.value,
73
- focused: i.value,
74
- style: e.style
75
- }), {
76
- ...s,
77
- default: (O) => {
78
- let {
79
- id: M,
80
- messagesId: gt,
81
- isDisabled: F,
82
- isReadonly: bt,
83
- isValid: q
84
- } = O;
85
- return b(Ht, Bt(C, {
86
- id: M.value,
87
- "aria-describedby": gt.value,
88
- disabled: F.value,
89
- readonly: bt.value
90
- }, y, {
91
- error: q.value === !1,
92
- modelValue: n.value,
93
- "onUpdate:modelValue": (St) => n.value = St,
94
- onFocus: o,
95
- onBlur: u
96
- }), s);
97
- }
98
- });
99
- }), {};
50
+ loading: {
51
+ default: !1,
52
+ type: Boolean
53
+ },
54
+ token: { required: !0, type: String },
55
+ withAction: {
56
+ default: !1,
57
+ type: Boolean
58
+ },
59
+ withTerms: {
60
+ default: !1,
61
+ type: Boolean
62
+ }
63
+ };
64
+ var ee = "basil", ir = function(t) {
65
+ return t === 3 ? "v3" : t;
66
+ }, re = "https://js.stripe.com", or = "".concat(re, "/").concat(ee, "/stripe.js"), ar = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, lr = /^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/;
67
+ var ur = function(t) {
68
+ return ar.test(t) || lr.test(t);
69
+ }, cr = function() {
70
+ for (var t = document.querySelectorAll('script[src^="'.concat(re, '"]')), r = 0; r < t.length; r++) {
71
+ var s = t[r];
72
+ if (ur(s.src))
73
+ return s;
100
74
  }
75
+ return null;
76
+ }, Mt = function(t) {
77
+ var r = "", s = document.createElement("script");
78
+ s.src = "".concat(or).concat(r);
79
+ var n = document.head || document.body;
80
+ if (!n)
81
+ throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");
82
+ return n.appendChild(s), s;
83
+ }, dr = function(t, r) {
84
+ !t || !t._registerWrapper || t._registerWrapper({
85
+ name: "stripe-js",
86
+ version: "7.5.0",
87
+ startTime: r
88
+ });
89
+ }, j = null, Q = null, tt = null, pr = function(t) {
90
+ return function(r) {
91
+ t(new Error("Failed to load Stripe.js", {
92
+ cause: r
93
+ }));
94
+ };
95
+ }, hr = function(t, r) {
96
+ return function() {
97
+ window.Stripe ? t(window.Stripe) : r(new Error("Stripe.js not available"));
98
+ };
99
+ }, mr = function(t) {
100
+ return j !== null ? j : (j = new Promise(function(r, s) {
101
+ if (typeof window > "u" || typeof document > "u") {
102
+ r(null);
103
+ return;
104
+ }
105
+ if (window.Stripe) {
106
+ r(window.Stripe);
107
+ return;
108
+ }
109
+ try {
110
+ var n = cr();
111
+ if (!(n && t)) {
112
+ if (!n)
113
+ n = Mt(t);
114
+ else if (n && tt !== null && Q !== null) {
115
+ var i;
116
+ n.removeEventListener("load", tt), n.removeEventListener("error", Q), (i = n.parentNode) === null || i === void 0 || i.removeChild(n), n = Mt(t);
117
+ }
118
+ }
119
+ tt = hr(r, s), Q = pr(s), n.addEventListener("load", tt), n.addEventListener("error", Q);
120
+ } catch (o) {
121
+ s(o);
122
+ return;
123
+ }
124
+ }), j.catch(function(r) {
125
+ return j = null, Promise.reject(r);
126
+ }));
127
+ }, yr = function(t, r, s) {
128
+ if (t === null)
129
+ return null;
130
+ var n = r[0], i = n.match(/^pk_test/), o = ir(t.version), c = ee;
131
+ i && o !== c && console.warn("Stripe.js@".concat(o, " was loaded on the page, but @stripe/stripe-js@").concat("7.5.0", " expected Stripe.js@").concat(c, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
132
+ var l = t.apply(void 0, r);
133
+ return dr(l, s), l;
134
+ }, H, se = !1, ne = function() {
135
+ return H || (H = mr(null).catch(function(t) {
136
+ return H = null, Promise.reject(t);
137
+ }), H);
138
+ };
139
+ Promise.resolve().then(function() {
140
+ return ne();
141
+ }).catch(function(e) {
142
+ se || console.warn(e);
101
143
  });
144
+ var fr = function() {
145
+ for (var t = arguments.length, r = new Array(t), s = 0; s < t; s++)
146
+ r[s] = arguments[s];
147
+ se = !0;
148
+ var n = Date.now();
149
+ return ne().then(function(i) {
150
+ return yr(i, r, n);
151
+ });
152
+ };
102
153
  /**
103
154
  * @license
104
155
  * Copyright 2017 Google LLC
105
156
  * SPDX-License-Identifier: BSD-3-Clause
106
157
  */
107
- const fe = (e) => (t) => typeof t == "function" ? ((r, s) => (customElements.define(r, s), s))(e, t) : ((r, s) => {
158
+ const ie = (e) => (t) => typeof t == "function" ? ((r, s) => (customElements.define(r, s), s))(e, t) : ((r, s) => {
108
159
  const { kind: n, elements: i } = s;
109
160
  return { kind: n, elements: i, finisher(o) {
110
161
  customElements.define(r, o);
@@ -115,34 +166,34 @@ const fe = (e) => (t) => typeof t == "function" ? ((r, s) => (customElements.def
115
166
  * Copyright 2017 Google LLC
116
167
  * SPDX-License-Identifier: BSD-3-Clause
117
168
  */
118
- const yr = (e, t) => t.kind === "method" && t.descriptor && !("value" in t.descriptor) ? { ...t, finisher(r) {
169
+ const vr = (e, t) => t.kind === "method" && t.descriptor && !("value" in t.descriptor) ? { ...t, finisher(r) {
119
170
  r.createProperty(t.key, e);
120
171
  } } : { kind: "field", key: Symbol(), placement: "own", descriptor: {}, originalKey: t.key, initializer() {
121
172
  typeof t.initializer == "function" && (this[t.key] = t.initializer.call(this));
122
173
  }, finisher(r) {
123
174
  r.createProperty(t.key, e);
124
- } }, fr = (e, t, r) => {
175
+ } }, gr = (e, t, r) => {
125
176
  t.constructor.createProperty(r, e);
126
177
  };
127
- function c(e) {
128
- return (t, r) => r !== void 0 ? fr(e, t, r) : yr(e, t);
178
+ function u(e) {
179
+ return (t, r) => r !== void 0 ? gr(e, t, r) : vr(e, t);
129
180
  }
130
181
  /**
131
182
  * @license
132
183
  * Copyright 2021 Google LLC
133
184
  * SPDX-License-Identifier: BSD-3-Clause
134
185
  */
135
- var Ct;
136
- ((Ct = window.HTMLSlotElement) === null || Ct === void 0 ? void 0 : Ct.prototype.assignedElements) != null;
137
- var Kt = !0;
138
- function k(e, t, r) {
186
+ var dt;
187
+ ((dt = window.HTMLSlotElement) === null || dt === void 0 ? void 0 : dt.prototype.assignedElements) != null;
188
+ var Lt = !0;
189
+ function C(e, t, r) {
139
190
  if (typeof r?.value != "function")
140
191
  throw new TypeError(`Only methods can be decorated with @bound. <${t ?? e.name}> is not a method!`);
141
192
  return {
142
- configurable: Kt,
193
+ configurable: Lt,
143
194
  get() {
144
195
  const s = r.value.bind(this);
145
- return Object.defineProperty(this, t, { value: s, configurable: Kt, writable: !0 }), s;
196
+ return Object.defineProperty(this, t, { value: s, configurable: Lt, writable: !0 }), s;
146
197
  }
147
198
  };
148
199
  }
@@ -151,18 +202,18 @@ function k(e, t, r) {
151
202
  * Copyright 2019 Google LLC
152
203
  * SPDX-License-Identifier: BSD-3-Clause
153
204
  */
154
- const ut = window, Ot = ut.ShadowRoot && (ut.ShadyCSS === void 0 || ut.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Lt = Symbol(), Jt = /* @__PURE__ */ new WeakMap();
155
- let ve = class {
205
+ const rt = window, $t = rt.ShadowRoot && (rt.ShadyCSS === void 0 || rt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, wt = Symbol(), Nt = /* @__PURE__ */ new WeakMap();
206
+ let oe = class {
156
207
  constructor(t, r, s) {
157
- if (this._$cssResult$ = !0, s !== Lt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
208
+ if (this._$cssResult$ = !0, s !== wt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
158
209
  this.cssText = t, this.t = r;
159
210
  }
160
211
  get styleSheet() {
161
212
  let t = this.o;
162
213
  const r = this.t;
163
- if (Ot && t === void 0) {
214
+ if ($t && t === void 0) {
164
215
  const s = r !== void 0 && r.length === 1;
165
- s && (t = Jt.get(r)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && Jt.set(r, t));
216
+ s && (t = Nt.get(r)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && Nt.set(r, t));
166
217
  }
167
218
  return t;
168
219
  }
@@ -170,33 +221,33 @@ let ve = class {
170
221
  return this.cssText;
171
222
  }
172
223
  };
173
- const vr = (e) => new ve(typeof e == "string" ? e : e + "", void 0, Lt), It = (e, ...t) => {
174
- const r = e.length === 1 ? e[0] : t.reduce(((s, n, i) => s + ((o) => {
224
+ const br = (e) => new oe(typeof e == "string" ? e : e + "", void 0, wt), _t = (e, ...t) => {
225
+ const r = e.length === 1 ? e[0] : t.reduce((s, n, i) => s + ((o) => {
175
226
  if (o._$cssResult$ === !0) return o.cssText;
176
227
  if (typeof o == "number") return o;
177
228
  throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
178
- })(n) + e[i + 1]), e[0]);
179
- return new ve(r, e, Lt);
180
- }, gr = (e, t) => {
181
- Ot ? e.adoptedStyleSheets = t.map(((r) => r instanceof CSSStyleSheet ? r : r.styleSheet)) : t.forEach(((r) => {
182
- const s = document.createElement("style"), n = ut.litNonce;
229
+ })(n) + e[i + 1], e[0]);
230
+ return new oe(r, e, wt);
231
+ }, Sr = (e, t) => {
232
+ $t ? e.adoptedStyleSheets = t.map((r) => r instanceof CSSStyleSheet ? r : r.styleSheet) : t.forEach((r) => {
233
+ const s = document.createElement("style"), n = rt.litNonce;
183
234
  n !== void 0 && s.setAttribute("nonce", n), s.textContent = r.cssText, e.appendChild(s);
184
- }));
185
- }, Yt = Ot ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
235
+ });
236
+ }, Ot = $t ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
186
237
  let r = "";
187
238
  for (const s of t.cssRules) r += s.cssText;
188
- return vr(r);
239
+ return br(r);
189
240
  })(e) : e;
190
241
  /**
191
242
  * @license
192
243
  * Copyright 2017 Google LLC
193
244
  * SPDX-License-Identifier: BSD-3-Clause
194
245
  */
195
- var Et;
196
- const yt = window, Zt = yt.trustedTypes, br = Zt ? Zt.emptyScript : "", Xt = yt.reactiveElementPolyfillSupport, Mt = { toAttribute(e, t) {
246
+ var pt;
247
+ const at = window, Vt = at.trustedTypes, $r = Vt ? Vt.emptyScript : "", Ut = at.reactiveElementPolyfillSupport, gt = { toAttribute(e, t) {
197
248
  switch (t) {
198
249
  case Boolean:
199
- e = e ? br : null;
250
+ e = e ? $r : null;
200
251
  break;
201
252
  case Object:
202
253
  case Array:
@@ -221,8 +272,8 @@ const yt = window, Zt = yt.trustedTypes, br = Zt ? Zt.emptyScript : "", Xt = yt.
221
272
  }
222
273
  }
223
274
  return r;
224
- } }, ge = (e, t) => t !== e && (t == t || e == e), Pt = { attribute: !0, type: String, converter: Mt, reflect: !1, hasChanged: ge }, Tt = "finalized";
225
- let z = class extends HTMLElement {
275
+ } }, ae = (e, t) => t !== e && (t == t || e == e), ht = { attribute: !0, type: String, converter: gt, reflect: !1, hasChanged: ae }, bt = "finalized";
276
+ let O = class extends HTMLElement {
226
277
  constructor() {
227
278
  super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this._$Eu();
228
279
  }
@@ -233,12 +284,12 @@ let z = class extends HTMLElement {
233
284
  static get observedAttributes() {
234
285
  this.finalize();
235
286
  const t = [];
236
- return this.elementProperties.forEach(((r, s) => {
287
+ return this.elementProperties.forEach((r, s) => {
237
288
  const n = this._$Ep(s, r);
238
289
  n !== void 0 && (this._$Ev.set(n, s), t.push(n));
239
- })), t;
290
+ }), t;
240
291
  }
241
- static createProperty(t, r = Pt) {
292
+ static createProperty(t, r = ht) {
242
293
  if (r.state && (r.attribute = !1), this.finalize(), this.elementProperties.set(t, r), !r.noAccessor && !this.prototype.hasOwnProperty(t)) {
243
294
  const s = typeof t == "symbol" ? Symbol() : "__" + t, n = this.getPropertyDescriptor(t, s, r);
244
295
  n !== void 0 && Object.defineProperty(this.prototype, t, n);
@@ -253,11 +304,11 @@ let z = class extends HTMLElement {
253
304
  }, configurable: !0, enumerable: !0 };
254
305
  }
255
306
  static getPropertyOptions(t) {
256
- return this.elementProperties.get(t) || Pt;
307
+ return this.elementProperties.get(t) || ht;
257
308
  }
258
309
  static finalize() {
259
- if (this.hasOwnProperty(Tt)) return !1;
260
- this[Tt] = !0;
310
+ if (this.hasOwnProperty(bt)) return !1;
311
+ this[bt] = !0;
261
312
  const t = Object.getPrototypeOf(this);
262
313
  if (t.finalize(), t.h !== void 0 && (this.h = [...t.h]), this.elementProperties = new Map(t.elementProperties), this._$Ev = /* @__PURE__ */ new Map(), this.hasOwnProperty("properties")) {
263
314
  const r = this.properties, s = [...Object.getOwnPropertyNames(r), ...Object.getOwnPropertySymbols(r)];
@@ -269,8 +320,8 @@ let z = class extends HTMLElement {
269
320
  const r = [];
270
321
  if (Array.isArray(t)) {
271
322
  const s = new Set(t.flat(1 / 0).reverse());
272
- for (const n of s) r.unshift(Yt(n));
273
- } else t !== void 0 && r.push(Yt(t));
323
+ for (const n of s) r.unshift(Ot(n));
324
+ } else t !== void 0 && r.push(Ot(t));
274
325
  return r;
275
326
  }
276
327
  static _$Ep(t, r) {
@@ -279,7 +330,7 @@ let z = class extends HTMLElement {
279
330
  }
280
331
  _$Eu() {
281
332
  var t;
282
- this._$E_ = new Promise(((r) => this.enableUpdating = r)), this._$AL = /* @__PURE__ */ new Map(), this._$Eg(), this.requestUpdate(), (t = this.constructor.h) === null || t === void 0 || t.forEach(((r) => r(this)));
333
+ this._$E_ = new Promise((r) => this.enableUpdating = r), this._$AL = /* @__PURE__ */ new Map(), this._$Eg(), this.requestUpdate(), (t = this.constructor.h) === null || t === void 0 || t.forEach((r) => r(this));
283
334
  }
284
335
  addController(t) {
285
336
  var r, s;
@@ -290,39 +341,39 @@ let z = class extends HTMLElement {
290
341
  (r = this._$ES) === null || r === void 0 || r.splice(this._$ES.indexOf(t) >>> 0, 1);
291
342
  }
292
343
  _$Eg() {
293
- this.constructor.elementProperties.forEach(((t, r) => {
344
+ this.constructor.elementProperties.forEach((t, r) => {
294
345
  this.hasOwnProperty(r) && (this._$Ei.set(r, this[r]), delete this[r]);
295
- }));
346
+ });
296
347
  }
297
348
  createRenderRoot() {
298
349
  var t;
299
350
  const r = (t = this.shadowRoot) !== null && t !== void 0 ? t : this.attachShadow(this.constructor.shadowRootOptions);
300
- return gr(r, this.constructor.elementStyles), r;
351
+ return Sr(r, this.constructor.elementStyles), r;
301
352
  }
302
353
  connectedCallback() {
303
354
  var t;
304
- this.renderRoot === void 0 && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$ES) === null || t === void 0 || t.forEach(((r) => {
355
+ this.renderRoot === void 0 && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$ES) === null || t === void 0 || t.forEach((r) => {
305
356
  var s;
306
357
  return (s = r.hostConnected) === null || s === void 0 ? void 0 : s.call(r);
307
- }));
358
+ });
308
359
  }
309
360
  enableUpdating(t) {
310
361
  }
311
362
  disconnectedCallback() {
312
363
  var t;
313
- (t = this._$ES) === null || t === void 0 || t.forEach(((r) => {
364
+ (t = this._$ES) === null || t === void 0 || t.forEach((r) => {
314
365
  var s;
315
366
  return (s = r.hostDisconnected) === null || s === void 0 ? void 0 : s.call(r);
316
- }));
367
+ });
317
368
  }
318
369
  attributeChangedCallback(t, r, s) {
319
370
  this._$AK(t, s);
320
371
  }
321
- _$EO(t, r, s = Pt) {
372
+ _$EO(t, r, s = ht) {
322
373
  var n;
323
374
  const i = this.constructor._$Ep(t, s);
324
375
  if (i !== void 0 && s.reflect === !0) {
325
- const o = (((n = s.converter) === null || n === void 0 ? void 0 : n.toAttribute) !== void 0 ? s.converter : Mt).toAttribute(r, s.type);
376
+ const o = (((n = s.converter) === null || n === void 0 ? void 0 : n.toAttribute) !== void 0 ? s.converter : gt).toAttribute(r, s.type);
326
377
  this._$El = t, o == null ? this.removeAttribute(i) : this.setAttribute(i, o), this._$El = null;
327
378
  }
328
379
  }
@@ -330,13 +381,13 @@ let z = class extends HTMLElement {
330
381
  var s;
331
382
  const n = this.constructor, i = n._$Ev.get(t);
332
383
  if (i !== void 0 && this._$El !== i) {
333
- const o = n.getPropertyOptions(i), u = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((s = o.converter) === null || s === void 0 ? void 0 : s.fromAttribute) !== void 0 ? o.converter : Mt;
334
- this._$El = i, this[i] = u.fromAttribute(r, o.type), this._$El = null;
384
+ const o = n.getPropertyOptions(i), c = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((s = o.converter) === null || s === void 0 ? void 0 : s.fromAttribute) !== void 0 ? o.converter : gt;
385
+ this._$El = i, this[i] = c.fromAttribute(r, o.type), this._$El = null;
335
386
  }
336
387
  }
337
388
  requestUpdate(t, r, s) {
338
389
  let n = !0;
339
- t !== void 0 && (((s = s || this.constructor.getPropertyOptions(t)).hasChanged || ge)(this[t], r) ? (this._$AL.has(t) || this._$AL.set(t, r), s.reflect === !0 && this._$El !== t && (this._$EC === void 0 && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(t, s))) : n = !1), !this.isUpdatePending && n && (this._$E_ = this._$Ej());
390
+ t !== void 0 && (((s = s || this.constructor.getPropertyOptions(t)).hasChanged || ae)(this[t], r) ? (this._$AL.has(t) || this._$AL.set(t, r), s.reflect === !0 && this._$El !== t && (this._$EC === void 0 && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(t, s))) : n = !1), !this.isUpdatePending && n && (this._$E_ = this._$Ej());
340
391
  }
341
392
  async _$Ej() {
342
393
  this.isUpdatePending = !0;
@@ -354,14 +405,14 @@ let z = class extends HTMLElement {
354
405
  performUpdate() {
355
406
  var t;
356
407
  if (!this.isUpdatePending) return;
357
- this.hasUpdated, this._$Ei && (this._$Ei.forEach(((n, i) => this[i] = n)), this._$Ei = void 0);
408
+ this.hasUpdated, this._$Ei && (this._$Ei.forEach((n, i) => this[i] = n), this._$Ei = void 0);
358
409
  let r = !1;
359
410
  const s = this._$AL;
360
411
  try {
361
- r = this.shouldUpdate(s), r ? (this.willUpdate(s), (t = this._$ES) === null || t === void 0 || t.forEach(((n) => {
412
+ r = this.shouldUpdate(s), r ? (this.willUpdate(s), (t = this._$ES) === null || t === void 0 || t.forEach((n) => {
362
413
  var i;
363
414
  return (i = n.hostUpdate) === null || i === void 0 ? void 0 : i.call(n);
364
- })), this.update(s)) : this._$Ek();
415
+ }), this.update(s)) : this._$Ek();
365
416
  } catch (n) {
366
417
  throw r = !1, this._$Ek(), n;
367
418
  }
@@ -371,10 +422,10 @@ let z = class extends HTMLElement {
371
422
  }
372
423
  _$AE(t) {
373
424
  var r;
374
- (r = this._$ES) === null || r === void 0 || r.forEach(((s) => {
425
+ (r = this._$ES) === null || r === void 0 || r.forEach((s) => {
375
426
  var n;
376
427
  return (n = s.hostUpdated) === null || n === void 0 ? void 0 : n.call(s);
377
- })), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
428
+ }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
378
429
  }
379
430
  _$Ek() {
380
431
  this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
@@ -389,91 +440,91 @@ let z = class extends HTMLElement {
389
440
  return !0;
390
441
  }
391
442
  update(t) {
392
- this._$EC !== void 0 && (this._$EC.forEach(((r, s) => this._$EO(s, this[s], r))), this._$EC = void 0), this._$Ek();
443
+ this._$EC !== void 0 && (this._$EC.forEach((r, s) => this._$EO(s, this[s], r)), this._$EC = void 0), this._$Ek();
393
444
  }
394
445
  updated(t) {
395
446
  }
396
447
  firstUpdated(t) {
397
448
  }
398
449
  };
399
- z[Tt] = !0, z.elementProperties = /* @__PURE__ */ new Map(), z.elementStyles = [], z.shadowRootOptions = { mode: "open" }, Xt?.({ ReactiveElement: z }), ((Et = yt.reactiveElementVersions) !== null && Et !== void 0 ? Et : yt.reactiveElementVersions = []).push("1.6.3");
450
+ O[bt] = !0, O.elementProperties = /* @__PURE__ */ new Map(), O.elementStyles = [], O.shadowRootOptions = { mode: "open" }, Ut?.({ ReactiveElement: O }), ((pt = at.reactiveElementVersions) !== null && pt !== void 0 ? pt : at.reactiveElementVersions = []).push("1.6.3");
400
451
  /**
401
452
  * @license
402
453
  * Copyright 2017 Google LLC
403
454
  * SPDX-License-Identifier: BSD-3-Clause
404
455
  */
405
- var At;
406
- const ft = window, D = ft.trustedTypes, Qt = D ? D.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Nt = "$lit$", N = `lit$${(Math.random() + "").slice(9)}$`, be = "?" + N, Sr = `<${be}>`, U = document, tt = () => U.createComment(""), et = (e) => e === null || typeof e != "object" && typeof e != "function", Se = Array.isArray, _r = (e) => Se(e) || typeof e?.[Symbol.iterator] == "function", xt = `[
407
- \f\r]`, J = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, te = /-->/g, ee = />/g, I = RegExp(`>|${xt}(?:([^\\s"'>=/]+)(${xt}*=${xt}*(?:[^
408
- \f\r"'\`<>=]|("|')|))|$)`, "g"), re = /'/g, se = /"/g, _e = /^(?:script|style|textarea|title)$/i, wr = (e) => (t, ...r) => ({ _$litType$: e, strings: t, values: r }), $r = wr(1), j = Symbol.for("lit-noChange"), S = Symbol.for("lit-nothing"), ne = /* @__PURE__ */ new WeakMap(), V = U.createTreeWalker(U, 129, null, !1);
409
- function we(e, t) {
456
+ var mt;
457
+ const lt = window, V = lt.trustedTypes, It = V ? V.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, St = "$lit$", P = `lit$${(Math.random() + "").slice(9)}$`, le = "?" + P, wr = `<${le}>`, M = document, K = () => M.createComment(""), J = (e) => e === null || typeof e != "object" && typeof e != "function", ue = Array.isArray, _r = (e) => ue(e) || typeof e?.[Symbol.iterator] == "function", yt = `[
458
+ \f\r]`, F = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, qt = /-->/g, Bt = />/g, T = RegExp(`>|${yt}(?:([^\\s"'>=/]+)(${yt}*=${yt}*(?:[^
459
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), zt = /'/g, Dt = /"/g, ce = /^(?:script|style|textarea|title)$/i, Cr = (e) => (t, ...r) => ({ _$litType$: e, strings: t, values: r }), Er = Cr(1), U = Symbol.for("lit-noChange"), b = Symbol.for("lit-nothing"), jt = /* @__PURE__ */ new WeakMap(), x = M.createTreeWalker(M, 129, null, !1);
460
+ function de(e, t) {
410
461
  if (!Array.isArray(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
411
- return Qt !== void 0 ? Qt.createHTML(t) : t;
462
+ return It !== void 0 ? It.createHTML(t) : t;
412
463
  }
413
- const Cr = (e, t) => {
464
+ const Ar = (e, t) => {
414
465
  const r = e.length - 1, s = [];
415
- let n, i = t === 2 ? "<svg>" : "", o = J;
416
- for (let u = 0; u < r; u++) {
417
- const l = e[u];
418
- let p, m, y = -1, v = 0;
419
- for (; v < l.length && (o.lastIndex = v, m = o.exec(l), m !== null); ) v = o.lastIndex, o === J ? m[1] === "!--" ? o = te : m[1] !== void 0 ? o = ee : m[2] !== void 0 ? (_e.test(m[2]) && (n = RegExp("</" + m[2], "g")), o = I) : m[3] !== void 0 && (o = I) : o === I ? m[0] === ">" ? (o = n ?? J, y = -1) : m[1] === void 0 ? y = -2 : (y = o.lastIndex - m[2].length, p = m[1], o = m[3] === void 0 ? I : m[3] === '"' ? se : re) : o === se || o === re ? o = I : o === te || o === ee ? o = J : (o = I, n = void 0);
420
- const C = o === I && e[u + 1].startsWith("/>") ? " " : "";
421
- i += o === J ? l + Sr : y >= 0 ? (s.push(p), l.slice(0, y) + Nt + l.slice(y) + N + C) : l + N + (y === -2 ? (s.push(void 0), u) : C);
422
- }
423
- return [we(e, i + (e[r] || "<?>") + (t === 2 ? "</svg>" : "")), s];
466
+ let n, i = t === 2 ? "<svg>" : "", o = F;
467
+ for (let c = 0; c < r; c++) {
468
+ const l = e[c];
469
+ let p, y, f = -1, S = 0;
470
+ for (; S < l.length && (o.lastIndex = S, y = o.exec(l), y !== null); ) S = o.lastIndex, o === F ? y[1] === "!--" ? o = qt : y[1] !== void 0 ? o = Bt : y[2] !== void 0 ? (ce.test(y[2]) && (n = RegExp("</" + y[2], "g")), o = T) : y[3] !== void 0 && (o = T) : o === T ? y[0] === ">" ? (o = n ?? F, f = -1) : y[1] === void 0 ? f = -2 : (f = o.lastIndex - y[2].length, p = y[1], o = y[3] === void 0 ? T : y[3] === '"' ? Dt : zt) : o === Dt || o === zt ? o = T : o === qt || o === Bt ? o = F : (o = T, n = void 0);
471
+ const _ = o === T && e[c + 1].startsWith("/>") ? " " : "";
472
+ i += o === F ? l + wr : f >= 0 ? (s.push(p), l.slice(0, f) + St + l.slice(f) + P + _) : l + P + (f === -2 ? (s.push(void 0), c) : _);
473
+ }
474
+ return [de(e, i + (e[r] || "<?>") + (t === 2 ? "</svg>" : "")), s];
424
475
  };
425
- class rt {
476
+ class Y {
426
477
  constructor({ strings: t, _$litType$: r }, s) {
427
478
  let n;
428
479
  this.parts = [];
429
480
  let i = 0, o = 0;
430
- const u = t.length - 1, l = this.parts, [p, m] = Cr(t, r);
431
- if (this.el = rt.createElement(p, s), V.currentNode = this.el.content, r === 2) {
432
- const y = this.el.content, v = y.firstChild;
433
- v.remove(), y.append(...v.childNodes);
481
+ const c = t.length - 1, l = this.parts, [p, y] = Ar(t, r);
482
+ if (this.el = Y.createElement(p, s), x.currentNode = this.el.content, r === 2) {
483
+ const f = this.el.content, S = f.firstChild;
484
+ S.remove(), f.append(...S.childNodes);
434
485
  }
435
- for (; (n = V.nextNode()) !== null && l.length < u; ) {
486
+ for (; (n = x.nextNode()) !== null && l.length < c; ) {
436
487
  if (n.nodeType === 1) {
437
488
  if (n.hasAttributes()) {
438
- const y = [];
439
- for (const v of n.getAttributeNames()) if (v.endsWith(Nt) || v.startsWith(N)) {
440
- const C = m[o++];
441
- if (y.push(v), C !== void 0) {
442
- const O = n.getAttribute(C.toLowerCase() + Nt).split(N), M = /([.?@])?(.*)/.exec(C);
443
- l.push({ type: 1, index: i, name: M[2], strings: O, ctor: M[1] === "." ? Pr : M[1] === "?" ? xr : M[1] === "@" ? kr : vt });
489
+ const f = [];
490
+ for (const S of n.getAttributeNames()) if (S.endsWith(St) || S.startsWith(P)) {
491
+ const _ = y[o++];
492
+ if (f.push(S), _ !== void 0) {
493
+ const q = n.getAttribute(_.toLowerCase() + St).split(P), L = /([.?@])?(.*)/.exec(_);
494
+ l.push({ type: 1, index: i, name: L[2], strings: q, ctor: L[1] === "." ? kr : L[1] === "?" ? Tr : L[1] === "@" ? xr : ut });
444
495
  } else l.push({ type: 6, index: i });
445
496
  }
446
- for (const v of y) n.removeAttribute(v);
497
+ for (const S of f) n.removeAttribute(S);
447
498
  }
448
- if (_e.test(n.tagName)) {
449
- const y = n.textContent.split(N), v = y.length - 1;
450
- if (v > 0) {
451
- n.textContent = D ? D.emptyScript : "";
452
- for (let C = 0; C < v; C++) n.append(y[C], tt()), V.nextNode(), l.push({ type: 2, index: ++i });
453
- n.append(y[v], tt());
499
+ if (ce.test(n.tagName)) {
500
+ const f = n.textContent.split(P), S = f.length - 1;
501
+ if (S > 0) {
502
+ n.textContent = V ? V.emptyScript : "";
503
+ for (let _ = 0; _ < S; _++) n.append(f[_], K()), x.nextNode(), l.push({ type: 2, index: ++i });
504
+ n.append(f[S], K());
454
505
  }
455
506
  }
456
- } else if (n.nodeType === 8) if (n.data === be) l.push({ type: 2, index: i });
507
+ } else if (n.nodeType === 8) if (n.data === le) l.push({ type: 2, index: i });
457
508
  else {
458
- let y = -1;
459
- for (; (y = n.data.indexOf(N, y + 1)) !== -1; ) l.push({ type: 7, index: i }), y += N.length - 1;
509
+ let f = -1;
510
+ for (; (f = n.data.indexOf(P, f + 1)) !== -1; ) l.push({ type: 7, index: i }), f += P.length - 1;
460
511
  }
461
512
  i++;
462
513
  }
463
514
  }
464
515
  static createElement(t, r) {
465
- const s = U.createElement("template");
516
+ const s = M.createElement("template");
466
517
  return s.innerHTML = t, s;
467
518
  }
468
519
  }
469
- function H(e, t, r = e, s) {
470
- var n, i, o, u;
471
- if (t === j) return t;
520
+ function I(e, t, r = e, s) {
521
+ var n, i, o, c;
522
+ if (t === U) return t;
472
523
  let l = s !== void 0 ? (n = r._$Co) === null || n === void 0 ? void 0 : n[s] : r._$Cl;
473
- const p = et(t) ? void 0 : t._$litDirective$;
474
- return l?.constructor !== p && ((i = l?._$AO) === null || i === void 0 || i.call(l, !1), p === void 0 ? l = void 0 : (l = new p(e), l._$AT(e, r, s)), s !== void 0 ? ((o = (u = r)._$Co) !== null && o !== void 0 ? o : u._$Co = [])[s] = l : r._$Cl = l), l !== void 0 && (t = H(e, l._$AS(e, t.values), l, s)), t;
524
+ const p = J(t) ? void 0 : t._$litDirective$;
525
+ return l?.constructor !== p && ((i = l?._$AO) === null || i === void 0 || i.call(l, !1), p === void 0 ? l = void 0 : (l = new p(e), l._$AT(e, r, s)), s !== void 0 ? ((o = (c = r)._$Co) !== null && o !== void 0 ? o : c._$Co = [])[s] = l : r._$Cl = l), l !== void 0 && (t = I(e, l._$AS(e, t.values), l, s)), t;
475
526
  }
476
- class Er {
527
+ class Pr {
477
528
  constructor(t, r) {
478
529
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = r;
479
530
  }
@@ -485,27 +536,27 @@ class Er {
485
536
  }
486
537
  u(t) {
487
538
  var r;
488
- const { el: { content: s }, parts: n } = this._$AD, i = ((r = t?.creationScope) !== null && r !== void 0 ? r : U).importNode(s, !0);
489
- V.currentNode = i;
490
- let o = V.nextNode(), u = 0, l = 0, p = n[0];
539
+ const { el: { content: s }, parts: n } = this._$AD, i = ((r = t?.creationScope) !== null && r !== void 0 ? r : M).importNode(s, !0);
540
+ x.currentNode = i;
541
+ let o = x.nextNode(), c = 0, l = 0, p = n[0];
491
542
  for (; p !== void 0; ) {
492
- if (u === p.index) {
493
- let m;
494
- p.type === 2 ? m = new st(o, o.nextSibling, this, t) : p.type === 1 ? m = new p.ctor(o, p.name, p.strings, this, t) : p.type === 6 && (m = new Rr(o, this, t)), this._$AV.push(m), p = n[++l];
543
+ if (c === p.index) {
544
+ let y;
545
+ p.type === 2 ? y = new Z(o, o.nextSibling, this, t) : p.type === 1 ? y = new p.ctor(o, p.name, p.strings, this, t) : p.type === 6 && (y = new Mr(o, this, t)), this._$AV.push(y), p = n[++l];
495
546
  }
496
- u !== p?.index && (o = V.nextNode(), u++);
547
+ c !== p?.index && (o = x.nextNode(), c++);
497
548
  }
498
- return V.currentNode = U, i;
549
+ return x.currentNode = M, i;
499
550
  }
500
551
  v(t) {
501
552
  let r = 0;
502
553
  for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, r), r += s.strings.length - 2) : s._$AI(t[r])), r++;
503
554
  }
504
555
  }
505
- class st {
556
+ class Z {
506
557
  constructor(t, r, s, n) {
507
558
  var i;
508
- this.type = 2, this._$AH = S, this._$AN = void 0, this._$AA = t, this._$AB = r, this._$AM = s, this.options = n, this._$Cp = (i = n?.isConnected) === null || i === void 0 || i;
559
+ this.type = 2, this._$AH = b, this._$AN = void 0, this._$AA = t, this._$AB = r, this._$AM = s, this.options = n, this._$Cp = (i = n?.isConnected) === null || i === void 0 || i;
509
560
  }
510
561
  get _$AU() {
511
562
  var t, r;
@@ -523,7 +574,7 @@ class st {
523
574
  return this._$AB;
524
575
  }
525
576
  _$AI(t, r = this) {
526
- t = H(this, t, r), et(t) ? t === S || t == null || t === "" ? (this._$AH !== S && this._$AR(), this._$AH = S) : t !== this._$AH && t !== j && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : _r(t) ? this.T(t) : this._(t);
577
+ t = I(this, t, r), J(t) ? t === b || t == null || t === "" ? (this._$AH !== b && this._$AR(), this._$AH = b) : t !== this._$AH && t !== U && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : _r(t) ? this.T(t) : this._(t);
527
578
  }
528
579
  k(t) {
529
580
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -532,26 +583,26 @@ class st {
532
583
  this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
533
584
  }
534
585
  _(t) {
535
- this._$AH !== S && et(this._$AH) ? this._$AA.nextSibling.data = t : this.$(U.createTextNode(t)), this._$AH = t;
586
+ this._$AH !== b && J(this._$AH) ? this._$AA.nextSibling.data = t : this.$(M.createTextNode(t)), this._$AH = t;
536
587
  }
537
588
  g(t) {
538
589
  var r;
539
- const { values: s, _$litType$: n } = t, i = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = rt.createElement(we(n.h, n.h[0]), this.options)), n);
590
+ const { values: s, _$litType$: n } = t, i = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = Y.createElement(de(n.h, n.h[0]), this.options)), n);
540
591
  if (((r = this._$AH) === null || r === void 0 ? void 0 : r._$AD) === i) this._$AH.v(s);
541
592
  else {
542
- const o = new Er(i, this), u = o.u(this.options);
543
- o.v(s), this.$(u), this._$AH = o;
593
+ const o = new Pr(i, this), c = o.u(this.options);
594
+ o.v(s), this.$(c), this._$AH = o;
544
595
  }
545
596
  }
546
597
  _$AC(t) {
547
- let r = ne.get(t.strings);
548
- return r === void 0 && ne.set(t.strings, r = new rt(t)), r;
598
+ let r = jt.get(t.strings);
599
+ return r === void 0 && jt.set(t.strings, r = new Y(t)), r;
549
600
  }
550
601
  T(t) {
551
- Se(this._$AH) || (this._$AH = [], this._$AR());
602
+ ue(this._$AH) || (this._$AH = [], this._$AR());
552
603
  const r = this._$AH;
553
604
  let s, n = 0;
554
- for (const i of t) n === r.length ? r.push(s = new st(this.k(tt()), this.k(tt()), this, this.options)) : s = r[n], s._$AI(i), n++;
605
+ for (const i of t) n === r.length ? r.push(s = new Z(this.k(K()), this.k(K()), this, this.options)) : s = r[n], s._$AI(i), n++;
555
606
  n < r.length && (this._$AR(s && s._$AB.nextSibling, n), r.length = n);
556
607
  }
557
608
  _$AR(t = this._$AA.nextSibling, r) {
@@ -566,9 +617,9 @@ class st {
566
617
  this._$AM === void 0 && (this._$Cp = t, (r = this._$AP) === null || r === void 0 || r.call(this, t));
567
618
  }
568
619
  }
569
- class vt {
620
+ class ut {
570
621
  constructor(t, r, s, n, i) {
571
- this.type = 1, this._$AH = S, this._$AN = void 0, this.element = t, this.name = r, this._$AM = n, this.options = i, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = S;
622
+ this.type = 1, this._$AH = b, this._$AN = void 0, this.element = t, this.name = r, this._$AM = n, this.options = i, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = b;
572
623
  }
573
624
  get tagName() {
574
625
  return this.element.tagName;
@@ -579,43 +630,43 @@ class vt {
579
630
  _$AI(t, r = this, s, n) {
580
631
  const i = this.strings;
581
632
  let o = !1;
582
- if (i === void 0) t = H(this, t, r, 0), o = !et(t) || t !== this._$AH && t !== j, o && (this._$AH = t);
633
+ if (i === void 0) t = I(this, t, r, 0), o = !J(t) || t !== this._$AH && t !== U, o && (this._$AH = t);
583
634
  else {
584
- const u = t;
635
+ const c = t;
585
636
  let l, p;
586
- for (t = i[0], l = 0; l < i.length - 1; l++) p = H(this, u[s + l], r, l), p === j && (p = this._$AH[l]), o || (o = !et(p) || p !== this._$AH[l]), p === S ? t = S : t !== S && (t += (p ?? "") + i[l + 1]), this._$AH[l] = p;
637
+ for (t = i[0], l = 0; l < i.length - 1; l++) p = I(this, c[s + l], r, l), p === U && (p = this._$AH[l]), o || (o = !J(p) || p !== this._$AH[l]), p === b ? t = b : t !== b && (t += (p ?? "") + i[l + 1]), this._$AH[l] = p;
587
638
  }
588
639
  o && !n && this.j(t);
589
640
  }
590
641
  j(t) {
591
- t === S ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
642
+ t === b ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
592
643
  }
593
644
  }
594
- class Pr extends vt {
645
+ class kr extends ut {
595
646
  constructor() {
596
647
  super(...arguments), this.type = 3;
597
648
  }
598
649
  j(t) {
599
- this.element[this.name] = t === S ? void 0 : t;
650
+ this.element[this.name] = t === b ? void 0 : t;
600
651
  }
601
652
  }
602
- const Ar = D ? D.emptyScript : "";
603
- class xr extends vt {
653
+ const Rr = V ? V.emptyScript : "";
654
+ class Tr extends ut {
604
655
  constructor() {
605
656
  super(...arguments), this.type = 4;
606
657
  }
607
658
  j(t) {
608
- t && t !== S ? this.element.setAttribute(this.name, Ar) : this.element.removeAttribute(this.name);
659
+ t && t !== b ? this.element.setAttribute(this.name, Rr) : this.element.removeAttribute(this.name);
609
660
  }
610
661
  }
611
- class kr extends vt {
662
+ class xr extends ut {
612
663
  constructor(t, r, s, n, i) {
613
664
  super(t, r, s, n, i), this.type = 5;
614
665
  }
615
666
  _$AI(t, r = this) {
616
667
  var s;
617
- if ((t = (s = H(this, t, r, 0)) !== null && s !== void 0 ? s : S) === j) return;
618
- const n = this._$AH, i = t === S && n !== S || t.capture !== n.capture || t.once !== n.once || t.passive !== n.passive, o = t !== S && (n === S || i);
668
+ if ((t = (s = I(this, t, r, 0)) !== null && s !== void 0 ? s : b) === U) return;
669
+ const n = this._$AH, i = t === b && n !== b || t.capture !== n.capture || t.once !== n.once || t.passive !== n.passive, o = t !== b && (n === b || i);
619
670
  i && this.element.removeEventListener(this.name, this, n), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
620
671
  }
621
672
  handleEvent(t) {
@@ -623,7 +674,7 @@ class kr extends vt {
623
674
  typeof this._$AH == "function" ? this._$AH.call((s = (r = this.options) === null || r === void 0 ? void 0 : r.host) !== null && s !== void 0 ? s : this.element, t) : this._$AH.handleEvent(t);
624
675
  }
625
676
  }
626
- class Rr {
677
+ class Mr {
627
678
  constructor(t, r, s) {
628
679
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = r, this.options = s;
629
680
  }
@@ -631,18 +682,18 @@ class Rr {
631
682
  return this._$AM._$AU;
632
683
  }
633
684
  _$AI(t) {
634
- H(this, t);
685
+ I(this, t);
635
686
  }
636
687
  }
637
- const ie = ft.litHtmlPolyfillSupport;
638
- ie?.(rt, st), ((At = ft.litHtmlVersions) !== null && At !== void 0 ? At : ft.litHtmlVersions = []).push("2.8.0");
639
- const Mr = (e, t, r) => {
688
+ const Ht = lt.litHtmlPolyfillSupport;
689
+ Ht?.(Y, Z), ((mt = lt.litHtmlVersions) !== null && mt !== void 0 ? mt : lt.litHtmlVersions = []).push("2.8.0");
690
+ const Lr = (e, t, r) => {
640
691
  var s, n;
641
692
  const i = (s = r?.renderBefore) !== null && s !== void 0 ? s : t;
642
693
  let o = i._$litPart$;
643
694
  if (o === void 0) {
644
- const u = (n = r?.renderBefore) !== null && n !== void 0 ? n : null;
645
- i._$litPart$ = o = new st(t.insertBefore(tt(), u), u, void 0, r ?? {});
695
+ const c = (n = r?.renderBefore) !== null && n !== void 0 ? n : null;
696
+ i._$litPart$ = o = new Z(t.insertBefore(K(), c), c, void 0, r ?? {});
646
697
  }
647
698
  return o._$AI(e), o;
648
699
  };
@@ -651,8 +702,8 @@ const Mr = (e, t, r) => {
651
702
  * Copyright 2017 Google LLC
652
703
  * SPDX-License-Identifier: BSD-3-Clause
653
704
  */
654
- var kt, Rt;
655
- class Q extends z {
705
+ var ft, vt;
706
+ class G extends O {
656
707
  constructor() {
657
708
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
658
709
  }
@@ -663,7 +714,7 @@ class Q extends z {
663
714
  }
664
715
  update(t) {
665
716
  const r = this.render();
666
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Mr(r, this.renderRoot, this.renderOptions);
717
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Lr(r, this.renderRoot, this.renderOptions);
667
718
  }
668
719
  connectedCallback() {
669
720
  var t;
@@ -674,21 +725,21 @@ class Q extends z {
674
725
  super.disconnectedCallback(), (t = this._$Do) === null || t === void 0 || t.setConnected(!1);
675
726
  }
676
727
  render() {
677
- return j;
728
+ return U;
678
729
  }
679
730
  }
680
- Q.finalized = !0, Q._$litElement$ = !0, (kt = globalThis.litElementHydrateSupport) === null || kt === void 0 || kt.call(globalThis, { LitElement: Q });
681
- const oe = globalThis.litElementPolyfillSupport;
682
- oe?.({ LitElement: Q });
683
- ((Rt = globalThis.litElementVersions) !== null && Rt !== void 0 ? Rt : globalThis.litElementVersions = []).push("3.3.3");
731
+ G.finalized = !0, G._$litElement$ = !0, (ft = globalThis.litElementHydrateSupport) === null || ft === void 0 || ft.call(globalThis, { LitElement: G });
732
+ const Ft = globalThis.litElementPolyfillSupport;
733
+ Ft?.({ LitElement: G });
734
+ ((vt = globalThis.litElementVersions) !== null && vt !== void 0 ? vt : globalThis.litElementVersions = []).push("3.3.3");
684
735
  /**
685
736
  * @license
686
737
  * Copyright 2018 Google LLC
687
738
  * SPDX-License-Identifier: BSD-3-Clause
688
739
  */
689
- const Tr = (e) => e ?? S, Nr = /[A-ZÀ-ÖÙ-Ý]+/g, Or = /[a-zà-öù-ý]+/g;
690
- function Lr(e) {
691
- const t = e.replace(Nr, r).match(Or);
740
+ const Nr = (e) => e ?? b, Or = /[A-ZÀ-ÖÙ-Ý]+/g, Vr = /[a-zà-öù-ý]+/g;
741
+ function Ur(e) {
742
+ const t = e.replace(Or, r).match(Vr);
692
743
  return t ? t.join("-") : "";
693
744
  function r(s) {
694
745
  return " " + (s.length > 2 ? s.slice(0, -1) + " " + s.slice(-1) : s).toLowerCase();
@@ -704,44 +755,44 @@ function Ir() {
704
755
  }
705
756
  };
706
757
  }
707
- function Vr(e, t) {
758
+ function qr(e, t) {
708
759
  const r = Ir();
709
760
  return (...s) => {
710
761
  const n = e(...s);
711
762
  return r.has(n) || r.set(n, t(...s)), r.get(n);
712
763
  };
713
764
  }
714
- var Ur = (e) => e, $e = Vr(Ur, Lr), qr = (e) => (t) => e.includes(t), Br = qr(["paymentMethod", "source", "token"]);
715
- async function zr(e) {
765
+ var Br = (e) => e, pe = qr(Br, Ur), zr = (e) => (t) => e.includes(t), Dr = zr(["paymentMethod", "source", "token"]);
766
+ async function jr(e) {
716
767
  const { ok: t, statusText: r } = e;
717
768
  if (!t)
718
769
  throw new Error(r);
719
770
  return e;
720
771
  }
721
- function Dr(e) {
772
+ function Hr(e) {
722
773
  return "addInitializer" in e.constructor;
723
774
  }
724
- var X = class {
775
+ var W = class {
725
776
  constructor(e) {
726
- if (this.host = e, this.values = /* @__PURE__ */ new Map(), X.instances.has(e))
727
- return X.instances.get(e);
728
- e.addController(this), X.instances.set(e, this);
777
+ if (this.host = e, this.values = /* @__PURE__ */ new Map(), W.instances.has(e))
778
+ return W.instances.get(e);
779
+ e.addController(this), W.instances.set(e, this);
729
780
  }
730
781
  static for(e) {
731
- return new X(e);
782
+ return new W(e);
732
783
  }
733
784
  hostConnected() {
734
785
  }
735
786
  set(e, t) {
736
787
  const r = this.values.get(e);
737
- this.values.set(e, t), Dr(this.host) ? this.host.requestUpdate(e, r) : this.host.requestUpdate();
788
+ this.values.set(e, t), Hr(this.host) ? this.host.requestUpdate(e, r) : this.host.requestUpdate();
738
789
  }
739
- }, Vt = X;
740
- Vt.instances = /* @__PURE__ */ new Map();
790
+ }, Ct = W;
791
+ Ct.instances = /* @__PURE__ */ new Map();
741
792
  function d(e, t) {
742
793
  const r = e.constructor;
743
794
  r.addInitializer((s) => {
744
- const n = Vt.for(s);
795
+ const n = Ct.for(s);
745
796
  Object.defineProperty(s.constructor.prototype, t, {
746
797
  enumerable: !0,
747
798
  configurable: !0,
@@ -758,40 +809,40 @@ function d(e, t) {
758
809
  });
759
810
  }
760
811
  d.set = function(e, t) {
761
- const r = Vt.for(e);
812
+ const r = Ct.for(e);
762
813
  for (const [s, n] of Object.entries(t))
763
814
  r.set(s, n);
764
815
  };
765
- var jr = class extends Event {
816
+ var Fr = class extends Event {
766
817
  constructor(e, t, r, s) {
767
818
  super(`${s ?? e.toLowerCase()}-changed`), this.key = e, this.oldValue = t, this.value = r, this.detail = { value: r };
768
819
  }
769
- }, pt = class {
820
+ }, st = class {
770
821
  constructor(e) {
771
- if (this.host = e, this.cache = /* @__PURE__ */ new Map(), pt.instances.has(e))
772
- return pt.instances.get(e);
773
- e.addController(this), pt.instances.set(e, this);
822
+ if (this.host = e, this.cache = /* @__PURE__ */ new Map(), st.instances.has(e))
823
+ return st.instances.get(e);
824
+ e.addController(this), st.instances.set(e, this);
774
825
  }
775
826
  hostUpdated() {
776
827
  for (const [e, t] of this.cache) {
777
828
  const r = this.host[e], { attribute: s } = this.host.constructor.getPropertyOptions(e) ?? {}, n = typeof s == "string" ? s : null;
778
- this.cache.set(e, r), this.host.dispatchEvent(new jr(e, t, r, n));
829
+ this.cache.set(e, r), this.host.dispatchEvent(new Fr(e, t, r, n));
779
830
  }
780
831
  }
781
- }, Ce = pt;
782
- Ce.instances = /* @__PURE__ */ new Map();
783
- function A(e, t) {
832
+ }, he = st;
833
+ he.instances = /* @__PURE__ */ new Map();
834
+ function w(e, t) {
784
835
  e.constructor.addInitializer((r) => {
785
- new Ce(r).cache.set(t, r[t]);
836
+ new he(r).cache.set(t, r[t]);
786
837
  });
787
838
  }
788
- function Hr(e) {
839
+ function Wr(e) {
789
840
  return (t, r, s) => {
790
841
  const n = s.value;
791
842
  return s.value = e(n), s;
792
843
  };
793
844
  }
794
- var Ut = Hr(function(e) {
845
+ var Et = Wr(function(e) {
795
846
  const { name: t } = e;
796
847
  return async function(...r) {
797
848
  if (!this.stripe)
@@ -799,29 +850,29 @@ var Ut = Hr(function(e) {
799
850
  return e.call(this, ...r).then(this.handleResponse);
800
851
  };
801
852
  });
802
- function ae(e) {
853
+ function Wt(e) {
803
854
  if (e.error)
804
855
  throw e.error;
805
856
  return e;
806
857
  }
807
- var Fr = Object.defineProperty, Wr = Object.getOwnPropertyDescriptor, a = (e, t, r, s) => {
808
- for (var n = s > 1 ? void 0 : s ? Wr(t, r) : t, i = e.length - 1, o; i >= 0; i--)
858
+ var Gr = Object.defineProperty, Kr = Object.getOwnPropertyDescriptor, a = (e, t, r, s) => {
859
+ for (var n = s > 1 ? void 0 : s ? Kr(t, r) : t, i = e.length - 1, o; i >= 0; i--)
809
860
  (o = e[i]) && (n = (s ? o(t, r, n) : o(n)) || n);
810
- return s && n && Fr(t, r, n), n;
811
- }, Ee = (e, t, r) => {
861
+ return s && n && Gr(t, r, n), n;
862
+ }, me = (e, t, r) => {
812
863
  if (!t.has(e))
813
864
  throw TypeError("Cannot " + r);
814
- }, le = (e, t, r) => (Ee(e, t, "read from private field"), r ? r.call(e) : t.get(e)), ce = (e, t, r) => {
865
+ }, Gt = (e, t, r) => (me(e, t, "read from private field"), r ? r.call(e) : t.get(e)), Kt = (e, t, r) => {
815
866
  if (t.has(e))
816
867
  throw TypeError("Cannot add the same private member more than once");
817
868
  t instanceof WeakSet ? t.add(e) : t.set(e, r);
818
- }, ue = (e, t, r, s) => (Ee(e, t, "write to private field"), t.set(e, r), r);
819
- function pe() {
869
+ }, Jt = (e, t, r, s) => (me(e, t, "write to private field"), t.set(e, r), r);
870
+ function Yt() {
820
871
  return (Date.now() + Math.random() * 1e3).toString(36).substr(0, 8);
821
872
  }
822
- var Gr = class {
873
+ var Jr = class {
823
874
  constructor(e, t) {
824
- this.host = e, this.options = t, this.initialized = !1, this.shadowHosts = [], this.host.addController(this), this.mountId = this.resetMountId(), this.slotName = this.options?.slotName ?? `breadcrumb-${pe()}`;
875
+ this.host = e, this.options = t, this.initialized = !1, this.shadowHosts = [], this.host.addController(this), this.mountId = this.resetMountId(), this.slotName = this.options?.slotName ?? `breadcrumb-${Yt()}`;
825
876
  }
826
877
  get mount() {
827
878
  return document.getElementById(this.mountId);
@@ -833,7 +884,7 @@ var Gr = class {
833
884
  this.destroyMountPoints();
834
885
  }
835
886
  resetMountId() {
836
- return `${this.options?.mountPrefix ?? this.host.localName}-mount-point-${pe()}`;
887
+ return `${this.options?.mountPrefix ?? this.host.localName}-mount-point-${Yt()}`;
837
888
  }
838
889
  createMountPoint() {
839
890
  const e = document.createElement("div");
@@ -871,47 +922,47 @@ var Gr = class {
871
922
  this.destroyMountPoints(), this.initMountPoints(), this.initialized = !0;
872
923
  }
873
924
  };
874
- function dt(e) {
925
+ function nt(e) {
875
926
  "@babel/helpers - typeof";
876
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? dt = function(t) {
927
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? nt = function(t) {
877
928
  return typeof t;
878
- } : dt = function(t) {
929
+ } : nt = function(t) {
879
930
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
880
- }, dt(e);
931
+ }, nt(e);
881
932
  }
882
- var Pe = "https://js.stripe.com/v3", Kr = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, de = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", Jr = function() {
883
- for (var t = document.querySelectorAll('script[src^="'.concat(Pe, '"]')), r = 0; r < t.length; r++) {
933
+ var ye = "https://js.stripe.com/v3", Yr = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, Zt = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", Zr = function() {
934
+ for (var t = document.querySelectorAll('script[src^="'.concat(ye, '"]')), r = 0; r < t.length; r++) {
884
935
  var s = t[r];
885
- if (Kr.test(s.src))
936
+ if (Yr.test(s.src))
886
937
  return s;
887
938
  }
888
939
  return null;
889
- }, Yr = function(t) {
940
+ }, Xr = function(t) {
890
941
  var r = t && !t.advancedFraudSignals ? "?advancedFraudSignals=false" : "", s = document.createElement("script");
891
- s.src = "".concat(Pe).concat(r);
942
+ s.src = "".concat(ye).concat(r);
892
943
  var n = document.head || document.body;
893
944
  if (!n)
894
945
  throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");
895
946
  return n.appendChild(s), s;
896
- }, Zr = function(t, r) {
947
+ }, Qr = function(t, r) {
897
948
  !t || !t._registerWrapper || t._registerWrapper({
898
949
  name: "stripe-js",
899
950
  version: "1.32.0",
900
951
  startTime: r
901
952
  });
902
- }, ot = null, Xr = function(t) {
903
- return ot !== null || (ot = new Promise(function(r, s) {
953
+ }, et = null, ts = function(t) {
954
+ return et !== null || (et = new Promise(function(r, s) {
904
955
  if (typeof window > "u") {
905
956
  r(null);
906
957
  return;
907
958
  }
908
- if (window.Stripe && t && console.warn(de), window.Stripe) {
959
+ if (window.Stripe && t && console.warn(Zt), window.Stripe) {
909
960
  r(window.Stripe);
910
961
  return;
911
962
  }
912
963
  try {
913
- var n = Jr();
914
- n && t ? console.warn(de) : n || (n = Yr(t)), n.addEventListener("load", function() {
964
+ var n = Zr();
965
+ n && t ? console.warn(Zt) : n || (n = Xr(t)), n.addEventListener("load", function() {
915
966
  window.Stripe ? r(window.Stripe) : s(new Error("Stripe.js not available"));
916
967
  }), n.addEventListener("error", function() {
917
968
  s(new Error("Failed to load Stripe.js"));
@@ -920,13 +971,13 @@ var Pe = "https://js.stripe.com/v3", Kr = /^https:\/\/js\.stripe\.com\/v3\/?(\?.
920
971
  s(i);
921
972
  return;
922
973
  }
923
- })), ot;
924
- }, Qr = function(t, r, s) {
974
+ })), et;
975
+ }, es = function(t, r, s) {
925
976
  if (t === null)
926
977
  return null;
927
978
  var n = t.apply(void 0, r);
928
- return Zr(n, s), n;
929
- }, ts = function(t) {
979
+ return Qr(n, s), n;
980
+ }, rs = function(t) {
930
981
  var r = `invalid load parameters; expected object of shape
931
982
 
932
983
  {advancedFraudSignals: boolean}
@@ -935,38 +986,38 @@ but received
935
986
 
936
987
  `.concat(JSON.stringify(t), `
937
988
  `);
938
- if (t === null || dt(t) !== "object")
989
+ if (t === null || nt(t) !== "object")
939
990
  throw new Error(r);
940
991
  if (Object.keys(t).length === 1 && typeof t.advancedFraudSignals == "boolean")
941
992
  return t;
942
993
  throw new Error(r);
943
- }, Ae, xe = !1, ke = function() {
994
+ }, fe, ve = !1, ge = function() {
944
995
  for (var t = arguments.length, r = new Array(t), s = 0; s < t; s++)
945
996
  r[s] = arguments[s];
946
- xe = !0;
997
+ ve = !0;
947
998
  var n = Date.now();
948
- return Xr(Ae).then(function(i) {
949
- return Qr(i, r, n);
999
+ return ts(fe).then(function(i) {
1000
+ return es(i, r, n);
950
1001
  });
951
1002
  };
952
- ke.setLoadParameters = function(e) {
953
- if (xe)
1003
+ ge.setLoadParameters = function(e) {
1004
+ if (ve)
954
1005
  throw new Error("You cannot change load parameters after calling loadStripe");
955
- Ae = ts(e);
1006
+ fe = rs(e);
956
1007
  };
957
- var Re = class extends Error {
1008
+ var be = class extends Error {
958
1009
  constructor(e, t) {
959
1010
  super(`<${e}>: ${t}`), this.originalMessage = t;
960
1011
  }
961
1012
  };
962
- function Me(e) {
963
- return !!e && e instanceof Re;
1013
+ function Se(e) {
1014
+ return !!e && e instanceof be;
964
1015
  }
965
- var es = {
966
- toAttribute: (e) => e ? Me(e) ? e.originalMessage : e.message || "" : null
967
- }, h = class extends Q {
1016
+ var ss = {
1017
+ toAttribute: (e) => e ? Se(e) ? e.originalMessage : e.message || "" : null
1018
+ }, h = class extends G {
968
1019
  constructor() {
969
- super(...arguments), this.generate = "source", this.showError = !1, this.locale = "auto", this.paymentMethod = null, this.source = null, this.token = null, this.element = null, this.elements = null, this.error = null, this.focused = !1, this.ready = !1, this.stripe = null, this.theme = "none", this.precomputedStyle = getComputedStyle(this), this.breadcrumb = new Gr(this, {
1020
+ super(...arguments), this.generate = "source", this.showError = !1, this.locale = "auto", this.paymentMethod = null, this.source = null, this.token = null, this.element = null, this.elements = null, this.error = null, this.focused = !1, this.ready = !1, this.stripe = null, this.theme = "none", this.precomputedStyle = getComputedStyle(this), this.breadcrumb = new Jr(this, {
970
1021
  slotName: `${this.constructor.is}-slot`
971
1022
  });
972
1023
  }
@@ -977,8 +1028,8 @@ var es = {
977
1028
  return this.breadcrumb.mount;
978
1029
  }
979
1030
  render() {
980
- const { error: e, showError: t } = this, { slotName: r } = this.breadcrumb, s = Me(e) ? e.originalMessage : e?.message;
981
- return $r`
1031
+ const { error: e, showError: t } = this, { slotName: r } = this.breadcrumb, s = Se(e) ? e.originalMessage : e?.message;
1032
+ return Er`
982
1033
  <div id="stripe" part="stripe">
983
1034
  <slot id="stripe-slot" name="${r}"></slot>
984
1035
  </div>
@@ -987,7 +1038,7 @@ var es = {
987
1038
  for="stripe"
988
1039
  part="error"
989
1040
  ?hidden="${!t}">
990
- ${Tr(s)}
1041
+ ${Nr(s)}
991
1042
  </output>
992
1043
  `;
993
1044
  }
@@ -1007,7 +1058,7 @@ var es = {
1007
1058
  this.element?.focus();
1008
1059
  }
1009
1060
  createError(e) {
1010
- return new Re(this.constructor.is, e);
1061
+ return new be(this.constructor.is, e);
1011
1062
  }
1012
1063
  errorChanged() {
1013
1064
  this.resetRepresentations(), this.fireError(this.error);
@@ -1042,7 +1093,7 @@ var es = {
1042
1093
  d.set(this, { elements: null, element: null, stripe: null });
1043
1094
  else
1044
1095
  try {
1045
- const s = { stripeAccount: t, locale: r }, n = window.Stripe ? window.Stripe(e, s) : await ke(e, s), i = n?.elements();
1096
+ const s = { stripeAccount: t, locale: r }, n = window.Stripe ? window.Stripe(e, s) : await ge(e, s), i = n?.elements();
1046
1097
  d.set(this, { elements: i, error: null, stripe: n });
1047
1098
  } catch (s) {
1048
1099
  console.warn(s);
@@ -1071,13 +1122,13 @@ var es = {
1071
1122
  }
1072
1123
  async postRepresentation() {
1073
1124
  const e = (l) => d.set(this, { error: l }), t = (l) => this.fire("success", l), r = this.token || void 0, s = this.source || void 0, n = this.paymentMethod || void 0, i = JSON.stringify({ token: r, source: s, paymentMethod: n }), o = { "Content-Type": "application/json" };
1074
- return fetch(this.action, { body: i, headers: o, method: "POST" }).then(zr).then(t).catch(e);
1125
+ return fetch(this.action, { body: i, headers: o, method: "POST" }).then(jr).then(t).catch(e);
1075
1126
  }
1076
1127
  representationChanged(e) {
1077
- if (!Br(e))
1128
+ if (!Dr(e))
1078
1129
  return;
1079
1130
  const t = this[e];
1080
- t && (this.fire(`${$e(e)}`, t), this.action && this.postRepresentation());
1131
+ t && (this.fire(`${pe(e)}`, t), this.action && this.postRepresentation());
1081
1132
  }
1082
1133
  resetRepresentations() {
1083
1134
  d.set(this, {
@@ -1088,106 +1139,106 @@ var es = {
1088
1139
  }
1089
1140
  };
1090
1141
  a([
1091
- c({ type: String })
1142
+ u({ type: String })
1092
1143
  ], h.prototype, "action", 2);
1093
1144
  a([
1094
- c({ type: String, attribute: "client-secret" })
1145
+ u({ type: String, attribute: "client-secret" })
1095
1146
  ], h.prototype, "clientSecret", 2);
1096
1147
  a([
1097
- c({ type: String })
1148
+ u({ type: String })
1098
1149
  ], h.prototype, "generate", 2);
1099
1150
  a([
1100
- A,
1101
- c({ type: String, attribute: "publishable-key", reflect: !0 })
1151
+ w,
1152
+ u({ type: String, attribute: "publishable-key", reflect: !0 })
1102
1153
  ], h.prototype, "publishableKey", 2);
1103
1154
  a([
1104
- c({ type: Boolean, attribute: "show-error", reflect: !0 })
1155
+ u({ type: Boolean, attribute: "show-error", reflect: !0 })
1105
1156
  ], h.prototype, "showError", 2);
1106
1157
  a([
1107
- c({ type: String, attribute: "stripe-account" })
1158
+ u({ type: String, attribute: "stripe-account" })
1108
1159
  ], h.prototype, "stripeAccount", 2);
1109
1160
  a([
1110
- c({ type: String, attribute: "locale" })
1161
+ u({ type: String, attribute: "locale" })
1111
1162
  ], h.prototype, "locale", 2);
1112
1163
  a([
1113
1164
  d,
1114
- A,
1115
- c({ type: Object, attribute: "payment-method" })
1165
+ w,
1166
+ u({ type: Object, attribute: "payment-method" })
1116
1167
  ], h.prototype, "paymentMethod", 2);
1117
1168
  a([
1118
1169
  d,
1119
- A,
1120
- c({ type: Object })
1170
+ w,
1171
+ u({ type: Object })
1121
1172
  ], h.prototype, "source", 2);
1122
1173
  a([
1123
1174
  d,
1124
- A,
1125
- c({ type: Object })
1175
+ w,
1176
+ u({ type: Object })
1126
1177
  ], h.prototype, "token", 2);
1127
1178
  a([
1128
1179
  d,
1129
- c({ type: Object })
1180
+ u({ type: Object })
1130
1181
  ], h.prototype, "element", 2);
1131
1182
  a([
1132
1183
  d,
1133
- c({ type: Object })
1184
+ u({ type: Object })
1134
1185
  ], h.prototype, "elements", 2);
1135
1186
  a([
1136
1187
  d,
1137
- A,
1138
- c({ type: Object, reflect: !0, converter: es })
1188
+ w,
1189
+ u({ type: Object, reflect: !0, converter: ss })
1139
1190
  ], h.prototype, "error", 2);
1140
1191
  a([
1141
1192
  d,
1142
- A,
1143
- c({ type: Boolean, reflect: !0 })
1193
+ w,
1194
+ u({ type: Boolean, reflect: !0 })
1144
1195
  ], h.prototype, "focused", 2);
1145
1196
  a([
1146
1197
  d,
1147
- A,
1148
- c({ type: Boolean, reflect: !0 })
1198
+ w,
1199
+ u({ type: Boolean, reflect: !0 })
1149
1200
  ], h.prototype, "ready", 2);
1150
1201
  a([
1151
1202
  d,
1152
- c({ type: Object })
1203
+ u({ type: Object })
1153
1204
  ], h.prototype, "stripe", 2);
1154
1205
  a([
1155
- c()
1206
+ u()
1156
1207
  ], h.prototype, "theme", 2);
1157
1208
  a([
1158
- c({ attribute: "border-radius" })
1209
+ u({ attribute: "border-radius" })
1159
1210
  ], h.prototype, "borderRadius", 2);
1160
1211
  a([
1161
- c({ attribute: "color-background" })
1212
+ u({ attribute: "color-background" })
1162
1213
  ], h.prototype, "colorBackground", 2);
1163
1214
  a([
1164
- c({ attribute: "color-danger" })
1215
+ u({ attribute: "color-danger" })
1165
1216
  ], h.prototype, "colorDanger", 2);
1166
1217
  a([
1167
- c({ attribute: "color-primary" })
1218
+ u({ attribute: "color-primary" })
1168
1219
  ], h.prototype, "colorPrimary", 2);
1169
1220
  a([
1170
- c({ attribute: "color-text" })
1221
+ u({ attribute: "color-text" })
1171
1222
  ], h.prototype, "colorText", 2);
1172
1223
  a([
1173
- c({ attribute: "font-family" })
1224
+ u({ attribute: "font-family" })
1174
1225
  ], h.prototype, "fontFamily", 2);
1175
1226
  a([
1176
- c({ attribute: "spacing-unit" })
1227
+ u({ attribute: "spacing-unit" })
1177
1228
  ], h.prototype, "spacingUnit", 2);
1178
1229
  a([
1179
- k
1230
+ C
1180
1231
  ], h.prototype, "handleResponse", 1);
1181
1232
  a([
1182
- k
1233
+ C
1183
1234
  ], h.prototype, "onBlur", 1);
1184
1235
  a([
1185
- k
1236
+ C
1186
1237
  ], h.prototype, "onFocus", 1);
1187
1238
  a([
1188
- k
1239
+ C
1189
1240
  ], h.prototype, "onReady", 1);
1190
- var rs = It`[hidden] {
1241
+ var ns = _t`[hidden] {
1191
1242
  display: none !important;
1192
1243
  }
1193
1244
 
@@ -1202,7 +1253,7 @@ var rs = It`[hidden] {
1202
1253
  padding-left: 42px;
1203
1254
  padding-bottom: 10px;
1204
1255
  }
1205
- `, Te = rs, ss = It`:host {
1256
+ `, $e = ns, is = _t`:host {
1206
1257
  min-width: var(--stripe-elements-width, 300px);
1207
1258
  min-height: var(--stripe-elements-height, 50px);
1208
1259
  }
@@ -1225,7 +1276,7 @@ var rs = It`[hidden] {
1225
1276
  :host([error]) #stripe {
1226
1277
  border-color: #fa755a;
1227
1278
  }
1228
- `, ns = ss, he = [
1279
+ `, os = is, Xt = [
1229
1280
  "color",
1230
1281
  "fontFamily",
1231
1282
  "fontSize",
@@ -1238,7 +1289,7 @@ var rs = It`[hidden] {
1238
1289
  "textDecoration",
1239
1290
  "textShadow",
1240
1291
  "textTransform"
1241
- ], is = [
1292
+ ], as = [
1242
1293
  ":hover",
1243
1294
  ":focus",
1244
1295
  "::placeholder",
@@ -1300,22 +1351,22 @@ var rs = It`[hidden] {
1300
1351
  const e = (n) => this.getCSSCustomPropertyValue(n) || void 0, t = ["base", "complete", "empty", "invalid"], r = (n) => (i, o) => {
1301
1352
  if (n.includes("-"))
1302
1353
  return i;
1303
- const u = o.split(":").pop();
1354
+ const c = o.split(":").pop();
1304
1355
  return {
1305
1356
  ...i,
1306
- [o]: he.reduce(s(`${n}-${u}`), {})
1357
+ [o]: Xt.reduce(s(`${n}-${c}`), {})
1307
1358
  };
1308
1359
  }, s = (n) => (i, o) => {
1309
- const u = `--stripe-elements-${n}-${$e(o)}`;
1360
+ const c = `--stripe-elements-${n}-${pe(o)}`;
1310
1361
  return {
1311
1362
  ...i,
1312
- [o]: e(u),
1313
- ...is.reduce(r(n), {})
1363
+ [o]: e(c),
1364
+ ...as.reduce(r(n), {})
1314
1365
  };
1315
1366
  };
1316
1367
  return t.reduce((n, i) => ({
1317
1368
  ...n,
1318
- [i]: he.reduce(s(i), {})
1369
+ [i]: Xt.reduce(s(i), {})
1319
1370
  }), {});
1320
1371
  }
1321
1372
  async initElement() {
@@ -1343,105 +1394,105 @@ var rs = It`[hidden] {
1343
1394
  $.is = "stripe-elements";
1344
1395
  $.elementType = "card";
1345
1396
  $.styles = [
1346
- Te,
1347
- ns
1397
+ $e,
1398
+ os
1348
1399
  ];
1349
1400
  a([
1350
- c({ type: Boolean, attribute: "hide-icon" })
1401
+ u({ type: Boolean, attribute: "hide-icon" })
1351
1402
  ], $.prototype, "hideIcon", 2);
1352
1403
  a([
1353
- c({ type: Boolean, attribute: "hide-postal-code" })
1404
+ u({ type: Boolean, attribute: "hide-postal-code" })
1354
1405
  ], $.prototype, "hidePostalCode", 2);
1355
1406
  a([
1356
- c({ type: String, attribute: "icon-style" })
1407
+ u({ type: String, attribute: "icon-style" })
1357
1408
  ], $.prototype, "iconStyle", 2);
1358
1409
  a([
1359
- c({ type: Object })
1410
+ u({ type: Object })
1360
1411
  ], $.prototype, "value", 2);
1361
1412
  a([
1362
- A,
1413
+ w,
1363
1414
  d,
1364
- c({ type: String })
1415
+ u({ type: String })
1365
1416
  ], $.prototype, "brand", 2);
1366
1417
  a([
1367
- A,
1418
+ w,
1368
1419
  d,
1369
- c({ type: Boolean, reflect: !0 })
1420
+ u({ type: Boolean, reflect: !0 })
1370
1421
  ], $.prototype, "complete", 2);
1371
1422
  a([
1372
- A,
1423
+ w,
1373
1424
  d,
1374
- c({ type: Boolean, reflect: !0 })
1425
+ u({ type: Boolean, reflect: !0 })
1375
1426
  ], $.prototype, "empty", 2);
1376
1427
  a([
1377
- A,
1428
+ w,
1378
1429
  d,
1379
- c({ type: Boolean, reflect: !0 })
1430
+ u({ type: Boolean, reflect: !0 })
1380
1431
  ], $.prototype, "invalid", 2);
1381
1432
  a([
1382
- Ut
1433
+ Et
1383
1434
  ], $.prototype, "createPaymentMethod", 1);
1384
1435
  a([
1385
- Ut
1436
+ Et
1386
1437
  ], $.prototype, "createSource", 1);
1387
1438
  a([
1388
- Ut
1439
+ Et
1389
1440
  ], $.prototype, "createToken", 1);
1390
1441
  a([
1391
- k
1442
+ C
1392
1443
  ], $.prototype, "onChange", 1);
1393
1444
  $ = a([
1394
- fe("stripe-elements")
1445
+ ie("stripe-elements")
1395
1446
  ], $);
1396
- var os = It`#stripe {
1447
+ var ls = _t`#stripe {
1397
1448
  box-sizing: border-box;
1398
1449
  min-width: var(--stripe-payment-request-element-min-width, 300px);
1399
1450
  padding: var(--stripe-payment-request-element-padding, 8px 12px);
1400
1451
  background: var(--stripe-payment-request-element-background, white);
1401
1452
  }
1402
- `, as = os;
1403
- function ls(e) {
1453
+ `, us = ls;
1454
+ function cs(e) {
1404
1455
  return e.tagName.toLowerCase() === "stripe-display-item";
1405
1456
  }
1406
- function cs({ dataset: { amount: e, label: t, pending: r } }) {
1457
+ function ds({ dataset: { amount: e, label: t, pending: r } }) {
1407
1458
  return {
1408
1459
  label: t,
1409
1460
  amount: parseInt(e),
1410
1461
  ...r !== void 0 && { pending: r === "true" }
1411
1462
  };
1412
1463
  }
1413
- function us({ dataset: { amount: e, detail: t, ...r } }) {
1464
+ function ps({ dataset: { amount: e, detail: t, ...r } }) {
1414
1465
  return {
1415
1466
  amount: parseInt(e),
1416
1467
  detail: t,
1417
1468
  ...r
1418
1469
  };
1419
1470
  }
1420
- function ps(e) {
1421
- return ls(e) ? cs(e) : us(e);
1471
+ function hs(e) {
1472
+ return cs(e) ? ds(e) : ps(e);
1422
1473
  }
1423
- var ht, mt, f = class extends h {
1474
+ var it, ot, m = class extends h {
1424
1475
  constructor() {
1425
- super(...arguments), this.canMakePayment = null, ce(this, ht, void 0), this.paymentIntent = null, this.paymentRequest = null, this.pending = !1, ce(this, mt, void 0), this.buttonType = "default", this.buttonTheme = "dark", this.complete = async (e, t) => {
1476
+ super(...arguments), this.canMakePayment = null, Kt(this, it, void 0), this.paymentIntent = null, this.paymentRequest = null, this.pending = !1, Kt(this, ot, void 0), this.buttonType = "default", this.buttonTheme = "dark", this.complete = async (e, t) => {
1426
1477
  const { error: r = null } = { ...e }, s = r || t ? "fail" : "success";
1427
1478
  return e.complete(s), this.fire(s, e), t ? { error: t } : e;
1428
1479
  };
1429
1480
  }
1430
1481
  get displayItems() {
1431
- const e = le(this, ht);
1482
+ const e = Gt(this, it);
1432
1483
  return Array.isArray(e) ? e : this.parseDatasets("stripe-display-item");
1433
1484
  }
1434
1485
  set displayItems(e) {
1435
1486
  const t = this.displayItems;
1436
- ue(this, ht, e), this.requestUpdate("displayItems", t);
1487
+ Jt(this, it, e), this.requestUpdate("displayItems", t);
1437
1488
  }
1438
1489
  get shippingOptions() {
1439
- const e = le(this, mt);
1490
+ const e = Gt(this, ot);
1440
1491
  return Array.isArray(e) ? e : this.parseDatasets("stripe-shipping-option");
1441
1492
  }
1442
1493
  set shippingOptions(e) {
1443
1494
  const t = this.shippingOptions;
1444
- ue(this, mt, e), this.requestUpdate("shippingOptions", t);
1495
+ Jt(this, ot, e), this.requestUpdate("shippingOptions", t);
1445
1496
  }
1446
1497
  reset() {
1447
1498
  super.reset(), d.set(this, { paymentIntent: null });
@@ -1458,7 +1509,7 @@ var ht, mt, f = class extends h {
1458
1509
  requestShipping: n,
1459
1510
  requestPayerEmail: i,
1460
1511
  requestPayerName: o,
1461
- requestPayerPhone: u,
1512
+ requestPayerPhone: c,
1462
1513
  label: l = "",
1463
1514
  amount: p = 0
1464
1515
  } = this;
@@ -1468,7 +1519,7 @@ var ht, mt, f = class extends h {
1468
1519
  displayItems: r,
1469
1520
  requestPayerEmail: i,
1470
1521
  requestPayerName: o,
1471
- requestPayerPhone: u,
1522
+ requestPayerPhone: c,
1472
1523
  requestShipping: n,
1473
1524
  shippingOptions: s,
1474
1525
  total: { label: l, amount: p }
@@ -1529,7 +1580,7 @@ var ht, mt, f = class extends h {
1529
1580
  d.set(this, { error: t, paymentMethod: r, source: s, token: n }), this.clientSecret && !t ? this.confirmPaymentIntent(e) : this.complete(e);
1530
1581
  }
1531
1582
  async confirmPaymentIntent(e) {
1532
- const t = { payment_method: this.paymentMethod.id }, r = await this.confirmCardPayment(t, { handleActions: !1 }).then(({ error: i }) => this.complete(e, i)).then(ae).then(() => this.confirmCardPayment()).then(ae).catch((i) => ({ error: i })), { error: s = null } = r, n = r.paymentIntent ?? null;
1583
+ const t = { payment_method: this.paymentMethod.id }, r = await this.confirmCardPayment(t, { handleActions: !1 }).then(({ error: i }) => this.complete(e, i)).then(Wt).then(() => this.confirmCardPayment()).then(Wt).catch((i) => ({ error: i })), { error: s = null } = r, n = r.paymentIntent ?? null;
1533
1584
  d.set(this, { error: s, paymentIntent: n }), await this.updateComplete;
1534
1585
  }
1535
1586
  async confirmCardPayment(e, t) {
@@ -1543,508 +1594,169 @@ var ht, mt, f = class extends h {
1543
1594
  }
1544
1595
  parseDatasets(e) {
1545
1596
  const t = [...this.querySelectorAll(e)];
1546
- return t.length ? t.map(ps) : [];
1597
+ return t.length ? t.map(hs) : [];
1547
1598
  }
1548
1599
  };
1549
- ht = /* @__PURE__ */ new WeakMap();
1550
- mt = /* @__PURE__ */ new WeakMap();
1551
- f.is = "stripe-payment-request";
1552
- f.styles = [
1553
- Te,
1554
- as
1600
+ it = /* @__PURE__ */ new WeakMap();
1601
+ ot = /* @__PURE__ */ new WeakMap();
1602
+ m.is = "stripe-payment-request";
1603
+ m.styles = [
1604
+ $e,
1605
+ us
1555
1606
  ];
1556
1607
  a([
1557
- c({ type: Number, reflect: !0 })
1558
- ], f.prototype, "amount", 2);
1608
+ u({ type: Number, reflect: !0 })
1609
+ ], m.prototype, "amount", 2);
1559
1610
  a([
1560
- A,
1611
+ w,
1561
1612
  d,
1562
- c({ type: Boolean, attribute: "can-make-payment", reflect: !0 })
1563
- ], f.prototype, "canMakePayment", 2);
1613
+ u({ type: Boolean, attribute: "can-make-payment", reflect: !0 })
1614
+ ], m.prototype, "canMakePayment", 2);
1564
1615
  a([
1565
- c({ type: String })
1566
- ], f.prototype, "country", 2);
1616
+ u({ type: String })
1617
+ ], m.prototype, "country", 2);
1567
1618
  a([
1568
- c({ type: String })
1569
- ], f.prototype, "currency", 2);
1619
+ u({ type: String })
1620
+ ], m.prototype, "currency", 2);
1570
1621
  a([
1571
- c({ type: Array })
1572
- ], f.prototype, "displayItems", 1);
1622
+ u({ type: Array })
1623
+ ], m.prototype, "displayItems", 1);
1573
1624
  a([
1574
- c({ type: String, reflect: !0 })
1575
- ], f.prototype, "label", 2);
1625
+ u({ type: String, reflect: !0 })
1626
+ ], m.prototype, "label", 2);
1576
1627
  a([
1577
- A,
1628
+ w,
1578
1629
  d,
1579
- c({ type: Object, attribute: "payment-intent" })
1580
- ], f.prototype, "paymentIntent", 2);
1630
+ u({ type: Object, attribute: "payment-intent" })
1631
+ ], m.prototype, "paymentIntent", 2);
1581
1632
  a([
1582
1633
  d,
1583
- c({ type: Object, attribute: "payment-request" })
1584
- ], f.prototype, "paymentRequest", 2);
1634
+ u({ type: Object, attribute: "payment-request" })
1635
+ ], m.prototype, "paymentRequest", 2);
1585
1636
  a([
1586
- c({ type: Boolean, reflect: !0 })
1587
- ], f.prototype, "pending", 2);
1637
+ u({ type: Boolean, reflect: !0 })
1638
+ ], m.prototype, "pending", 2);
1588
1639
  a([
1589
- c({ type: Boolean, attribute: "request-payer-email" })
1590
- ], f.prototype, "requestPayerEmail", 2);
1640
+ u({ type: Boolean, attribute: "request-payer-email" })
1641
+ ], m.prototype, "requestPayerEmail", 2);
1591
1642
  a([
1592
- c({ type: Boolean, attribute: "request-payer-name" })
1593
- ], f.prototype, "requestPayerName", 2);
1643
+ u({ type: Boolean, attribute: "request-payer-name" })
1644
+ ], m.prototype, "requestPayerName", 2);
1594
1645
  a([
1595
- c({ type: Boolean, attribute: "request-payer-phone" })
1596
- ], f.prototype, "requestPayerPhone", 2);
1646
+ u({ type: Boolean, attribute: "request-payer-phone" })
1647
+ ], m.prototype, "requestPayerPhone", 2);
1597
1648
  a([
1598
- c({ type: Boolean, attribute: "request-shipping" })
1599
- ], f.prototype, "requestShipping", 2);
1649
+ u({ type: Boolean, attribute: "request-shipping" })
1650
+ ], m.prototype, "requestShipping", 2);
1600
1651
  a([
1601
- c({ type: Array })
1602
- ], f.prototype, "shippingOptions", 1);
1652
+ u({ type: Array })
1653
+ ], m.prototype, "shippingOptions", 1);
1603
1654
  a([
1604
- c({ type: String, attribute: "button-type" })
1605
- ], f.prototype, "buttonType", 2);
1655
+ u({ type: String, attribute: "button-type" })
1656
+ ], m.prototype, "buttonType", 2);
1606
1657
  a([
1607
- c({ type: String, attribute: "button-theme" })
1608
- ], f.prototype, "buttonTheme", 2);
1658
+ u({ type: String, attribute: "button-theme" })
1659
+ ], m.prototype, "buttonTheme", 2);
1609
1660
  a([
1610
- k
1611
- ], f.prototype, "onCancel", 1);
1661
+ C
1662
+ ], m.prototype, "onCancel", 1);
1612
1663
  a([
1613
- k
1614
- ], f.prototype, "onPaymentResponse", 1);
1664
+ C
1665
+ ], m.prototype, "onPaymentResponse", 1);
1615
1666
  a([
1616
- k
1617
- ], f.prototype, "confirmPaymentIntent", 1);
1667
+ C
1668
+ ], m.prototype, "confirmPaymentIntent", 1);
1618
1669
  a([
1619
- k
1620
- ], f.prototype, "confirmCardPayment", 1);
1670
+ C
1671
+ ], m.prototype, "confirmCardPayment", 1);
1621
1672
  a([
1622
- k
1623
- ], f.prototype, "onShippingaddresschange", 1);
1673
+ C
1674
+ ], m.prototype, "onShippingaddresschange", 1);
1624
1675
  a([
1625
- k
1626
- ], f.prototype, "onShippingoptionchange", 1);
1627
- f = a([
1628
- fe("stripe-payment-request")
1629
- ], f);
1630
- var Ne = "basil", ds = function(t) {
1631
- return t === 3 ? "v3" : t;
1632
- }, Oe = "https://js.stripe.com", hs = "".concat(Oe, "/").concat(Ne, "/stripe.js"), ms = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, ys = /^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/;
1633
- var fs = function(t) {
1634
- return ms.test(t) || ys.test(t);
1635
- }, vs = function() {
1636
- for (var t = document.querySelectorAll('script[src^="'.concat(Oe, '"]')), r = 0; r < t.length; r++) {
1637
- var s = t[r];
1638
- if (fs(s.src))
1639
- return s;
1640
- }
1641
- return null;
1642
- }, me = function(t) {
1643
- var r = "", s = document.createElement("script");
1644
- s.src = "".concat(hs).concat(r);
1645
- var n = document.head || document.body;
1646
- if (!n)
1647
- throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");
1648
- return n.appendChild(s), s;
1649
- }, gs = function(t, r) {
1650
- !t || !t._registerWrapper || t._registerWrapper({
1651
- name: "stripe-js",
1652
- version: "7.9.0",
1653
- startTime: r
1654
- });
1655
- }, Y = null, at = null, lt = null, bs = function(t) {
1656
- return function(r) {
1657
- t(new Error("Failed to load Stripe.js", {
1658
- cause: r
1659
- }));
1660
- };
1661
- }, Ss = function(t, r) {
1662
- return function() {
1663
- window.Stripe ? t(window.Stripe) : r(new Error("Stripe.js not available"));
1664
- };
1665
- }, _s = function(t) {
1666
- return Y !== null ? Y : (Y = new Promise(function(r, s) {
1667
- if (typeof window > "u" || typeof document > "u") {
1668
- r(null);
1669
- return;
1670
- }
1671
- if (window.Stripe) {
1672
- r(window.Stripe);
1673
- return;
1674
- }
1675
- try {
1676
- var n = vs();
1677
- if (!(n && t)) {
1678
- if (!n)
1679
- n = me(t);
1680
- else if (n && lt !== null && at !== null) {
1681
- var i;
1682
- n.removeEventListener("load", lt), n.removeEventListener("error", at), (i = n.parentNode) === null || i === void 0 || i.removeChild(n), n = me(t);
1683
- }
1684
- }
1685
- lt = Ss(r, s), at = bs(s), n.addEventListener("load", lt), n.addEventListener("error", at);
1686
- } catch (o) {
1687
- s(o);
1688
- return;
1689
- }
1690
- }), Y.catch(function(r) {
1691
- return Y = null, Promise.reject(r);
1692
- }));
1693
- }, ws = function(t, r, s) {
1694
- if (t === null)
1695
- return null;
1696
- var n = r[0], i = n.match(/^pk_test/), o = ds(t.version), u = Ne;
1697
- i && o !== u && console.warn("Stripe.js@".concat(o, " was loaded on the page, but @stripe/stripe-js@").concat("7.9.0", " expected Stripe.js@").concat(u, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
1698
- var l = t.apply(void 0, r);
1699
- return gs(l, s), l;
1700
- }, Z, Le = !1, Ie = function() {
1701
- return Z || (Z = _s(null).catch(function(t) {
1702
- return Z = null, Promise.reject(t);
1703
- }), Z);
1704
- };
1705
- Promise.resolve().then(function() {
1706
- return Ie();
1707
- }).catch(function(e) {
1708
- Le || console.warn(e);
1709
- });
1710
- var $s = function() {
1711
- for (var t = arguments.length, r = new Array(t), s = 0; s < t; s++)
1712
- r[s] = arguments[s];
1713
- Le = !0;
1714
- var n = Date.now();
1715
- return Ie().then(function(i) {
1716
- return ws(i, r, n);
1717
- });
1718
- };
1719
- const Cs = { class: "w-100 d-flex justify-space-between items-center" }, Es = { class: "text-caption font-weight-bold text-center my-0 text-red rounded" }, Ps = { class: "pr-3" }, As = ["disable", "locale", "publishable-key"], xs = ["innerHTML"], ks = { class: "ml-1 text-caption" }, Rs = { class: "mr-1" }, Ve = /* @__PURE__ */ We({
1720
- __name: "CreditCardStripeForm",
1721
- props: {
1722
- amount: {},
1723
- currency: {},
1724
- disabled: { type: Boolean },
1725
- loading: { type: Boolean },
1726
- stripeToken: {},
1727
- withAction: { type: Boolean },
1728
- withTerms: { type: Boolean }
1676
+ C
1677
+ ], m.prototype, "onShippingoptionchange", 1);
1678
+ m = a([
1679
+ ie("stripe-payment-request")
1680
+ ], m);
1681
+ const we = Re({
1682
+ components: {
1683
+ BFormattedAmount: Fe
1729
1684
  },
1730
- emits: ["change", "error", "payment:success"],
1731
- setup(e, { expose: t, emit: r }) {
1732
- const s = e, n = Gt({
1733
- prop: ct(() => s.loading)
1734
- }), i = Gt({
1735
- prop: ct(() => s.disabled)
1736
- }), { locale: o, t: u } = Ge(), l = B(null), p = B(!1), m = B(!1), y = B(null), v = B(null), C = r, { config: O } = Ke(), { eventBus: M } = Qe();
1737
- function gt(_) {
1738
- switch (_) {
1739
- case W.Production:
1740
- return "pk_live_x99EPirYIsCyUsRvPAfyhnRp";
1741
- case W.Sandbox:
1742
- case W.Staging:
1743
- case W.CiCd:
1744
- case W.Local:
1745
- default:
1746
- return "pk_test_wXnn2RrefTiOHB0zzxqJr0s8";
1747
- }
1748
- }
1749
- const F = ct(
1750
- () => gt(O.value.apiEnvironment)
1751
- );
1752
- function bt(_) {
1753
- l.value = "", C("change", !!_.detail.complete);
1754
- }
1755
- function q(_) {
1756
- l.value = `${_?.error?.message} - ${u("CreditCardStripeForm.error")}`, C("error", l.value);
1685
+ computed: {
1686
+ termsAndConditionsUrl() {
1687
+ return this.t("CreditCardForm.termsURL");
1757
1688
  }
1758
- async function St(_) {
1689
+ },
1690
+ data: () => ({
1691
+ error: "",
1692
+ isTermsAccepted: !1,
1693
+ termsError: !1
1694
+ }),
1695
+ methods: {
1696
+ onCreditCardFormChange(e) {
1697
+ this.error = "", this.$emit("change", !!e.detail.complete);
1698
+ },
1699
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1700
+ onPaymentError(e) {
1701
+ this.error = `${e?.error?.message} ${this.t("CreditCardForm.error")}`, this.$emit("error", this.error);
1702
+ },
1703
+ async onStripePayment(e) {
1759
1704
  try {
1760
- if (!window.Stripe || i.value)
1705
+ if (!window.Stripe || this.parsedDisabled)
1761
1706
  return;
1762
- const E = window.Stripe(F.value, {
1763
- locale: Xe(o.value)
1764
- });
1765
- p.value = !0;
1766
- const nt = await E.confirmCardPayment(s.stripeToken, {
1707
+ const r = await window.Stripe(this.pk, {
1708
+ locale: this.$i18n.locale
1709
+ }).confirmCardPayment(this.token, {
1767
1710
  // eslint-disable-next-line camelcase
1768
- payment_method: _.detail.id
1711
+ payment_method: e.detail.id
1769
1712
  });
1770
- nt.error ? q(nt.error) : s.withAction ? M.$emit(Dt.PaymentSuccess) : C(Dt.PaymentSuccess);
1771
- } catch (E) {
1772
- q(E);
1713
+ r.error ? this.onPaymentError(r) : this.withAction ? this.$eventBus.$emit(Le.PaymentSuccess) : this.$emit("success");
1714
+ } catch (t) {
1715
+ this.onPaymentError(t);
1773
1716
  }
1774
- }
1775
- function qt() {
1717
+ },
1718
+ pay() {
1776
1719
  try {
1777
- return !v.value || s.withTerms && !m.value ? null : v.value.submit();
1778
- } catch (_) {
1779
- return q(_), null;
1720
+ if (!this.$refs.payment || this.withTerms && !this.isTermsAccepted)
1721
+ return;
1722
+ this.$refs.payment.submit();
1723
+ } catch (e) {
1724
+ this.onPaymentError(e);
1780
1725
  }
1781
1726
  }
1782
- return Je(async () => {
1783
- y.value = await $s(F.value);
1784
- }), t({
1785
- pay: qt
1786
- }), (_, E) => (P(), x(Ft, {
1787
- disabled: w(i),
1788
- elevation: "0",
1789
- border: "",
1790
- style: Ye({
1791
- borderColor: w(i) ? "" : "rgb(var(--v-theme-primary))"
1792
- })
1793
- }, {
1794
- default: g(() => [
1795
- b(er, {
1796
- class: "text-white",
1797
- color: "primary",
1798
- density: "compact",
1799
- elevation: "0"
1800
- }, {
1801
- default: g(() => [
1802
- R("div", Cs, [
1803
- R("h4", null, [
1804
- b($t, {
1805
- color: "white",
1806
- start: "",
1807
- size: "small"
1808
- }, {
1809
- default: g(() => [...E[2] || (E[2] = [
1810
- it(" fas fa-credit-card ", -1)
1811
- ])]),
1812
- _: 1
1813
- }),
1814
- it(" " + T(w(u)("CreditCardStripeForm.title")) + ": ", 1),
1815
- w(n) ? (P(), x(or, {
1816
- key: 0,
1817
- class: "ml-2",
1818
- color: "primary",
1819
- indeterminate: "",
1820
- size: "20",
1821
- width: "1"
1822
- })) : (P(), x(Wt, {
1823
- key: 1,
1824
- amount: _.amount,
1825
- class: "font-weight-bold",
1826
- currency: _.currency
1827
- }, null, 8, ["amount", "currency"]))
1828
- ]),
1829
- b($t, {
1830
- color: "white",
1831
- end: "",
1832
- size: "small"
1833
- }, {
1834
- default: g(() => [...E[3] || (E[3] = [
1835
- it(" fas fa-lock ", -1)
1836
- ])]),
1837
- _: 1
1838
- })
1839
- ])
1840
- ]),
1841
- _: 1
1842
- }),
1843
- b(ur, null, {
1844
- default: g(() => [
1845
- b(G, null, {
1846
- default: g(() => [
1847
- b(L, null, {
1848
- default: g(() => [
1849
- l.value ? (P(), x(ar, {
1850
- key: 0,
1851
- color: "red",
1852
- density: "compact",
1853
- variant: "outlined"
1854
- }, {
1855
- default: g(() => [
1856
- R("p", Es, T(w(u)("CreditCardStripeForm.paymentDeclined")) + ": " + T(l.value), 1)
1857
- ]),
1858
- _: 1
1859
- })) : _t("", !0)
1860
- ]),
1861
- _: 1
1862
- })
1863
- ]),
1864
- _: 1
1865
- }),
1866
- b(G, {
1867
- class: "d-none d-sm-flex",
1868
- "no-gutters": ""
1869
- }, {
1870
- default: g(() => [
1871
- b(L, { cols: "8" }, {
1872
- default: g(() => [
1873
- R("small", null, T(w(u)("CreditCardStripeForm.cardNumber")), 1)
1874
- ]),
1875
- _: 1
1876
- }),
1877
- b(L, {
1878
- class: "text-right pr-6",
1879
- cols: "4"
1880
- }, {
1881
- default: g(() => [
1882
- R("small", Ps, T(w(u)("CreditCardStripeForm.expDate")), 1),
1883
- R("small", null, T(w(u)("CreditCardStripeForm.cvc")), 1)
1884
- ]),
1885
- _: 1
1886
- })
1887
- ]),
1888
- _: 1
1889
- }),
1890
- b(G, { "no-gutters": "" }, {
1891
- default: g(() => [
1892
- b(L, null, {
1893
- default: g(() => [
1894
- b(Ft, {
1895
- elevation: "0",
1896
- border: ""
1897
- }, {
1898
- default: g(() => [
1899
- y.value ? (P(), wt("stripe-elements", {
1900
- key: 0,
1901
- disable: w(n),
1902
- ref_key: "payment",
1903
- ref: v,
1904
- generate: "payment-method",
1905
- "hide-postal-code": "",
1906
- locale: w(o),
1907
- "publishable-key": F.value,
1908
- onChange: bt,
1909
- onError: q,
1910
- onPaymentMethod: St
1911
- }, null, 40, As)) : (P(), x(K, {
1912
- key: 1,
1913
- class: "mx-auto",
1914
- height: "36.8px",
1915
- type: "image",
1916
- width: "100%"
1917
- }))
1918
- ]),
1919
- _: 1
1920
- })
1921
- ]),
1922
- _: 1
1923
- })
1924
- ]),
1925
- _: 1
1926
- }),
1927
- _.withTerms ? (P(), x(G, {
1928
- key: 0,
1929
- class: "mt-2"
1930
- }, {
1931
- default: g(() => [
1932
- b(L, null, {
1933
- default: g(() => [
1934
- w(n) ? (P(), x(K, {
1935
- key: 0,
1936
- class: "mt-3",
1937
- height: "25px",
1938
- type: "image",
1939
- width: "50%"
1940
- })) : (P(), x(mr, {
1941
- key: 1,
1942
- ref: "testing",
1943
- modelValue: m.value,
1944
- "onUpdate:modelValue": E[1] || (E[1] = (nt) => m.value = nt)
1945
- }, {
1946
- label: g(() => [
1947
- R("span", {
1948
- onClick: E[0] || (E[0] = Ze(() => {
1949
- }, ["stop"])),
1950
- innerHTML: w(u)("CreditCardStripeForm.termsAndConditions", {
1951
- url: w(u)("CreditCardStripeForm.termsURL")
1952
- })
1953
- }, null, 8, xs)
1954
- ]),
1955
- _: 1
1956
- }, 8, ["modelValue"]))
1957
- ]),
1958
- _: 1
1959
- })
1960
- ]),
1961
- _: 1
1962
- })) : _t("", !0),
1963
- b(G, null, {
1964
- default: g(() => [
1965
- b(L, { class: "v-col-12 v-col-sm-8 v-col-md-9" }, {
1966
- default: g(() => [
1967
- w(n) ? (P(), wt(zt, { key: 0 }, [
1968
- b(K, {
1969
- height: "10px",
1970
- type: "image",
1971
- width: "160px"
1972
- }),
1973
- b(K, {
1974
- height: "38px",
1975
- type: "image",
1976
- width: "240px"
1977
- })
1978
- ], 64)) : (P(), wt(zt, { key: 1 }, [
1979
- R("small", ks, T(w(u)("CreditCardStripeForm.acceptedPaymentMethods")), 1),
1980
- b(lr, {
1981
- class: "mb-n1",
1982
- height: "45",
1983
- src: "https://revolugo.s3.eu-west-3.amazonaws.com/payment-methods.png",
1984
- width: "240"
1985
- })
1986
- ], 64))
1987
- ]),
1988
- _: 1
1989
- }),
1990
- _.withAction ? (P(), x(L, {
1991
- key: 0,
1992
- class: "v-col-12 v-col-sm-4 v-col-md-3 text-right align-self-end"
1993
- }, {
1994
- default: g(() => [
1995
- w(n) ? (P(), x(K, {
1996
- key: 0,
1997
- class: "w-100 align-self-end",
1998
- height: "36px",
1999
- type: "image",
2000
- width: "170px"
2001
- })) : (P(), x(cr, {
2002
- key: 1,
2003
- class: "w-100 w-sm-auto align-self-end",
2004
- color: "primary",
2005
- loading: p.value,
2006
- variant: "flat",
2007
- disabled: w(i) || _.withTerms && !m.value,
2008
- onClick: qt
2009
- }, {
2010
- default: g(() => [
2011
- b($t, { start: "" }, {
2012
- default: g(() => [...E[4] || (E[4] = [
2013
- it(" fas fa-lock ", -1)
2014
- ])]),
2015
- _: 1
2016
- }),
2017
- R("span", Rs, T(w(u)("CreditCardStripeForm.payNow")), 1),
2018
- b(Wt, {
2019
- amount: _.amount,
2020
- class: "font-weight-bold",
2021
- currency: _.currency
2022
- }, null, 8, ["amount", "currency"])
2023
- ]),
2024
- _: 1
2025
- }, 8, ["loading", "disabled"]))
2026
- ]),
2027
- _: 1
2028
- })) : _t("", !0)
2029
- ]),
2030
- _: 1
2031
- })
2032
- ]),
2033
- _: 1
2034
- })
2035
- ]),
2036
- _: 1
2037
- }, 8, ["disabled", "style"]));
1727
+ },
1728
+ mixins: [
1729
+ kt({
1730
+ fallbackValue: !1,
1731
+ propsName: "loading"
1732
+ }),
1733
+ kt({
1734
+ fallbackValue: !1,
1735
+ propsName: "disabled"
1736
+ })
1737
+ ],
1738
+ name: "CreditCardForm",
1739
+ props: nr,
1740
+ setup() {
1741
+ const { t: e } = Te(), { config: t } = xe(), r = te(
1742
+ () => sr(t.value.apiEnvironment)
1743
+ ), s = At(!1), n = At(null);
1744
+ return Me(async () => {
1745
+ n.value = await fr(r.value), s.value = !0;
1746
+ }), {
1747
+ pk: r,
1748
+ stripeLoaded: s,
1749
+ t: e
1750
+ };
2038
1751
  }
2039
1752
  });
2040
- function ye(e) {
1753
+ function Qt(e) {
2041
1754
  const t = e;
2042
1755
  t.__i18n = t.__i18n || [], t.__i18n.push({
2043
1756
  locale: "",
2044
1757
  resource: {
2045
1758
  "en-US": {
2046
- CreditCardStripeForm: {
2047
- acceptedPaymentMethods: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Payment Methods Accepted:" } },
1759
+ CreditCardForm: {
2048
1760
  cardNumber: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Card number" } },
2049
1761
  error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Please, use another payment method" } },
2050
1762
  or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "or" } },
@@ -2053,15 +1765,14 @@ function ye(e) {
2053
1765
  pay: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Total price to pay" } },
2054
1766
  payByCard: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Amount to pay by card" } },
2055
1767
  paymentDeclined: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Payment declined" } },
2056
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Total to pay with your credit card" } },
1768
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Total to Pay with your credit card" } },
2057
1769
  payNow: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Pay now" } },
2058
1770
  termsURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf" } },
2059
1771
  termsAndConditions: { t: 0, b: { t: 2, i: [{ t: 3, v: 'By continuing with your reservation you agree to the terms and conditions: <b><a href="' }, { t: 4, k: "url" }, { t: 3, v: '" target="_blank">Click here to read it</a></b>' }] } }
2060
1772
  }
2061
1773
  },
2062
1774
  "fr-FR": {
2063
- CreditCardStripeForm: {
2064
- acceptedPaymentMethods: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Moyens de Paiement Acceptés:" } },
1775
+ CreditCardForm: {
2065
1776
  cardNumber: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Numéro de carte bancaire" } },
2066
1777
  error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Veuillez utiliser un autre moyen de paiement." } },
2067
1778
  or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "ou" } },
@@ -2077,8 +1788,7 @@ function ye(e) {
2077
1788
  }
2078
1789
  },
2079
1790
  "de-DE": {
2080
- CreditCardStripeForm: {
2081
- acceptedPaymentMethods: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Zahlungsmethoden:" } },
1791
+ CreditCardForm: {
2082
1792
  cardNumber: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Kartennummer" } },
2083
1793
  error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Bitte verwenden Sie eine andere Zahlungsmethode" } },
2084
1794
  or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "oder" } },
@@ -2094,8 +1804,7 @@ function ye(e) {
2094
1804
  }
2095
1805
  },
2096
1806
  "es-ES": {
2097
- CreditCardStripeForm: {
2098
- acceptedPaymentMethods: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Métodos de Pago:" } },
1807
+ CreditCardForm: {
2099
1808
  cardNumber: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Número de tarjeta" } },
2100
1809
  error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Por favor, utilice otro método de pago" } },
2101
1810
  or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "o" } },
@@ -2111,8 +1820,7 @@ function ye(e) {
2111
1820
  }
2112
1821
  },
2113
1822
  "it-IT": {
2114
- CreditCardStripeForm: {
2115
- acceptedPaymentMethods: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Metodi di Pagamento:" } },
1823
+ CreditCardForm: {
2116
1824
  cardNumber: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Numero di carta" } },
2117
1825
  error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Si prega di utilizzare un altro metodo di pagamento" } },
2118
1826
  or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "o" } },
@@ -2128,8 +1836,7 @@ function ye(e) {
2128
1836
  }
2129
1837
  },
2130
1838
  "nl-NL": {
2131
- CreditCardStripeForm: {
2132
- acceptedPaymentMethods: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Betaalmethoden:" } },
1839
+ CreditCardForm: {
2133
1840
  cardNumber: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Kaartnummer" } },
2134
1841
  error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Gebruik alstublieft een andere betaalmethode" } },
2135
1842
  or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "of" } },
@@ -2145,8 +1852,7 @@ function ye(e) {
2145
1852
  }
2146
1853
  },
2147
1854
  "pt-PT": {
2148
- CreditCardStripeForm: {
2149
- acceptedPaymentMethods: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Métodos de Pagamento:" } },
1855
+ CreditCardForm: {
2150
1856
  cardNumber: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Número do cartão" } },
2151
1857
  error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Por favor, utilize outro método de pagamento" } },
2152
1858
  or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "ou" } },
@@ -2164,13 +1870,290 @@ function ye(e) {
2164
1870
  }
2165
1871
  });
2166
1872
  }
2167
- typeof ye == "function" && ye(Ve);
2168
- const Is = /* @__PURE__ */ pr(Ve, [["__scopeId", "data-v-15d3def0"]]);
2169
- Ue("css/revolugo.creditcardstripeform.C4-vMajR.css");
1873
+ const ms = Oe({
1874
+ ...rr(),
1875
+ ...qe(Ze(), ["inline"])
1876
+ }, "VCheckbox"), ys = Ne()({
1877
+ name: "VCheckbox",
1878
+ inheritAttrs: !1,
1879
+ props: ms(),
1880
+ emits: {
1881
+ "update:modelValue": (e) => !0,
1882
+ "update:focused": (e) => !0
1883
+ },
1884
+ setup(e, t) {
1885
+ let {
1886
+ attrs: r,
1887
+ slots: s
1888
+ } = t;
1889
+ const n = Ve(e, "modelValue"), {
1890
+ isFocused: i,
1891
+ focus: o,
1892
+ blur: c
1893
+ } = er(e), l = Ue(), p = te(() => e.id || `checkbox-${l}`);
1894
+ return We(() => {
1895
+ const [y, f] = Ie(r), S = xt.filterProps(e), _ = Rt.filterProps(e);
1896
+ return g(xt, Pt({
1897
+ class: ["v-checkbox", e.class]
1898
+ }, y, S, {
1899
+ modelValue: n.value,
1900
+ "onUpdate:modelValue": (q) => n.value = q,
1901
+ id: p.value,
1902
+ focused: i.value,
1903
+ style: e.style
1904
+ }), {
1905
+ ...s,
1906
+ default: (q) => {
1907
+ let {
1908
+ id: L,
1909
+ messagesId: _e,
1910
+ isDisabled: Ce,
1911
+ isReadonly: Ee,
1912
+ isValid: Ae
1913
+ } = q;
1914
+ return g(Rt, Pt(_, {
1915
+ id: L.value,
1916
+ "aria-describedby": _e.value,
1917
+ disabled: Ce.value,
1918
+ readonly: Ee.value
1919
+ }, f, {
1920
+ error: Ae.value === !1,
1921
+ modelValue: n.value,
1922
+ "onUpdate:modelValue": (Pe) => n.value = Pe,
1923
+ onFocus: o,
1924
+ onBlur: c
1925
+ }), s);
1926
+ }
1927
+ });
1928
+ }), {};
1929
+ }
1930
+ }), fs = { class: "w-100 d-flex justify-space-between items-center" }, vs = { class: "text-caption font-weight-bold text-center my-0 text-red rounded" }, gs = { class: "pr-3" }, bs = ["locale", "publishable-key"], Ss = ["innerHTML"], $s = { class: "mr-1" };
1931
+ function ws(e, t, r, s, n, i) {
1932
+ const o = Be("BFormattedAmount");
1933
+ return A(), k(Tt, {
1934
+ disabled: e.parsedDisabled,
1935
+ elevation: "0",
1936
+ border: "",
1937
+ style: He({
1938
+ borderColor: e.parsedDisabled ? null : "rgb(var(--v-theme-primary))"
1939
+ })
1940
+ }, {
1941
+ default: v(() => [
1942
+ g(Ye, {
1943
+ class: "text-white",
1944
+ color: "primary",
1945
+ density: "compact",
1946
+ elevation: "0"
1947
+ }, {
1948
+ default: v(() => [
1949
+ E("div", fs, [
1950
+ E("h4", null, [
1951
+ g(ct, {
1952
+ color: "white",
1953
+ start: "",
1954
+ size: "small"
1955
+ }, {
1956
+ default: v(() => t[5] || (t[5] = [
1957
+ X(" fas fa-credit-card ")
1958
+ ])),
1959
+ _: 1,
1960
+ __: [5]
1961
+ }),
1962
+ X(" " + R(e.t("CreditCardForm.title")) + ": ", 1),
1963
+ e.parsedLoading ? (A(), k(Ke, {
1964
+ key: 0,
1965
+ class: "ml-2",
1966
+ color: "primary",
1967
+ indeterminate: "",
1968
+ size: "20",
1969
+ width: "1"
1970
+ })) : (A(), k(o, {
1971
+ key: 1,
1972
+ amount: e.amount,
1973
+ class: "font-weight-bold",
1974
+ currency: e.currency
1975
+ }, null, 8, ["amount", "currency"]))
1976
+ ]),
1977
+ g(ct, {
1978
+ color: "white",
1979
+ end: "",
1980
+ size: "small"
1981
+ }, {
1982
+ default: v(() => t[6] || (t[6] = [
1983
+ X(" fas fa-lock ")
1984
+ ])),
1985
+ _: 1,
1986
+ __: [6]
1987
+ })
1988
+ ])
1989
+ ]),
1990
+ _: 1
1991
+ }),
1992
+ g(Qe, null, {
1993
+ default: v(() => [
1994
+ g(D, null, {
1995
+ default: v(() => [
1996
+ g(N, null, {
1997
+ default: v(() => [
1998
+ e.error ? (A(), k(Xe, {
1999
+ key: 0,
2000
+ color: "red",
2001
+ density: "compact",
2002
+ variant: "outlined"
2003
+ }, {
2004
+ default: v(() => [
2005
+ E("p", vs, R(e.t("CreditCardForm.paymentDeclined")) + ": " + R(e.error), 1)
2006
+ ]),
2007
+ _: 1
2008
+ })) : z("", !0)
2009
+ ]),
2010
+ _: 1
2011
+ })
2012
+ ]),
2013
+ _: 1
2014
+ }),
2015
+ g(D, {
2016
+ class: "d-none d-sm-flex",
2017
+ "no-gutters": ""
2018
+ }, {
2019
+ default: v(() => [
2020
+ g(N, { cols: "8" }, {
2021
+ default: v(() => [
2022
+ E("small", null, R(e.t("CreditCardForm.cardNumber")), 1)
2023
+ ]),
2024
+ _: 1
2025
+ }),
2026
+ g(N, {
2027
+ class: "text-right pr-6",
2028
+ cols: "4"
2029
+ }, {
2030
+ default: v(() => [
2031
+ E("small", gs, R(e.t("CreditCardForm.expDate")), 1),
2032
+ E("small", null, R(e.t("CreditCardForm.cvc")), 1)
2033
+ ]),
2034
+ _: 1
2035
+ })
2036
+ ]),
2037
+ _: 1
2038
+ }),
2039
+ g(D, { "no-gutters": "" }, {
2040
+ default: v(() => [
2041
+ g(N, null, {
2042
+ default: v(() => [
2043
+ g(Tt, {
2044
+ elevation: "0",
2045
+ border: ""
2046
+ }, {
2047
+ default: v(() => [
2048
+ e.stripeLoaded ? (A(), ze("stripe-elements", {
2049
+ key: 0,
2050
+ ref: "payment",
2051
+ class: De({
2052
+ "d-none": e.parsedLoading
2053
+ }),
2054
+ generate: "payment-method",
2055
+ "hide-postal-code": "",
2056
+ locale: e.$i18n.locale,
2057
+ "publishable-key": e.pk,
2058
+ onChange: t[0] || (t[0] = (...c) => e.onCreditCardFormChange && e.onCreditCardFormChange(...c)),
2059
+ onError: t[1] || (t[1] = (...c) => e.onPaymentError && e.onPaymentError(...c)),
2060
+ onPaymentMethod: t[2] || (t[2] = (...c) => e.onStripePayment && e.onStripePayment(...c))
2061
+ }, null, 42, bs)) : z("", !0),
2062
+ e.parsedLoading ? (A(), k(tr, {
2063
+ key: 1,
2064
+ class: "mx-auto",
2065
+ height: "36.8px",
2066
+ type: "image",
2067
+ width: "100%"
2068
+ })) : z("", !0)
2069
+ ]),
2070
+ _: 1
2071
+ })
2072
+ ]),
2073
+ _: 1
2074
+ })
2075
+ ]),
2076
+ _: 1
2077
+ }),
2078
+ e.withTerms ? (A(), k(D, {
2079
+ key: 0,
2080
+ class: "mt-2"
2081
+ }, {
2082
+ default: v(() => [
2083
+ g(N, null, {
2084
+ default: v(() => [
2085
+ g(ys, {
2086
+ ref: "testing",
2087
+ modelValue: e.isTermsAccepted,
2088
+ "onUpdate:modelValue": t[4] || (t[4] = (c) => e.isTermsAccepted = c),
2089
+ class: "mt-0",
2090
+ error: e.termsError && !e.isTermsAccepted
2091
+ }, {
2092
+ label: v(() => [
2093
+ E("span", {
2094
+ onClick: t[3] || (t[3] = je(() => {
2095
+ }, ["stop"])),
2096
+ innerHTML: e.t("CreditCardForm.termsAndConditions", {
2097
+ url: e.termsAndConditionsUrl
2098
+ })
2099
+ }, null, 8, Ss)
2100
+ ]),
2101
+ _: 1
2102
+ }, 8, ["modelValue", "error"])
2103
+ ]),
2104
+ _: 1
2105
+ })
2106
+ ]),
2107
+ _: 1
2108
+ })) : z("", !0),
2109
+ e.withAction ? (A(), k(D, { key: 1 }, {
2110
+ default: v(() => [
2111
+ g(N, { class: "d-flex justify-end flex-column flex-sm-row mb-1 align-center mt-4 mt-sm-0" }, {
2112
+ default: v(() => [
2113
+ g(Je, {
2114
+ class: "w-100 w-sm-auto",
2115
+ color: "primary",
2116
+ variant: "flat",
2117
+ disabled: e.parsedDisabled || e.withTerms && !e.isTermsAccepted,
2118
+ loading: e.parsedLoading,
2119
+ onClick: e.pay
2120
+ }, {
2121
+ default: v(() => [
2122
+ g(ct, { start: "" }, {
2123
+ default: v(() => t[7] || (t[7] = [
2124
+ X(" fas fa-lock ")
2125
+ ])),
2126
+ _: 1,
2127
+ __: [7]
2128
+ }),
2129
+ E("span", $s, R(e.t("CreditCardForm.payNow")), 1),
2130
+ g(o, {
2131
+ amount: e.amount,
2132
+ class: "font-weight-bold",
2133
+ currency: e.currency
2134
+ }, null, 8, ["amount", "currency"])
2135
+ ]),
2136
+ _: 1
2137
+ }, 8, ["disabled", "loading", "onClick"])
2138
+ ]),
2139
+ _: 1
2140
+ })
2141
+ ]),
2142
+ _: 1
2143
+ })) : z("", !0)
2144
+ ]),
2145
+ _: 1
2146
+ })
2147
+ ]),
2148
+ _: 1
2149
+ }, 8, ["disabled", "style"]);
2150
+ }
2151
+ typeof Qt == "function" && Qt(we);
2152
+ const Vs = /* @__PURE__ */ Ge(we, [["render", ws], ["__scopeId", "data-v-c250e58b"]]);
2153
+ ke("css/revolugo.creditcardform.fTmPR0fS.css");
2170
2154
  export {
2171
- Is as C,
2172
- mr as V,
2173
- dr as p,
2174
- Gt as u
2155
+ Vs as C,
2156
+ ys as V,
2157
+ nr as c
2175
2158
  };
2176
- //# sourceMappingURL=revolugo.creditcardstripeform.hPOL0GxK.min.js.map
2159
+ //# sourceMappingURL=revolugo.creditcardform.C1Y8cuiJ.min.js.map