@revolugo/elements 6.8.3-beta.13 → 6.8.3-beta.15

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 (178) hide show
  1. package/dist/css/fonts.css +1 -1
  2. package/dist/css/revolugo.cancellationpoliciesbadge.CcLw1eDZ.css +1 -0
  3. package/dist/css/{revolugo.webcomponentwrapper.cFJPP6Rp.css → revolugo.webcomponentwrapper.CmjarAgQ.css} +1 -1
  4. package/dist/revolugo.banktransferdetails.Cvzg5_Ic.min.js +36 -0
  5. package/dist/revolugo.bookingdetailssidebar.k46HDmg6.min.js +37 -0
  6. package/dist/revolugo.bookingmanager.Bp3Iq-CV.min.js +24 -0
  7. package/dist/revolugo.cancellationpoliciesbadge.D94ditk5.min.js +24 -0
  8. package/dist/revolugo.cancellationpoliciesbadge.props.BnLjFL5s.min.js +31712 -0
  9. package/dist/revolugo.cancellationpolicieslist.ofFI9Dx1.min.js +24 -0
  10. package/dist/revolugo.creditcardform.DNY-xKYV.min.js +24 -0
  11. package/dist/revolugo.creditcardpayment.DoH0pwLm.min.js +24 -0
  12. package/dist/revolugo.currencypickerbtn.DcoR1F1Y.min.js +24 -0
  13. package/dist/revolugo.fastbookingflow.DdfGwiWZ.min.js +34 -0
  14. package/dist/revolugo.fullbookingflow.BbqC4qQ1.min.js +24 -0
  15. package/dist/revolugo.hoteldescriptionview.CBhuNO9_.min.js +24 -0
  16. package/dist/revolugo.hotelofferlist.DgZhb92H.min.js +24 -0
  17. package/dist/{revolugo.hoteloffersearchmenu.BJ-JtltU.min.js → revolugo.hoteloffersearchmenu.Ojiuc5KP.min.js} +37 -39
  18. package/dist/revolugo.hoteloffersmap.95AMizbv.min.js +24 -0
  19. package/dist/revolugo.hoteloffersview.CUcJpz15.min.js +19 -0
  20. package/dist/revolugo.hotelroomofferlist.deuoRfWR.min.js +24 -0
  21. package/dist/revolugo.hotelroomoffersbookingflow.dTr1ET_n.min.js +24 -0
  22. package/dist/revolugo.hotelroomoffersearchmenu.DDi3cRLS.min.js +24 -0
  23. package/dist/revolugo.hotelroomoffersview.CFseu6Pj.min.js +24 -0
  24. package/dist/{revolugo.index.DW0gTseB.min.js → revolugo.index.Bz-n9tuq.min.js} +6 -6
  25. package/dist/{revolugo.index.wc.ChJWkzSz.min.js → revolugo.index.wc.DevpsraD.min.js} +267 -267
  26. package/dist/revolugo.langpickerbtn.B9byfQqd.min.js +29 -0
  27. package/dist/revolugo.min.js +1 -1
  28. package/dist/revolugo.prebookform.BDFY-Ks_.min.js +24 -0
  29. package/dist/revolugo.roominglisteditor.B_AOuHI_.min.js +24 -0
  30. package/dist/{revolugo.storybooktoolbar.C-phKw4Y.min.js → revolugo.storybooktoolbar.BamIltF8.min.js} +132 -146
  31. package/dist/revolugo.termsandconditions.Dfp652uY.min.js +23 -0
  32. package/dist/revolugo.webcomponentwrapper.CEjK8-cS.min.js +28682 -0
  33. package/package.json +1 -1
  34. package/dist/css/revolugo.bdaterangepicker.B6KA5TYs.css +0 -1
  35. package/dist/css/revolugo.bhoteloffersfilterbar.BP8bd417.css +0 -1
  36. package/dist/css/revolugo.bhotelroomsdetails.c1M8WEQ1.css +0 -1
  37. package/dist/css/revolugo.bimagecarousel.BxIL_xDV.css +0 -1
  38. package/dist/css/revolugo.bookingdetailssidebar.g_6Xwqnt.css +0 -1
  39. package/dist/css/revolugo.bstarrating.CPHKEfup.css +0 -1
  40. package/dist/css/revolugo.btag.T7X_iIkW.css +0 -1
  41. package/dist/css/revolugo.cancellationpoliciesbadge.BLInUr3-.css +0 -1
  42. package/dist/css/revolugo.creditcardform.BXv0c3zQ.css +0 -1
  43. package/dist/css/revolugo.creditcardpayment.D2PE5FCt.css +0 -1
  44. package/dist/css/revolugo.currencypicker.DO0IrmRK.css +0 -1
  45. package/dist/css/revolugo.fullbookingflow.Bm8JAQF7.css +0 -1
  46. package/dist/css/revolugo.hoteldescriptionview.Dfi-84To.css +0 -1
  47. package/dist/css/revolugo.hotelofferlist.BkctzTMI.css +0 -1
  48. package/dist/css/revolugo.hoteloffersearchmenuui.ZbUh8ba2.css +0 -1
  49. package/dist/css/revolugo.hoteloffersmap.CdDZxzE3.css +0 -1
  50. package/dist/css/revolugo.hoteloffersview.Xw1flMYo.css +0 -1
  51. package/dist/css/revolugo.hotelroomofferlist.C1uw1vfC.css +0 -1
  52. package/dist/css/revolugo.hotelroomoffersbookingflow.nFiRmYyk.css +0 -1
  53. package/dist/css/revolugo.index.DK7d_h6O.css +0 -1
  54. package/dist/css/revolugo.langpickerbtn.BGnattUJ.css +0 -1
  55. package/dist/css/revolugo.prebookform.BqSw27Yj.css +0 -1
  56. package/dist/css/revolugo.termsandconditions.D8IMR9da.css +0 -1
  57. package/dist/css/revolugo.vautocomplete.CuVjyvcC.css +0 -1
  58. package/dist/css/revolugo.vbadge.C45eZpxy.css +0 -1
  59. package/dist/css/revolugo.vbtn.DpMO1Ky2.css +0 -1
  60. package/dist/css/revolugo.vcard.TERzfknI.css +0 -1
  61. package/dist/css/revolugo.vcheckboxbtn.Bp_BNQWb.css +0 -1
  62. package/dist/css/revolugo.vdialog.DwTSAOeg.css +0 -1
  63. package/dist/css/revolugo.vdivider.CTbbZwnv.css +0 -1
  64. package/dist/css/revolugo.vexpansionpanels.RsCANmDP.css +0 -1
  65. package/dist/css/revolugo.vicon.eIkh7vVK.css +0 -1
  66. package/dist/css/revolugo.vinput.BPiFMorL.css +0 -1
  67. package/dist/css/revolugo.vlabel.BvKaKg7Y.css +0 -1
  68. package/dist/css/revolugo.vlist.-Y4qkukF.css +0 -1
  69. package/dist/css/revolugo.vmenu.DvKwEp1j.css +0 -1
  70. package/dist/css/revolugo.vselect.C5CKHFYB.css +0 -1
  71. package/dist/css/revolugo.vsheet.Dmcoj8cr.css +0 -1
  72. package/dist/css/revolugo.vskeletonloader.BlK8uFkX.css +0 -1
  73. package/dist/css/revolugo.vslidegroup.ECiLCEE9.css +0 -1
  74. package/dist/css/revolugo.vsnackbar.CCfuo3ao.css +0 -1
  75. package/dist/css/revolugo.vtextarea.BTR7f0gW.css +0 -1
  76. package/dist/css/revolugo.vtextfield.BIH_AWWP.css +0 -1
  77. package/dist/css/revolugo.vtoolbar.BZert82L.css +0 -1
  78. package/dist/css/revolugo.vtooltip.BHXJTQ4V.css +0 -1
  79. package/dist/css/revolugo.vwindowitem.CWBhiE_Y.css +0 -1
  80. package/dist/revolugo._baseiteratee.cBR9c7y0.min.js +0 -247
  81. package/dist/revolugo.banktransferdetails.COKZxUgl.min.js +0 -358
  82. package/dist/revolugo.bdaterangepicker.DTHAdEo_.min.js +0 -8324
  83. package/dist/revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.CSkPq_d5.min.js +0 -143
  84. package/dist/revolugo.bhoteloffersfilterbar.WV1ViyRw.min.js +0 -4209
  85. package/dist/revolugo.bhotelroomsdetails.Du1N0UAf.min.js +0 -965
  86. package/dist/revolugo.bimagecarousel.CBxDqlvz.min.js +0 -480
  87. package/dist/revolugo.bookingdetailssidebar.DPhWTa8q.min.js +0 -37
  88. package/dist/revolugo.bookingdetailssidebar.vue_vue_type_script_setup_true_lang.CFy72I3H.min.js +0 -811
  89. package/dist/revolugo.bookingmanager.DU11HnFM.min.js +0 -1755
  90. package/dist/revolugo.bpricesummaryskeleton.vue_vue_type_script_setup_true_lang.O_acR9ze.min.js +0 -91
  91. package/dist/revolugo.bstarrating.vue_vue_type_script_setup_true_lang.CsJ-qnww.min.js +0 -570
  92. package/dist/revolugo.btag.C62gPpXY.min.js +0 -375
  93. package/dist/revolugo.cancellationpoliciesbadge.2POZ-HT5.min.js +0 -198
  94. package/dist/revolugo.cancellationpoliciesbadge.Ct0ngoDp.min.js +0 -28
  95. package/dist/revolugo.cancellationpolicieslist.B3anYVoy.min.js +0 -148
  96. package/dist/revolugo.cancellationpolicieslist.CXfbgIoX.min.js +0 -25
  97. package/dist/revolugo.cancellationpolicieslist.props.s6oWxIxG.min.js +0 -21
  98. package/dist/revolugo.case-transformers.BwQ_6ytS.min.js +0 -123
  99. package/dist/revolugo.common.D-l8b0V5.min.js +0 -10
  100. package/dist/revolugo.creditcardform.Bk7yeZle.min.js +0 -2148
  101. package/dist/revolugo.creditcardform.CLPMa22X.min.js +0 -24
  102. package/dist/revolugo.creditcardpayment.16l0_Jf7.min.js +0 -885
  103. package/dist/revolugo.creditcardpayment.8uLeCSFY.min.js +0 -24
  104. package/dist/revolugo.currencypicker.C2vrmj29.min.js +0 -330
  105. package/dist/revolugo.currencypickerbtn.D-_ebAdx.min.js +0 -157
  106. package/dist/revolugo.currencypickerbtn.oOaJl4xV.min.js +0 -24
  107. package/dist/revolugo.dates.CjcXQ0GW.min.js +0 -31
  108. package/dist/revolugo.defaultsdeep.BeZIlIB3.min.js +0 -104
  109. package/dist/revolugo.dialog-attach.BhhnSZUl.min.js +0 -27
  110. package/dist/revolugo.dialog-transition.FTaI_Ytg.min.js +0 -111
  111. package/dist/revolugo.fastbookingflow.BEvuz8TE.min.js +0 -34
  112. package/dist/revolugo.forwardrefs.VVhh1qV3.min.js +0 -70
  113. package/dist/revolugo.fullbookingflow.Cqc7o02c.min.js +0 -429
  114. package/dist/revolugo.hotel-offer-request.aeZsBIhG.min.js +0 -98
  115. package/dist/revolugo.hoteldescriptionview.Cc34IdcB.min.js +0 -2956
  116. package/dist/revolugo.hoteldescriptionview.bwCbJ_Lc.min.js +0 -24
  117. package/dist/revolugo.hotelofferitemlayout.vue_vue_type_script_setup_true_lang.CmUguFEO.min.js +0 -241
  118. package/dist/revolugo.hotelofferlist.BjxZDBqQ.min.js +0 -24
  119. package/dist/revolugo.hotelofferlist.BvbLSbsN.min.js +0 -5624
  120. package/dist/revolugo.hotelofferrequestcreator.props.BeQuCTZy.min.js +0 -44
  121. package/dist/revolugo.hoteloffersearchmenuui.EO_TtRM1.min.js +0 -829
  122. package/dist/revolugo.hoteloffersmap.CXSkWGLL.min.js +0 -24
  123. package/dist/revolugo.hoteloffersmap.CwRdoBFO.min.js +0 -9016
  124. package/dist/revolugo.hoteloffersview.Bldot7ii.min.js +0 -19
  125. package/dist/revolugo.hoteloffersview.DmZBFwbi.min.js +0 -614
  126. package/dist/revolugo.hotelroomofferlist.BMzSnIk0.min.js +0 -2788
  127. package/dist/revolugo.hotelroomofferlist.BfIOXkSe.min.js +0 -24
  128. package/dist/revolugo.hotelroomofferrequestcreator.props.C6XfAEF1.min.js +0 -171
  129. package/dist/revolugo.hotelroomoffersbookingflow.NFAeeps4.min.js +0 -1281
  130. package/dist/revolugo.hotelroomoffersearchmenu.6fvMlU9I.min.js +0 -25
  131. package/dist/revolugo.hotelroomoffersearchmenu.DdtWQl8T.min.js +0 -231
  132. package/dist/revolugo.hotelroomoffersview.BYJ5V84k.min.js +0 -290
  133. package/dist/revolugo.hotelroomoffersview.CvL5egT6.min.js +0 -24
  134. package/dist/revolugo.index.BEuxTkkV.min.js +0 -1232
  135. package/dist/revolugo.langpicker.C3WkV6vL.min.js +0 -99
  136. package/dist/revolugo.langpickerbtn.Big2FR0-.min.js +0 -131
  137. package/dist/revolugo.langpickerbtn.BtNmwMy5.min.js +0 -29
  138. package/dist/revolugo.parsed-props.CKrOq6vN.min.js +0 -39
  139. package/dist/revolugo.pathify.BXdI-Fp4.min.js +0 -36
  140. package/dist/revolugo.prebookform.Bt4-Cptm.min.js +0 -24
  141. package/dist/revolugo.prebookform.DLNVSLoS.min.js +0 -3373
  142. package/dist/revolugo.roominglisteditor.CQzIDZtG.min.js +0 -24
  143. package/dist/revolugo.roominglisteditor.w3dcygO-.min.js +0 -377
  144. package/dist/revolugo.rounded.TLykrsW-.min.js +0 -68
  145. package/dist/revolugo.ssrboot.B7Rop2QP.min.js +0 -18
  146. package/dist/revolugo.termsandconditions.BT6qdQad.min.js +0 -23
  147. package/dist/revolugo.termsandconditions.Bo6ToP4B.min.js +0 -405
  148. package/dist/revolugo.use-breakpoint-service.CgKRPcVE.min.js +0 -39
  149. package/dist/revolugo.use-dialog-attach.EGF5pKTl.min.js +0 -16
  150. package/dist/revolugo.use-html-element.Bvmaeg1E.min.js +0 -11
  151. package/dist/revolugo.use-parsed-props.DL26tjRL.min.js +0 -29
  152. package/dist/revolugo.vautocomplete.C1ryjPoI.min.js +0 -445
  153. package/dist/revolugo.vbadge.BFTNHKkx.min.js +0 -112
  154. package/dist/revolugo.vbtn.Cw5eo1Xx.min.js +0 -398
  155. package/dist/revolugo.vcard.DlI6Moiv.min.js +0 -313
  156. package/dist/revolugo.vcheckboxbtn.Bc0xhmo2.min.js +0 -478
  157. package/dist/revolugo.vdialog.up-Y8p7U.min.js +0 -133
  158. package/dist/revolugo.vdivider.CaptbTLL.min.js +0 -77
  159. package/dist/revolugo.vexpansionpanels.DeQCpMrB.min.js +0 -262
  160. package/dist/revolugo.vform.Cix7vOUg.min.js +0 -46
  161. package/dist/revolugo.vicon.BebzkIu9.min.js +0 -105
  162. package/dist/revolugo.vinput.BP0DAwB4.min.js +0 -463
  163. package/dist/revolugo.vlabel.BLwMEYcT.min.js +0 -48
  164. package/dist/revolugo.vlist.BQB5ovkZ.min.js +0 -1299
  165. package/dist/revolugo.vmenu.Bkfr0AZ8.min.js +0 -145
  166. package/dist/revolugo.vselect.CnEh8cV1.min.js +0 -660
  167. package/dist/revolugo.vsheet.3Q2yGw6P.min.js +0 -72
  168. package/dist/revolugo.vskeletonloader.Duv2gHal.min.js +0 -136
  169. package/dist/revolugo.vslidegroup.DRWO8Opf.min.js +0 -325
  170. package/dist/revolugo.vsnackbar.IdM-bZTD.min.js +0 -198
  171. package/dist/revolugo.vspacer.C-OarNi7.min.js +0 -7
  172. package/dist/revolugo.vtextarea.Dm9Cp0hC.min.js +0 -240
  173. package/dist/revolugo.vtextfield.CJVqkfB9.min.js +0 -501
  174. package/dist/revolugo.vtoolbar.DvuDs2yB.min.js +0 -180
  175. package/dist/revolugo.vtooltip.64CgkEK4.min.js +0 -89
  176. package/dist/revolugo.vwindowitem.qKodFAHS.min.js +0 -317
  177. package/dist/revolugo.watch-list.0WSknWRu.min.js +0 -16
  178. package/dist/revolugo.webcomponentwrapper.BXqP9KYd.min.js +0 -2088
@@ -1,2148 +0,0 @@
1
- import { al as B, $ as ke, a0 as Re, a4 as Te, aQ as xe, H as Qt, b4 as Me, a as g, D as At, a8 as Ne, d as Oe, u as Le, T as Ve, r as Pt, b5 as Ue, E as Ie, c as k, w as v, b as E, e as X, t as R, i as qe, g as z, k as Be, C as ze, aR as De, Z as je, o as A } from "./revolugo.index.wc.ChJWkzSz.min.js";
2
- import { _ as He } from "./revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.CSkPq_d5.min.js";
3
- import { u as Fe, _ as We, V as D, a as O } from "./revolugo.webcomponentwrapper.BXqP9KYd.min.js";
4
- import { V as ct } from "./revolugo.vicon.BebzkIu9.min.js";
5
- import { V as Ge, a as Ke } from "./revolugo.vbtn.Cw5eo1Xx.min.js";
6
- import { V as Je } from "./revolugo.vtoolbar.DvuDs2yB.min.js";
7
- import { a as kt, m as Ye, V as Ze } from "./revolugo.vcheckboxbtn.Bc0xhmo2.min.js";
8
- import { V as Rt, a as Xe } from "./revolugo.vcard.DlI6Moiv.min.js";
9
- import { V as Qe } from "./revolugo.vskeletonloader.Duv2gHal.min.js";
10
- import { u as tr, V as Tt, m as er } from "./revolugo.vinput.BP0DAwB4.min.js";
11
- function Pe(e) {
12
- try {
13
- if (typeof document < "u") {
14
- window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
15
- sheets: [],
16
- components: []
17
- };
18
- const t = import.meta.url, r = t.slice(0, t.lastIndexOf("/") + 1) + e;
19
- window.REVOLUGO_ELEMENTS_STYLES.sheets.push(r);
20
- for (const s of REVOLUGO_ELEMENTS_STYLES.components)
21
- s(r);
22
- if (e.indexOf("fonts") >= 0) {
23
- const s = document.createElement("link");
24
- s.rel = "stylesheet", linK.href = r, document.head.appendChild(s);
25
- }
26
- }
27
- } catch (t) {
28
- console.error("[revolugo-elements] ", t);
29
- }
30
- }
31
- const rr = (e) => {
32
- switch (e) {
33
- case B.Production:
34
- return "pk_live_x99EPirYIsCyUsRvPAfyhnRp";
35
- case B.Sandbox:
36
- case B.Staging:
37
- case B.CiCd:
38
- case B.Local:
39
- default:
40
- return "pk_test_wXnn2RrefTiOHB0zzxqJr0s8";
41
- }
42
- }, sr = Re({
43
- ...er(),
44
- ...Ne(Ye(), ["inline"])
45
- }, "VCheckbox"), nr = ke()({
46
- name: "VCheckbox",
47
- inheritAttrs: !1,
48
- props: sr(),
49
- emits: {
50
- "update:modelValue": (e) => !0,
51
- "update:focused": (e) => !0
52
- },
53
- setup(e, t) {
54
- let {
55
- attrs: r,
56
- slots: s
57
- } = t;
58
- const n = Te(e, "modelValue"), {
59
- isFocused: i,
60
- focus: o,
61
- blur: c
62
- } = tr(e), l = xe(), p = Qt(() => e.id || `checkbox-${l}`);
63
- return Fe(() => {
64
- const [y, f] = Me(r), S = Tt.filterProps(e), _ = kt.filterProps(e);
65
- return g(Tt, At({
66
- class: ["v-checkbox", e.class]
67
- }, y, S, {
68
- modelValue: n.value,
69
- "onUpdate:modelValue": (q) => n.value = q,
70
- id: p.value,
71
- focused: i.value,
72
- style: e.style
73
- }), {
74
- ...s,
75
- default: (q) => {
76
- let {
77
- id: N,
78
- messagesId: we,
79
- isDisabled: _e,
80
- isReadonly: Ce,
81
- isValid: Ee
82
- } = q;
83
- return g(kt, At(_, {
84
- id: N.value,
85
- "aria-describedby": we.value,
86
- disabled: _e.value,
87
- readonly: Ce.value
88
- }, f, {
89
- error: Ee.value === !1,
90
- modelValue: n.value,
91
- "onUpdate:modelValue": (Ae) => n.value = Ae,
92
- onFocus: o,
93
- onBlur: c
94
- }), s);
95
- }
96
- });
97
- }), {};
98
- }
99
- }), ir = {
100
- amount: { type: Number },
101
- currency: { type: String },
102
- disabled: {
103
- default: !1,
104
- type: Boolean
105
- },
106
- loading: {
107
- default: !1,
108
- type: Boolean
109
- },
110
- token: { required: !0, type: String },
111
- withAction: {
112
- default: !1,
113
- type: Boolean
114
- },
115
- withTerms: {
116
- default: !1,
117
- type: Boolean
118
- }
119
- };
120
- var te = "basil", or = function(t) {
121
- return t === 3 ? "v3" : t;
122
- }, ee = "https://js.stripe.com", ar = "".concat(ee, "/").concat(te, "/stripe.js"), lr = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, ur = /^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/;
123
- var cr = function(t) {
124
- return lr.test(t) || ur.test(t);
125
- }, dr = function() {
126
- for (var t = document.querySelectorAll('script[src^="'.concat(ee, '"]')), r = 0; r < t.length; r++) {
127
- var s = t[r];
128
- if (cr(s.src))
129
- return s;
130
- }
131
- return null;
132
- }, xt = function(t) {
133
- var r = "", s = document.createElement("script");
134
- s.src = "".concat(ar).concat(r);
135
- var n = document.head || document.body;
136
- if (!n)
137
- throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");
138
- return n.appendChild(s), s;
139
- }, pr = function(t, r) {
140
- !t || !t._registerWrapper || t._registerWrapper({
141
- name: "stripe-js",
142
- version: "7.5.0",
143
- startTime: r
144
- });
145
- }, j = null, Q = null, tt = null, hr = function(t) {
146
- return function(r) {
147
- t(new Error("Failed to load Stripe.js", {
148
- cause: r
149
- }));
150
- };
151
- }, mr = function(t, r) {
152
- return function() {
153
- window.Stripe ? t(window.Stripe) : r(new Error("Stripe.js not available"));
154
- };
155
- }, yr = function(t) {
156
- return j !== null ? j : (j = new Promise(function(r, s) {
157
- if (typeof window > "u" || typeof document > "u") {
158
- r(null);
159
- return;
160
- }
161
- if (window.Stripe) {
162
- r(window.Stripe);
163
- return;
164
- }
165
- try {
166
- var n = dr();
167
- if (!(n && t)) {
168
- if (!n)
169
- n = xt(t);
170
- else if (n && tt !== null && Q !== null) {
171
- var i;
172
- n.removeEventListener("load", tt), n.removeEventListener("error", Q), (i = n.parentNode) === null || i === void 0 || i.removeChild(n), n = xt(t);
173
- }
174
- }
175
- tt = mr(r, s), Q = hr(s), n.addEventListener("load", tt), n.addEventListener("error", Q);
176
- } catch (o) {
177
- s(o);
178
- return;
179
- }
180
- }), j.catch(function(r) {
181
- return j = null, Promise.reject(r);
182
- }));
183
- }, fr = function(t, r, s) {
184
- if (t === null)
185
- return null;
186
- var n = r[0], i = n.match(/^pk_test/), o = or(t.version), c = te;
187
- 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"));
188
- var l = t.apply(void 0, r);
189
- return pr(l, s), l;
190
- }, H, re = !1, se = function() {
191
- return H || (H = yr(null).catch(function(t) {
192
- return H = null, Promise.reject(t);
193
- }), H);
194
- };
195
- Promise.resolve().then(function() {
196
- return se();
197
- }).catch(function(e) {
198
- re || console.warn(e);
199
- });
200
- var vr = function() {
201
- for (var t = arguments.length, r = new Array(t), s = 0; s < t; s++)
202
- r[s] = arguments[s];
203
- re = !0;
204
- var n = Date.now();
205
- return se().then(function(i) {
206
- return fr(i, r, n);
207
- });
208
- };
209
- /**
210
- * @license
211
- * Copyright 2017 Google LLC
212
- * SPDX-License-Identifier: BSD-3-Clause
213
- */
214
- const ne = (e) => (t) => typeof t == "function" ? ((r, s) => (customElements.define(r, s), s))(e, t) : ((r, s) => {
215
- const { kind: n, elements: i } = s;
216
- return { kind: n, elements: i, finisher(o) {
217
- customElements.define(r, o);
218
- } };
219
- })(e, t);
220
- /**
221
- * @license
222
- * Copyright 2017 Google LLC
223
- * SPDX-License-Identifier: BSD-3-Clause
224
- */
225
- const gr = (e, t) => t.kind === "method" && t.descriptor && !("value" in t.descriptor) ? { ...t, finisher(r) {
226
- r.createProperty(t.key, e);
227
- } } : { kind: "field", key: Symbol(), placement: "own", descriptor: {}, originalKey: t.key, initializer() {
228
- typeof t.initializer == "function" && (this[t.key] = t.initializer.call(this));
229
- }, finisher(r) {
230
- r.createProperty(t.key, e);
231
- } }, br = (e, t, r) => {
232
- t.constructor.createProperty(r, e);
233
- };
234
- function u(e) {
235
- return (t, r) => r !== void 0 ? br(e, t, r) : gr(e, t);
236
- }
237
- /**
238
- * @license
239
- * Copyright 2021 Google LLC
240
- * SPDX-License-Identifier: BSD-3-Clause
241
- */
242
- var dt;
243
- ((dt = window.HTMLSlotElement) === null || dt === void 0 ? void 0 : dt.prototype.assignedElements) != null;
244
- var Mt = !0;
245
- function C(e, t, r) {
246
- if (typeof r?.value != "function")
247
- throw new TypeError(`Only methods can be decorated with @bound. <${t ?? e.name}> is not a method!`);
248
- return {
249
- configurable: Mt,
250
- get() {
251
- const s = r.value.bind(this);
252
- return Object.defineProperty(this, t, { value: s, configurable: Mt, writable: !0 }), s;
253
- }
254
- };
255
- }
256
- /**
257
- * @license
258
- * Copyright 2019 Google LLC
259
- * SPDX-License-Identifier: BSD-3-Clause
260
- */
261
- 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();
262
- let ie = class {
263
- constructor(t, r, s) {
264
- if (this._$cssResult$ = !0, s !== wt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
265
- this.cssText = t, this.t = r;
266
- }
267
- get styleSheet() {
268
- let t = this.o;
269
- const r = this.t;
270
- if ($t && t === void 0) {
271
- const s = r !== void 0 && r.length === 1;
272
- s && (t = Nt.get(r)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && Nt.set(r, t));
273
- }
274
- return t;
275
- }
276
- toString() {
277
- return this.cssText;
278
- }
279
- };
280
- const Sr = (e) => new ie(typeof e == "string" ? e : e + "", void 0, wt), _t = (e, ...t) => {
281
- const r = e.length === 1 ? e[0] : t.reduce((s, n, i) => s + ((o) => {
282
- if (o._$cssResult$ === !0) return o.cssText;
283
- if (typeof o == "number") return o;
284
- 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.");
285
- })(n) + e[i + 1], e[0]);
286
- return new ie(r, e, wt);
287
- }, $r = (e, t) => {
288
- $t ? e.adoptedStyleSheets = t.map((r) => r instanceof CSSStyleSheet ? r : r.styleSheet) : t.forEach((r) => {
289
- const s = document.createElement("style"), n = rt.litNonce;
290
- n !== void 0 && s.setAttribute("nonce", n), s.textContent = r.cssText, e.appendChild(s);
291
- });
292
- }, Ot = $t ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
293
- let r = "";
294
- for (const s of t.cssRules) r += s.cssText;
295
- return Sr(r);
296
- })(e) : e;
297
- /**
298
- * @license
299
- * Copyright 2017 Google LLC
300
- * SPDX-License-Identifier: BSD-3-Clause
301
- */
302
- var pt;
303
- const at = window, Lt = at.trustedTypes, wr = Lt ? Lt.emptyScript : "", Vt = at.reactiveElementPolyfillSupport, gt = { toAttribute(e, t) {
304
- switch (t) {
305
- case Boolean:
306
- e = e ? wr : null;
307
- break;
308
- case Object:
309
- case Array:
310
- e = e == null ? e : JSON.stringify(e);
311
- }
312
- return e;
313
- }, fromAttribute(e, t) {
314
- let r = e;
315
- switch (t) {
316
- case Boolean:
317
- r = e !== null;
318
- break;
319
- case Number:
320
- r = e === null ? null : Number(e);
321
- break;
322
- case Object:
323
- case Array:
324
- try {
325
- r = JSON.parse(e);
326
- } catch {
327
- r = null;
328
- }
329
- }
330
- return r;
331
- } }, oe = (e, t) => t !== e && (t == t || e == e), ht = { attribute: !0, type: String, converter: gt, reflect: !1, hasChanged: oe }, bt = "finalized";
332
- let L = class extends HTMLElement {
333
- constructor() {
334
- super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this._$Eu();
335
- }
336
- static addInitializer(t) {
337
- var r;
338
- this.finalize(), ((r = this.h) !== null && r !== void 0 ? r : this.h = []).push(t);
339
- }
340
- static get observedAttributes() {
341
- this.finalize();
342
- const t = [];
343
- return this.elementProperties.forEach((r, s) => {
344
- const n = this._$Ep(s, r);
345
- n !== void 0 && (this._$Ev.set(n, s), t.push(n));
346
- }), t;
347
- }
348
- static createProperty(t, r = ht) {
349
- if (r.state && (r.attribute = !1), this.finalize(), this.elementProperties.set(t, r), !r.noAccessor && !this.prototype.hasOwnProperty(t)) {
350
- const s = typeof t == "symbol" ? Symbol() : "__" + t, n = this.getPropertyDescriptor(t, s, r);
351
- n !== void 0 && Object.defineProperty(this.prototype, t, n);
352
- }
353
- }
354
- static getPropertyDescriptor(t, r, s) {
355
- return { get() {
356
- return this[r];
357
- }, set(n) {
358
- const i = this[t];
359
- this[r] = n, this.requestUpdate(t, i, s);
360
- }, configurable: !0, enumerable: !0 };
361
- }
362
- static getPropertyOptions(t) {
363
- return this.elementProperties.get(t) || ht;
364
- }
365
- static finalize() {
366
- if (this.hasOwnProperty(bt)) return !1;
367
- this[bt] = !0;
368
- const t = Object.getPrototypeOf(this);
369
- 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")) {
370
- const r = this.properties, s = [...Object.getOwnPropertyNames(r), ...Object.getOwnPropertySymbols(r)];
371
- for (const n of s) this.createProperty(n, r[n]);
372
- }
373
- return this.elementStyles = this.finalizeStyles(this.styles), !0;
374
- }
375
- static finalizeStyles(t) {
376
- const r = [];
377
- if (Array.isArray(t)) {
378
- const s = new Set(t.flat(1 / 0).reverse());
379
- for (const n of s) r.unshift(Ot(n));
380
- } else t !== void 0 && r.push(Ot(t));
381
- return r;
382
- }
383
- static _$Ep(t, r) {
384
- const s = r.attribute;
385
- return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
386
- }
387
- _$Eu() {
388
- var t;
389
- 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));
390
- }
391
- addController(t) {
392
- var r, s;
393
- ((r = this._$ES) !== null && r !== void 0 ? r : this._$ES = []).push(t), this.renderRoot !== void 0 && this.isConnected && ((s = t.hostConnected) === null || s === void 0 || s.call(t));
394
- }
395
- removeController(t) {
396
- var r;
397
- (r = this._$ES) === null || r === void 0 || r.splice(this._$ES.indexOf(t) >>> 0, 1);
398
- }
399
- _$Eg() {
400
- this.constructor.elementProperties.forEach((t, r) => {
401
- this.hasOwnProperty(r) && (this._$Ei.set(r, this[r]), delete this[r]);
402
- });
403
- }
404
- createRenderRoot() {
405
- var t;
406
- const r = (t = this.shadowRoot) !== null && t !== void 0 ? t : this.attachShadow(this.constructor.shadowRootOptions);
407
- return $r(r, this.constructor.elementStyles), r;
408
- }
409
- connectedCallback() {
410
- var t;
411
- this.renderRoot === void 0 && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$ES) === null || t === void 0 || t.forEach((r) => {
412
- var s;
413
- return (s = r.hostConnected) === null || s === void 0 ? void 0 : s.call(r);
414
- });
415
- }
416
- enableUpdating(t) {
417
- }
418
- disconnectedCallback() {
419
- var t;
420
- (t = this._$ES) === null || t === void 0 || t.forEach((r) => {
421
- var s;
422
- return (s = r.hostDisconnected) === null || s === void 0 ? void 0 : s.call(r);
423
- });
424
- }
425
- attributeChangedCallback(t, r, s) {
426
- this._$AK(t, s);
427
- }
428
- _$EO(t, r, s = ht) {
429
- var n;
430
- const i = this.constructor._$Ep(t, s);
431
- if (i !== void 0 && s.reflect === !0) {
432
- const o = (((n = s.converter) === null || n === void 0 ? void 0 : n.toAttribute) !== void 0 ? s.converter : gt).toAttribute(r, s.type);
433
- this._$El = t, o == null ? this.removeAttribute(i) : this.setAttribute(i, o), this._$El = null;
434
- }
435
- }
436
- _$AK(t, r) {
437
- var s;
438
- const n = this.constructor, i = n._$Ev.get(t);
439
- if (i !== void 0 && this._$El !== i) {
440
- 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;
441
- this._$El = i, this[i] = c.fromAttribute(r, o.type), this._$El = null;
442
- }
443
- }
444
- requestUpdate(t, r, s) {
445
- let n = !0;
446
- t !== void 0 && (((s = s || this.constructor.getPropertyOptions(t)).hasChanged || oe)(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());
447
- }
448
- async _$Ej() {
449
- this.isUpdatePending = !0;
450
- try {
451
- await this._$E_;
452
- } catch (r) {
453
- Promise.reject(r);
454
- }
455
- const t = this.scheduleUpdate();
456
- return t != null && await t, !this.isUpdatePending;
457
- }
458
- scheduleUpdate() {
459
- return this.performUpdate();
460
- }
461
- performUpdate() {
462
- var t;
463
- if (!this.isUpdatePending) return;
464
- this.hasUpdated, this._$Ei && (this._$Ei.forEach((n, i) => this[i] = n), this._$Ei = void 0);
465
- let r = !1;
466
- const s = this._$AL;
467
- try {
468
- r = this.shouldUpdate(s), r ? (this.willUpdate(s), (t = this._$ES) === null || t === void 0 || t.forEach((n) => {
469
- var i;
470
- return (i = n.hostUpdate) === null || i === void 0 ? void 0 : i.call(n);
471
- }), this.update(s)) : this._$Ek();
472
- } catch (n) {
473
- throw r = !1, this._$Ek(), n;
474
- }
475
- r && this._$AE(s);
476
- }
477
- willUpdate(t) {
478
- }
479
- _$AE(t) {
480
- var r;
481
- (r = this._$ES) === null || r === void 0 || r.forEach((s) => {
482
- var n;
483
- return (n = s.hostUpdated) === null || n === void 0 ? void 0 : n.call(s);
484
- }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
485
- }
486
- _$Ek() {
487
- this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
488
- }
489
- get updateComplete() {
490
- return this.getUpdateComplete();
491
- }
492
- getUpdateComplete() {
493
- return this._$E_;
494
- }
495
- shouldUpdate(t) {
496
- return !0;
497
- }
498
- update(t) {
499
- this._$EC !== void 0 && (this._$EC.forEach((r, s) => this._$EO(s, this[s], r)), this._$EC = void 0), this._$Ek();
500
- }
501
- updated(t) {
502
- }
503
- firstUpdated(t) {
504
- }
505
- };
506
- L[bt] = !0, L.elementProperties = /* @__PURE__ */ new Map(), L.elementStyles = [], L.shadowRootOptions = { mode: "open" }, Vt?.({ ReactiveElement: L }), ((pt = at.reactiveElementVersions) !== null && pt !== void 0 ? pt : at.reactiveElementVersions = []).push("1.6.3");
507
- /**
508
- * @license
509
- * Copyright 2017 Google LLC
510
- * SPDX-License-Identifier: BSD-3-Clause
511
- */
512
- var mt;
513
- const lt = window, V = lt.trustedTypes, Ut = V ? V.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, St = "$lit$", P = `lit$${(Math.random() + "").slice(9)}$`, ae = "?" + P, _r = `<${ae}>`, M = document, K = () => M.createComment(""), J = (e) => e === null || typeof e != "object" && typeof e != "function", le = Array.isArray, Cr = (e) => le(e) || typeof e?.[Symbol.iterator] == "function", yt = `[
514
- \f\r]`, F = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, It = /-->/g, qt = />/g, T = RegExp(`>|${yt}(?:([^\\s"'>=/]+)(${yt}*=${yt}*(?:[^
515
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Bt = /'/g, zt = /"/g, ue = /^(?:script|style|textarea|title)$/i, Er = (e) => (t, ...r) => ({ _$litType$: e, strings: t, values: r }), Ar = Er(1), U = Symbol.for("lit-noChange"), b = Symbol.for("lit-nothing"), Dt = /* @__PURE__ */ new WeakMap(), x = M.createTreeWalker(M, 129, null, !1);
516
- function ce(e, t) {
517
- if (!Array.isArray(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
518
- return Ut !== void 0 ? Ut.createHTML(t) : t;
519
- }
520
- const Pr = (e, t) => {
521
- const r = e.length - 1, s = [];
522
- let n, i = t === 2 ? "<svg>" : "", o = F;
523
- for (let c = 0; c < r; c++) {
524
- const l = e[c];
525
- let p, y, f = -1, S = 0;
526
- for (; S < l.length && (o.lastIndex = S, y = o.exec(l), y !== null); ) S = o.lastIndex, o === F ? y[1] === "!--" ? o = It : y[1] !== void 0 ? o = qt : y[2] !== void 0 ? (ue.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] === '"' ? zt : Bt) : o === zt || o === Bt ? o = T : o === It || o === qt ? o = F : (o = T, n = void 0);
527
- const _ = o === T && e[c + 1].startsWith("/>") ? " " : "";
528
- i += o === F ? l + _r : f >= 0 ? (s.push(p), l.slice(0, f) + St + l.slice(f) + P + _) : l + P + (f === -2 ? (s.push(void 0), c) : _);
529
- }
530
- return [ce(e, i + (e[r] || "<?>") + (t === 2 ? "</svg>" : "")), s];
531
- };
532
- class Y {
533
- constructor({ strings: t, _$litType$: r }, s) {
534
- let n;
535
- this.parts = [];
536
- let i = 0, o = 0;
537
- const c = t.length - 1, l = this.parts, [p, y] = Pr(t, r);
538
- if (this.el = Y.createElement(p, s), x.currentNode = this.el.content, r === 2) {
539
- const f = this.el.content, S = f.firstChild;
540
- S.remove(), f.append(...S.childNodes);
541
- }
542
- for (; (n = x.nextNode()) !== null && l.length < c; ) {
543
- if (n.nodeType === 1) {
544
- if (n.hasAttributes()) {
545
- const f = [];
546
- for (const S of n.getAttributeNames()) if (S.endsWith(St) || S.startsWith(P)) {
547
- const _ = y[o++];
548
- if (f.push(S), _ !== void 0) {
549
- const q = n.getAttribute(_.toLowerCase() + St).split(P), N = /([.?@])?(.*)/.exec(_);
550
- l.push({ type: 1, index: i, name: N[2], strings: q, ctor: N[1] === "." ? Rr : N[1] === "?" ? xr : N[1] === "@" ? Mr : ut });
551
- } else l.push({ type: 6, index: i });
552
- }
553
- for (const S of f) n.removeAttribute(S);
554
- }
555
- if (ue.test(n.tagName)) {
556
- const f = n.textContent.split(P), S = f.length - 1;
557
- if (S > 0) {
558
- n.textContent = V ? V.emptyScript : "";
559
- for (let _ = 0; _ < S; _++) n.append(f[_], K()), x.nextNode(), l.push({ type: 2, index: ++i });
560
- n.append(f[S], K());
561
- }
562
- }
563
- } else if (n.nodeType === 8) if (n.data === ae) l.push({ type: 2, index: i });
564
- else {
565
- let f = -1;
566
- for (; (f = n.data.indexOf(P, f + 1)) !== -1; ) l.push({ type: 7, index: i }), f += P.length - 1;
567
- }
568
- i++;
569
- }
570
- }
571
- static createElement(t, r) {
572
- const s = M.createElement("template");
573
- return s.innerHTML = t, s;
574
- }
575
- }
576
- function I(e, t, r = e, s) {
577
- var n, i, o, c;
578
- if (t === U) return t;
579
- let l = s !== void 0 ? (n = r._$Co) === null || n === void 0 ? void 0 : n[s] : r._$Cl;
580
- const p = J(t) ? void 0 : t._$litDirective$;
581
- 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;
582
- }
583
- class kr {
584
- constructor(t, r) {
585
- this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = r;
586
- }
587
- get parentNode() {
588
- return this._$AM.parentNode;
589
- }
590
- get _$AU() {
591
- return this._$AM._$AU;
592
- }
593
- u(t) {
594
- var r;
595
- const { el: { content: s }, parts: n } = this._$AD, i = ((r = t?.creationScope) !== null && r !== void 0 ? r : M).importNode(s, !0);
596
- x.currentNode = i;
597
- let o = x.nextNode(), c = 0, l = 0, p = n[0];
598
- for (; p !== void 0; ) {
599
- if (c === p.index) {
600
- let y;
601
- 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 Nr(o, this, t)), this._$AV.push(y), p = n[++l];
602
- }
603
- c !== p?.index && (o = x.nextNode(), c++);
604
- }
605
- return x.currentNode = M, i;
606
- }
607
- v(t) {
608
- let r = 0;
609
- 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++;
610
- }
611
- }
612
- class Z {
613
- constructor(t, r, s, n) {
614
- var i;
615
- 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;
616
- }
617
- get _$AU() {
618
- var t, r;
619
- return (r = (t = this._$AM) === null || t === void 0 ? void 0 : t._$AU) !== null && r !== void 0 ? r : this._$Cp;
620
- }
621
- get parentNode() {
622
- let t = this._$AA.parentNode;
623
- const r = this._$AM;
624
- return r !== void 0 && t?.nodeType === 11 && (t = r.parentNode), t;
625
- }
626
- get startNode() {
627
- return this._$AA;
628
- }
629
- get endNode() {
630
- return this._$AB;
631
- }
632
- _$AI(t, r = this) {
633
- 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) : Cr(t) ? this.T(t) : this._(t);
634
- }
635
- k(t) {
636
- return this._$AA.parentNode.insertBefore(t, this._$AB);
637
- }
638
- $(t) {
639
- this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
640
- }
641
- _(t) {
642
- this._$AH !== b && J(this._$AH) ? this._$AA.nextSibling.data = t : this.$(M.createTextNode(t)), this._$AH = t;
643
- }
644
- g(t) {
645
- var r;
646
- const { values: s, _$litType$: n } = t, i = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = Y.createElement(ce(n.h, n.h[0]), this.options)), n);
647
- if (((r = this._$AH) === null || r === void 0 ? void 0 : r._$AD) === i) this._$AH.v(s);
648
- else {
649
- const o = new kr(i, this), c = o.u(this.options);
650
- o.v(s), this.$(c), this._$AH = o;
651
- }
652
- }
653
- _$AC(t) {
654
- let r = Dt.get(t.strings);
655
- return r === void 0 && Dt.set(t.strings, r = new Y(t)), r;
656
- }
657
- T(t) {
658
- le(this._$AH) || (this._$AH = [], this._$AR());
659
- const r = this._$AH;
660
- let s, n = 0;
661
- 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++;
662
- n < r.length && (this._$AR(s && s._$AB.nextSibling, n), r.length = n);
663
- }
664
- _$AR(t = this._$AA.nextSibling, r) {
665
- var s;
666
- for ((s = this._$AP) === null || s === void 0 || s.call(this, !1, !0, r); t && t !== this._$AB; ) {
667
- const n = t.nextSibling;
668
- t.remove(), t = n;
669
- }
670
- }
671
- setConnected(t) {
672
- var r;
673
- this._$AM === void 0 && (this._$Cp = t, (r = this._$AP) === null || r === void 0 || r.call(this, t));
674
- }
675
- }
676
- class ut {
677
- constructor(t, r, s, n, i) {
678
- 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;
679
- }
680
- get tagName() {
681
- return this.element.tagName;
682
- }
683
- get _$AU() {
684
- return this._$AM._$AU;
685
- }
686
- _$AI(t, r = this, s, n) {
687
- const i = this.strings;
688
- let o = !1;
689
- if (i === void 0) t = I(this, t, r, 0), o = !J(t) || t !== this._$AH && t !== U, o && (this._$AH = t);
690
- else {
691
- const c = t;
692
- let l, p;
693
- 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;
694
- }
695
- o && !n && this.j(t);
696
- }
697
- j(t) {
698
- t === b ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
699
- }
700
- }
701
- class Rr extends ut {
702
- constructor() {
703
- super(...arguments), this.type = 3;
704
- }
705
- j(t) {
706
- this.element[this.name] = t === b ? void 0 : t;
707
- }
708
- }
709
- const Tr = V ? V.emptyScript : "";
710
- class xr extends ut {
711
- constructor() {
712
- super(...arguments), this.type = 4;
713
- }
714
- j(t) {
715
- t && t !== b ? this.element.setAttribute(this.name, Tr) : this.element.removeAttribute(this.name);
716
- }
717
- }
718
- class Mr extends ut {
719
- constructor(t, r, s, n, i) {
720
- super(t, r, s, n, i), this.type = 5;
721
- }
722
- _$AI(t, r = this) {
723
- var s;
724
- if ((t = (s = I(this, t, r, 0)) !== null && s !== void 0 ? s : b) === U) return;
725
- 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);
726
- i && this.element.removeEventListener(this.name, this, n), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
727
- }
728
- handleEvent(t) {
729
- var r, s;
730
- 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);
731
- }
732
- }
733
- class Nr {
734
- constructor(t, r, s) {
735
- this.element = t, this.type = 6, this._$AN = void 0, this._$AM = r, this.options = s;
736
- }
737
- get _$AU() {
738
- return this._$AM._$AU;
739
- }
740
- _$AI(t) {
741
- I(this, t);
742
- }
743
- }
744
- const jt = lt.litHtmlPolyfillSupport;
745
- jt?.(Y, Z), ((mt = lt.litHtmlVersions) !== null && mt !== void 0 ? mt : lt.litHtmlVersions = []).push("2.8.0");
746
- const Or = (e, t, r) => {
747
- var s, n;
748
- const i = (s = r?.renderBefore) !== null && s !== void 0 ? s : t;
749
- let o = i._$litPart$;
750
- if (o === void 0) {
751
- const c = (n = r?.renderBefore) !== null && n !== void 0 ? n : null;
752
- i._$litPart$ = o = new Z(t.insertBefore(K(), c), c, void 0, r ?? {});
753
- }
754
- return o._$AI(e), o;
755
- };
756
- /**
757
- * @license
758
- * Copyright 2017 Google LLC
759
- * SPDX-License-Identifier: BSD-3-Clause
760
- */
761
- var ft, vt;
762
- class G extends L {
763
- constructor() {
764
- super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
765
- }
766
- createRenderRoot() {
767
- var t, r;
768
- const s = super.createRenderRoot();
769
- return (t = (r = this.renderOptions).renderBefore) !== null && t !== void 0 || (r.renderBefore = s.firstChild), s;
770
- }
771
- update(t) {
772
- const r = this.render();
773
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Or(r, this.renderRoot, this.renderOptions);
774
- }
775
- connectedCallback() {
776
- var t;
777
- super.connectedCallback(), (t = this._$Do) === null || t === void 0 || t.setConnected(!0);
778
- }
779
- disconnectedCallback() {
780
- var t;
781
- super.disconnectedCallback(), (t = this._$Do) === null || t === void 0 || t.setConnected(!1);
782
- }
783
- render() {
784
- return U;
785
- }
786
- }
787
- G.finalized = !0, G._$litElement$ = !0, (ft = globalThis.litElementHydrateSupport) === null || ft === void 0 || ft.call(globalThis, { LitElement: G });
788
- const Ht = globalThis.litElementPolyfillSupport;
789
- Ht?.({ LitElement: G });
790
- ((vt = globalThis.litElementVersions) !== null && vt !== void 0 ? vt : globalThis.litElementVersions = []).push("3.3.3");
791
- /**
792
- * @license
793
- * Copyright 2018 Google LLC
794
- * SPDX-License-Identifier: BSD-3-Clause
795
- */
796
- const Lr = (e) => e ?? b, Vr = /[A-ZÀ-ÖÙ-Ý]+/g, Ur = /[a-zà-öù-ý]+/g;
797
- function Ir(e) {
798
- const t = e.replace(Vr, r).match(Ur);
799
- return t ? t.join("-") : "";
800
- function r(s) {
801
- return " " + (s.length > 2 ? s.slice(0, -1) + " " + s.slice(-1) : s).toLowerCase();
802
- }
803
- }
804
- function qr() {
805
- const e = {};
806
- return {
807
- has: (t) => Object.hasOwnProperty.call(e, t),
808
- get: (t) => e[t],
809
- set: (t, r) => {
810
- e[t] = r;
811
- }
812
- };
813
- }
814
- function Br(e, t) {
815
- const r = qr();
816
- return (...s) => {
817
- const n = e(...s);
818
- return r.has(n) || r.set(n, t(...s)), r.get(n);
819
- };
820
- }
821
- var zr = (e) => e, de = Br(zr, Ir), Dr = (e) => (t) => e.includes(t), jr = Dr(["paymentMethod", "source", "token"]);
822
- async function Hr(e) {
823
- const { ok: t, statusText: r } = e;
824
- if (!t)
825
- throw new Error(r);
826
- return e;
827
- }
828
- function Fr(e) {
829
- return "addInitializer" in e.constructor;
830
- }
831
- var W = class {
832
- constructor(e) {
833
- if (this.host = e, this.values = /* @__PURE__ */ new Map(), W.instances.has(e))
834
- return W.instances.get(e);
835
- e.addController(this), W.instances.set(e, this);
836
- }
837
- static for(e) {
838
- return new W(e);
839
- }
840
- hostConnected() {
841
- }
842
- set(e, t) {
843
- const r = this.values.get(e);
844
- this.values.set(e, t), Fr(this.host) ? this.host.requestUpdate(e, r) : this.host.requestUpdate();
845
- }
846
- }, Ct = W;
847
- Ct.instances = /* @__PURE__ */ new Map();
848
- function d(e, t) {
849
- const r = e.constructor;
850
- r.addInitializer((s) => {
851
- const n = Ct.for(s);
852
- Object.defineProperty(s.constructor.prototype, t, {
853
- enumerable: !0,
854
- configurable: !0,
855
- get() {
856
- return n.values.get(t);
857
- },
858
- set(i) {
859
- n.values.has(t) || n.values.set(t, i);
860
- }
861
- }), r.createProperty(t, {
862
- ...r.getPropertyOptions(t),
863
- noAccessor: !0
864
- });
865
- });
866
- }
867
- d.set = function(e, t) {
868
- const r = Ct.for(e);
869
- for (const [s, n] of Object.entries(t))
870
- r.set(s, n);
871
- };
872
- var Wr = class extends Event {
873
- constructor(e, t, r, s) {
874
- super(`${s ?? e.toLowerCase()}-changed`), this.key = e, this.oldValue = t, this.value = r, this.detail = { value: r };
875
- }
876
- }, st = class {
877
- constructor(e) {
878
- if (this.host = e, this.cache = /* @__PURE__ */ new Map(), st.instances.has(e))
879
- return st.instances.get(e);
880
- e.addController(this), st.instances.set(e, this);
881
- }
882
- hostUpdated() {
883
- for (const [e, t] of this.cache) {
884
- const r = this.host[e], { attribute: s } = this.host.constructor.getPropertyOptions(e) ?? {}, n = typeof s == "string" ? s : null;
885
- this.cache.set(e, r), this.host.dispatchEvent(new Wr(e, t, r, n));
886
- }
887
- }
888
- }, pe = st;
889
- pe.instances = /* @__PURE__ */ new Map();
890
- function w(e, t) {
891
- e.constructor.addInitializer((r) => {
892
- new pe(r).cache.set(t, r[t]);
893
- });
894
- }
895
- function Gr(e) {
896
- return (t, r, s) => {
897
- const n = s.value;
898
- return s.value = e(n), s;
899
- };
900
- }
901
- var Et = Gr(function(e) {
902
- const { name: t } = e;
903
- return async function(...r) {
904
- if (!this.stripe)
905
- throw new Error(`<${this.constructor.is}>: Stripe must be initialized before calling ${t}.`);
906
- return e.call(this, ...r).then(this.handleResponse);
907
- };
908
- });
909
- function Ft(e) {
910
- if (e.error)
911
- throw e.error;
912
- return e;
913
- }
914
- var Kr = Object.defineProperty, Jr = Object.getOwnPropertyDescriptor, a = (e, t, r, s) => {
915
- for (var n = s > 1 ? void 0 : s ? Jr(t, r) : t, i = e.length - 1, o; i >= 0; i--)
916
- (o = e[i]) && (n = (s ? o(t, r, n) : o(n)) || n);
917
- return s && n && Kr(t, r, n), n;
918
- }, he = (e, t, r) => {
919
- if (!t.has(e))
920
- throw TypeError("Cannot " + r);
921
- }, Wt = (e, t, r) => (he(e, t, "read from private field"), r ? r.call(e) : t.get(e)), Gt = (e, t, r) => {
922
- if (t.has(e))
923
- throw TypeError("Cannot add the same private member more than once");
924
- t instanceof WeakSet ? t.add(e) : t.set(e, r);
925
- }, Kt = (e, t, r, s) => (he(e, t, "write to private field"), t.set(e, r), r);
926
- function Jt() {
927
- return (Date.now() + Math.random() * 1e3).toString(36).substr(0, 8);
928
- }
929
- var Yr = class {
930
- constructor(e, t) {
931
- 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-${Jt()}`;
932
- }
933
- get mount() {
934
- return document.getElementById(this.mountId);
935
- }
936
- hostUpdated() {
937
- !this.initialized && this.options?.autoInitialize !== !1 && this.init();
938
- }
939
- hostDisconnected() {
940
- this.destroyMountPoints();
941
- }
942
- resetMountId() {
943
- return `${this.options?.mountPrefix ?? this.host.localName}-mount-point-${Jt()}`;
944
- }
945
- createMountPoint() {
946
- const e = document.createElement("div");
947
- return e.id = this.mountId, e.classList.add(`${this.host.tagName.toLowerCase()}-mount`), e;
948
- }
949
- createSlot(e) {
950
- const t = document.createElement("slot");
951
- return t.slot = e, t.name = e, t;
952
- }
953
- appendTemplate(e, t = this.createMountPoint()) {
954
- return e.appendChild(t), t;
955
- }
956
- initMountPoints() {
957
- this.initShadowMountPoints();
958
- }
959
- destroyMountPoints() {
960
- for (const e of this.shadowHosts)
961
- for (const t of e.querySelectorAll(`[slot="${this.slotName}"][name="${this.slotName}"]`))
962
- t.remove();
963
- this.mount && this.mount.remove(), this.mountId = this.resetMountId();
964
- }
965
- initShadowMountPoints() {
966
- let e = this.host;
967
- for (this.shadowHosts = [this.host]; e = e.getRootNode().host; )
968
- this.shadowHosts.push(e);
969
- const { shadowHosts: t, slotName: r } = this, s = [...t], n = s.pop();
970
- if (!n.querySelector(`[slot="${r}"]`)) {
971
- const o = document.createElement("div");
972
- o.slot = r, n.appendChild(o);
973
- }
974
- const i = n.querySelector(`[slot="${r}"]`);
975
- this.appendTemplate(i), s.forEach((o) => this.appendTemplate(o, this.createSlot(r)));
976
- }
977
- init() {
978
- this.destroyMountPoints(), this.initMountPoints(), this.initialized = !0;
979
- }
980
- };
981
- function nt(e) {
982
- "@babel/helpers - typeof";
983
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? nt = function(t) {
984
- return typeof t;
985
- } : nt = function(t) {
986
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
987
- }, nt(e);
988
- }
989
- var me = "https://js.stripe.com/v3", Zr = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, Yt = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", Xr = function() {
990
- for (var t = document.querySelectorAll('script[src^="'.concat(me, '"]')), r = 0; r < t.length; r++) {
991
- var s = t[r];
992
- if (Zr.test(s.src))
993
- return s;
994
- }
995
- return null;
996
- }, Qr = function(t) {
997
- var r = t && !t.advancedFraudSignals ? "?advancedFraudSignals=false" : "", s = document.createElement("script");
998
- s.src = "".concat(me).concat(r);
999
- var n = document.head || document.body;
1000
- if (!n)
1001
- throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");
1002
- return n.appendChild(s), s;
1003
- }, ts = function(t, r) {
1004
- !t || !t._registerWrapper || t._registerWrapper({
1005
- name: "stripe-js",
1006
- version: "1.32.0",
1007
- startTime: r
1008
- });
1009
- }, et = null, es = function(t) {
1010
- return et !== null || (et = new Promise(function(r, s) {
1011
- if (typeof window > "u") {
1012
- r(null);
1013
- return;
1014
- }
1015
- if (window.Stripe && t && console.warn(Yt), window.Stripe) {
1016
- r(window.Stripe);
1017
- return;
1018
- }
1019
- try {
1020
- var n = Xr();
1021
- n && t ? console.warn(Yt) : n || (n = Qr(t)), n.addEventListener("load", function() {
1022
- window.Stripe ? r(window.Stripe) : s(new Error("Stripe.js not available"));
1023
- }), n.addEventListener("error", function() {
1024
- s(new Error("Failed to load Stripe.js"));
1025
- });
1026
- } catch (i) {
1027
- s(i);
1028
- return;
1029
- }
1030
- })), et;
1031
- }, rs = function(t, r, s) {
1032
- if (t === null)
1033
- return null;
1034
- var n = t.apply(void 0, r);
1035
- return ts(n, s), n;
1036
- }, ss = function(t) {
1037
- var r = `invalid load parameters; expected object of shape
1038
-
1039
- {advancedFraudSignals: boolean}
1040
-
1041
- but received
1042
-
1043
- `.concat(JSON.stringify(t), `
1044
- `);
1045
- if (t === null || nt(t) !== "object")
1046
- throw new Error(r);
1047
- if (Object.keys(t).length === 1 && typeof t.advancedFraudSignals == "boolean")
1048
- return t;
1049
- throw new Error(r);
1050
- }, ye, fe = !1, ve = function() {
1051
- for (var t = arguments.length, r = new Array(t), s = 0; s < t; s++)
1052
- r[s] = arguments[s];
1053
- fe = !0;
1054
- var n = Date.now();
1055
- return es(ye).then(function(i) {
1056
- return rs(i, r, n);
1057
- });
1058
- };
1059
- ve.setLoadParameters = function(e) {
1060
- if (fe)
1061
- throw new Error("You cannot change load parameters after calling loadStripe");
1062
- ye = ss(e);
1063
- };
1064
- var ge = class extends Error {
1065
- constructor(e, t) {
1066
- super(`<${e}>: ${t}`), this.originalMessage = t;
1067
- }
1068
- };
1069
- function be(e) {
1070
- return !!e && e instanceof ge;
1071
- }
1072
- var ns = {
1073
- toAttribute: (e) => e ? be(e) ? e.originalMessage : e.message || "" : null
1074
- }, h = class extends G {
1075
- constructor() {
1076
- 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 Yr(this, {
1077
- slotName: `${this.constructor.is}-slot`
1078
- });
1079
- }
1080
- get stripeMountId() {
1081
- return this.breadcrumb.mountId;
1082
- }
1083
- get stripeMount() {
1084
- return this.breadcrumb.mount;
1085
- }
1086
- render() {
1087
- const { error: e, showError: t } = this, { slotName: r } = this.breadcrumb, s = be(e) ? e.originalMessage : e?.message;
1088
- return Ar`
1089
- <div id="stripe" part="stripe">
1090
- <slot id="stripe-slot" name="${r}"></slot>
1091
- </div>
1092
-
1093
- <output id="error"
1094
- for="stripe"
1095
- part="error"
1096
- ?hidden="${!t}">
1097
- ${Lr(s)}
1098
- </output>
1099
- `;
1100
- }
1101
- updated(e) {
1102
- super.updated?.(e), e.has("error") && this.errorChanged(), e.has("publishableKey") && this.init(), [...e.keys()].forEach((t) => this.representationChanged(t));
1103
- }
1104
- async disconnectedCallback() {
1105
- super.disconnectedCallback(), await this.unmount?.();
1106
- }
1107
- reset() {
1108
- this.element?.clear?.(), this.resetRepresentations(), d.set(this, { error: null });
1109
- }
1110
- blur() {
1111
- this.element?.blur();
1112
- }
1113
- focus() {
1114
- this.element?.focus();
1115
- }
1116
- createError(e) {
1117
- return new ge(this.constructor.is, e);
1118
- }
1119
- errorChanged() {
1120
- this.resetRepresentations(), this.fireError(this.error);
1121
- }
1122
- fire(e, t, r) {
1123
- this.dispatchEvent(new CustomEvent(e, { detail: t, ...r }));
1124
- }
1125
- fireError(e) {
1126
- this.dispatchEvent(new ErrorEvent("error", { error: e }));
1127
- }
1128
- getCSSCustomPropertyValue(e) {
1129
- return this.precomputedStyle.getPropertyValue(e);
1130
- }
1131
- async handleResponse(e) {
1132
- const { error: t = null, paymentMethod: r = null, source: s = null, token: n = null } = { ...e };
1133
- if (d.set(this, { error: t, paymentMethod: r, source: s, token: n }), await this.updateComplete, t)
1134
- throw t;
1135
- return e;
1136
- }
1137
- initElement() {
1138
- "abstract";
1139
- }
1140
- async init() {
1141
- await this.unmount(), await this.initStripe(), await this.initElement(), this.initElementListeners(), this.breadcrumb.init(), this.mount();
1142
- }
1143
- initElementListeners() {
1144
- this.element && (this.element.on("ready", this.onReady), this.element.on("focus", this.onFocus), this.element.on("blur", this.onBlur));
1145
- }
1146
- async initStripe() {
1147
- const { publishableKey: e, stripeAccount: t, locale: r } = this;
1148
- if (!e)
1149
- d.set(this, { elements: null, element: null, stripe: null });
1150
- else
1151
- try {
1152
- const s = { stripeAccount: t, locale: r }, n = window.Stripe ? window.Stripe(e, s) : await ve(e, s), i = n?.elements();
1153
- d.set(this, { elements: i, error: null, stripe: n });
1154
- } catch (s) {
1155
- console.warn(s);
1156
- const n = this.createError("Stripe.js must be loaded first.");
1157
- d.set(this, { elements: null, error: n, stripe: null });
1158
- } finally {
1159
- await this.updateComplete;
1160
- }
1161
- }
1162
- mount() {
1163
- if (!this.breadcrumb.mount)
1164
- throw this.createError("Stripe Mount missing");
1165
- this.element?.mount(this.breadcrumb.mount);
1166
- }
1167
- async unmount() {
1168
- this.element?.unmount?.(), d.set(this, { element: null }), await this.updateComplete;
1169
- }
1170
- async onBlur() {
1171
- d.set(this, { focused: !1 }), await this.updateComplete;
1172
- }
1173
- async onFocus() {
1174
- d.set(this, { focused: !0 }), await this.updateComplete;
1175
- }
1176
- async onReady(e) {
1177
- d.set(this, { ready: !0 }), await this.updateComplete, this.fire("ready", e);
1178
- }
1179
- async postRepresentation() {
1180
- 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" };
1181
- return fetch(this.action, { body: i, headers: o, method: "POST" }).then(Hr).then(t).catch(e);
1182
- }
1183
- representationChanged(e) {
1184
- if (!jr(e))
1185
- return;
1186
- const t = this[e];
1187
- t && (this.fire(`${de(e)}`, t), this.action && this.postRepresentation());
1188
- }
1189
- resetRepresentations() {
1190
- d.set(this, {
1191
- paymentMethod: null,
1192
- token: null,
1193
- source: null
1194
- });
1195
- }
1196
- };
1197
- a([
1198
- u({ type: String })
1199
- ], h.prototype, "action", 2);
1200
- a([
1201
- u({ type: String, attribute: "client-secret" })
1202
- ], h.prototype, "clientSecret", 2);
1203
- a([
1204
- u({ type: String })
1205
- ], h.prototype, "generate", 2);
1206
- a([
1207
- w,
1208
- u({ type: String, attribute: "publishable-key", reflect: !0 })
1209
- ], h.prototype, "publishableKey", 2);
1210
- a([
1211
- u({ type: Boolean, attribute: "show-error", reflect: !0 })
1212
- ], h.prototype, "showError", 2);
1213
- a([
1214
- u({ type: String, attribute: "stripe-account" })
1215
- ], h.prototype, "stripeAccount", 2);
1216
- a([
1217
- u({ type: String, attribute: "locale" })
1218
- ], h.prototype, "locale", 2);
1219
- a([
1220
- d,
1221
- w,
1222
- u({ type: Object, attribute: "payment-method" })
1223
- ], h.prototype, "paymentMethod", 2);
1224
- a([
1225
- d,
1226
- w,
1227
- u({ type: Object })
1228
- ], h.prototype, "source", 2);
1229
- a([
1230
- d,
1231
- w,
1232
- u({ type: Object })
1233
- ], h.prototype, "token", 2);
1234
- a([
1235
- d,
1236
- u({ type: Object })
1237
- ], h.prototype, "element", 2);
1238
- a([
1239
- d,
1240
- u({ type: Object })
1241
- ], h.prototype, "elements", 2);
1242
- a([
1243
- d,
1244
- w,
1245
- u({ type: Object, reflect: !0, converter: ns })
1246
- ], h.prototype, "error", 2);
1247
- a([
1248
- d,
1249
- w,
1250
- u({ type: Boolean, reflect: !0 })
1251
- ], h.prototype, "focused", 2);
1252
- a([
1253
- d,
1254
- w,
1255
- u({ type: Boolean, reflect: !0 })
1256
- ], h.prototype, "ready", 2);
1257
- a([
1258
- d,
1259
- u({ type: Object })
1260
- ], h.prototype, "stripe", 2);
1261
- a([
1262
- u()
1263
- ], h.prototype, "theme", 2);
1264
- a([
1265
- u({ attribute: "border-radius" })
1266
- ], h.prototype, "borderRadius", 2);
1267
- a([
1268
- u({ attribute: "color-background" })
1269
- ], h.prototype, "colorBackground", 2);
1270
- a([
1271
- u({ attribute: "color-danger" })
1272
- ], h.prototype, "colorDanger", 2);
1273
- a([
1274
- u({ attribute: "color-primary" })
1275
- ], h.prototype, "colorPrimary", 2);
1276
- a([
1277
- u({ attribute: "color-text" })
1278
- ], h.prototype, "colorText", 2);
1279
- a([
1280
- u({ attribute: "font-family" })
1281
- ], h.prototype, "fontFamily", 2);
1282
- a([
1283
- u({ attribute: "spacing-unit" })
1284
- ], h.prototype, "spacingUnit", 2);
1285
- a([
1286
- C
1287
- ], h.prototype, "handleResponse", 1);
1288
- a([
1289
- C
1290
- ], h.prototype, "onBlur", 1);
1291
- a([
1292
- C
1293
- ], h.prototype, "onFocus", 1);
1294
- a([
1295
- C
1296
- ], h.prototype, "onReady", 1);
1297
- var is = _t`[hidden] {
1298
- display: none !important;
1299
- }
1300
-
1301
- :host:not([hidden]) {
1302
- display: block;
1303
- box-sizing: border-box;
1304
- }
1305
-
1306
- #error {
1307
- font-family: sans-serif;
1308
- font-size: 14px;
1309
- padding-left: 42px;
1310
- padding-bottom: 10px;
1311
- }
1312
- `, Se = is, os = _t`:host {
1313
- min-width: var(--stripe-elements-width, 300px);
1314
- min-height: var(--stripe-elements-height, 50px);
1315
- }
1316
-
1317
- #stripe {
1318
- box-sizing: border-box;
1319
- border-radius: var(--stripe-elements-border-radius, 4px);
1320
- border: var(--stripe-elements-border, 1px solid transparent);
1321
- box-shadow: var(--stripe-elements-box-shadow, 0 1px 3px 0 #e6ebf1);
1322
- transition: var(--stripe-elements-transition, box-shadow 150ms ease);
1323
- min-width: var(--stripe-elements-width, 300px);
1324
- padding: var(--stripe-elements-element-padding, 8px 12px);
1325
- background: var(--stripe-elements-element-background, white);
1326
- }
1327
-
1328
- :host([focused]) #stripe {
1329
- box-shadow: 0 1px 3px 0 #cfd7df;
1330
- }
1331
-
1332
- :host([error]) #stripe {
1333
- border-color: #fa755a;
1334
- }
1335
- `, as = os, Zt = [
1336
- "color",
1337
- "fontFamily",
1338
- "fontSize",
1339
- "fontStyle",
1340
- "fontSmoothing",
1341
- "fontVariant",
1342
- "iconColor",
1343
- "lineHeight",
1344
- "letterSpacing",
1345
- "textDecoration",
1346
- "textShadow",
1347
- "textTransform"
1348
- ], ls = [
1349
- ":hover",
1350
- ":focus",
1351
- "::placeholder",
1352
- "::selection",
1353
- ":-webkit-autofill",
1354
- ":disabled"
1355
- ], $ = class extends h {
1356
- constructor() {
1357
- super(...arguments), this.hideIcon = !1, this.hidePostalCode = !1, this.iconStyle = "default", this.value = {}, this.brand = null, this.complete = !1, this.empty = !0, this.invalid = !1;
1358
- }
1359
- async createPaymentMethod(e = this.getPaymentMethodData()) {
1360
- return this.stripe.createPaymentMethod(e);
1361
- }
1362
- async createSource(e = this.sourceData) {
1363
- return this.stripe.createSource(this.element, e);
1364
- }
1365
- async createToken(e = this.tokenData) {
1366
- return this.stripe.createToken(this.element, e);
1367
- }
1368
- isPotentiallyValid() {
1369
- return !this.complete && !this.empty && !this.error || this.validate();
1370
- }
1371
- reset() {
1372
- super.reset(), this.element?.clear();
1373
- }
1374
- async submit() {
1375
- switch (this.generate) {
1376
- case "payment-method":
1377
- return this.createPaymentMethod();
1378
- case "source":
1379
- return this.createSource();
1380
- case "token":
1381
- return this.createToken();
1382
- default: {
1383
- const e = this.createError(`cannot generate ${this.generate}`);
1384
- throw d.set(this, { error: e }), await this.updateComplete, e;
1385
- }
1386
- }
1387
- }
1388
- validate() {
1389
- const { complete: e, empty: t, error: r } = this, s = !r && e && !t;
1390
- return t && !r && d.set(this, { error: this.createError("Your card number is empty.") }), s;
1391
- }
1392
- updateStyle() {
1393
- this.element?.update({
1394
- style: this.getStripeElementsStyles()
1395
- });
1396
- }
1397
- getPaymentMethodData() {
1398
- const e = "card", { billingDetails: t, paymentMethodData: r } = this;
1399
- return {
1400
- billing_details: t,
1401
- ...r,
1402
- type: e,
1403
- card: this.element
1404
- };
1405
- }
1406
- getStripeElementsStyles() {
1407
- const e = (n) => this.getCSSCustomPropertyValue(n) || void 0, t = ["base", "complete", "empty", "invalid"], r = (n) => (i, o) => {
1408
- if (n.includes("-"))
1409
- return i;
1410
- const c = o.split(":").pop();
1411
- return {
1412
- ...i,
1413
- [o]: Zt.reduce(s(`${n}-${c}`), {})
1414
- };
1415
- }, s = (n) => (i, o) => {
1416
- const c = `--stripe-elements-${n}-${de(o)}`;
1417
- return {
1418
- ...i,
1419
- [o]: e(c),
1420
- ...ls.reduce(r(n), {})
1421
- };
1422
- };
1423
- return t.reduce((n, i) => ({
1424
- ...n,
1425
- [i]: Zt.reduce(s(i), {})
1426
- }), {});
1427
- }
1428
- async initElement() {
1429
- if (!this.stripe)
1430
- return;
1431
- const { hidePostalCode: e, hideIcon: t, iconStyle: r, value: s } = this, n = this.getStripeElementsStyles();
1432
- await this.updateComplete;
1433
- const i = this.createElement({
1434
- hideIcon: t,
1435
- hidePostalCode: e,
1436
- iconStyle: r,
1437
- style: n,
1438
- value: s
1439
- });
1440
- i.on("change", this.onChange), d.set(this, { element: i }), await this.updateComplete;
1441
- }
1442
- createElement(e) {
1443
- return this.elements.create("card", e);
1444
- }
1445
- async onChange(e) {
1446
- const { brand: t, complete: r, empty: s, error: n = null } = e, i = !(n || !s && !r);
1447
- d.set(this, { brand: t, complete: r, empty: s, error: n, invalid: i }), await this.updateComplete, this.fire("change", e);
1448
- }
1449
- };
1450
- $.is = "stripe-elements";
1451
- $.elementType = "card";
1452
- $.styles = [
1453
- Se,
1454
- as
1455
- ];
1456
- a([
1457
- u({ type: Boolean, attribute: "hide-icon" })
1458
- ], $.prototype, "hideIcon", 2);
1459
- a([
1460
- u({ type: Boolean, attribute: "hide-postal-code" })
1461
- ], $.prototype, "hidePostalCode", 2);
1462
- a([
1463
- u({ type: String, attribute: "icon-style" })
1464
- ], $.prototype, "iconStyle", 2);
1465
- a([
1466
- u({ type: Object })
1467
- ], $.prototype, "value", 2);
1468
- a([
1469
- w,
1470
- d,
1471
- u({ type: String })
1472
- ], $.prototype, "brand", 2);
1473
- a([
1474
- w,
1475
- d,
1476
- u({ type: Boolean, reflect: !0 })
1477
- ], $.prototype, "complete", 2);
1478
- a([
1479
- w,
1480
- d,
1481
- u({ type: Boolean, reflect: !0 })
1482
- ], $.prototype, "empty", 2);
1483
- a([
1484
- w,
1485
- d,
1486
- u({ type: Boolean, reflect: !0 })
1487
- ], $.prototype, "invalid", 2);
1488
- a([
1489
- Et
1490
- ], $.prototype, "createPaymentMethod", 1);
1491
- a([
1492
- Et
1493
- ], $.prototype, "createSource", 1);
1494
- a([
1495
- Et
1496
- ], $.prototype, "createToken", 1);
1497
- a([
1498
- C
1499
- ], $.prototype, "onChange", 1);
1500
- $ = a([
1501
- ne("stripe-elements")
1502
- ], $);
1503
- var us = _t`#stripe {
1504
- box-sizing: border-box;
1505
- min-width: var(--stripe-payment-request-element-min-width, 300px);
1506
- padding: var(--stripe-payment-request-element-padding, 8px 12px);
1507
- background: var(--stripe-payment-request-element-background, white);
1508
- }
1509
- `, cs = us;
1510
- function ds(e) {
1511
- return e.tagName.toLowerCase() === "stripe-display-item";
1512
- }
1513
- function ps({ dataset: { amount: e, label: t, pending: r } }) {
1514
- return {
1515
- label: t,
1516
- amount: parseInt(e),
1517
- ...r !== void 0 && { pending: r === "true" }
1518
- };
1519
- }
1520
- function hs({ dataset: { amount: e, detail: t, ...r } }) {
1521
- return {
1522
- amount: parseInt(e),
1523
- detail: t,
1524
- ...r
1525
- };
1526
- }
1527
- function ms(e) {
1528
- return ds(e) ? ps(e) : hs(e);
1529
- }
1530
- var it, ot, m = class extends h {
1531
- constructor() {
1532
- super(...arguments), this.canMakePayment = null, Gt(this, it, void 0), this.paymentIntent = null, this.paymentRequest = null, this.pending = !1, Gt(this, ot, void 0), this.buttonType = "default", this.buttonTheme = "dark", this.complete = async (e, t) => {
1533
- const { error: r = null } = { ...e }, s = r || t ? "fail" : "success";
1534
- return e.complete(s), this.fire(s, e), t ? { error: t } : e;
1535
- };
1536
- }
1537
- get displayItems() {
1538
- const e = Wt(this, it);
1539
- return Array.isArray(e) ? e : this.parseDatasets("stripe-display-item");
1540
- }
1541
- set displayItems(e) {
1542
- const t = this.displayItems;
1543
- Kt(this, it, e), this.requestUpdate("displayItems", t);
1544
- }
1545
- get shippingOptions() {
1546
- const e = Wt(this, ot);
1547
- return Array.isArray(e) ? e : this.parseDatasets("stripe-shipping-option");
1548
- }
1549
- set shippingOptions(e) {
1550
- const t = this.shippingOptions;
1551
- Kt(this, ot, e), this.requestUpdate("shippingOptions", t);
1552
- }
1553
- reset() {
1554
- super.reset(), d.set(this, { paymentIntent: null });
1555
- }
1556
- updated(e) {
1557
- super.updated(e), e.has("generate") && this.initPaymentRequestListeners(), e.has("amount") && this.updatePaymentRequest();
1558
- }
1559
- getStripePaymentRequestOptions() {
1560
- const {
1561
- country: e,
1562
- currency: t,
1563
- displayItems: r,
1564
- shippingOptions: s,
1565
- requestShipping: n,
1566
- requestPayerEmail: i,
1567
- requestPayerName: o,
1568
- requestPayerPhone: c,
1569
- label: l = "",
1570
- amount: p = 0
1571
- } = this;
1572
- return {
1573
- country: e,
1574
- currency: t,
1575
- displayItems: r,
1576
- requestPayerEmail: i,
1577
- requestPayerName: o,
1578
- requestPayerPhone: c,
1579
- requestShipping: n,
1580
- shippingOptions: s,
1581
- total: { label: l, amount: p }
1582
- };
1583
- }
1584
- async initElement() {
1585
- await this.initPaymentRequest(), await this.initPaymentRequestListeners(), await this.initPaymentRequestButton();
1586
- }
1587
- async initPaymentRequest() {
1588
- if (!this.stripe)
1589
- return;
1590
- const e = this.getStripePaymentRequestOptions(), t = this.stripe.paymentRequest(e), r = await t.canMakePayment();
1591
- d.set(this, { paymentRequest: t, canMakePayment: r }), await this.updateComplete, this.canMakePayment || this.fire("unsupported");
1592
- }
1593
- async initPaymentRequestButton() {
1594
- const { buttonTheme: e, buttonType: t, canMakePayment: r } = this;
1595
- if (!r || !this.elements)
1596
- return;
1597
- const i = { paymentRequestButton: { height: this.getCSSCustomPropertyValue("--stripe-payment-request-button-height") || "40px", theme: e, type: t } }, o = this.elements.create("paymentRequestButton", {
1598
- paymentRequest: this.paymentRequest,
1599
- style: i
1600
- });
1601
- d.set(this, { element: o }), await this.updateComplete;
1602
- }
1603
- async initPaymentRequestListeners() {
1604
- if (this.canMakePayment)
1605
- switch (this.paymentRequest.on("click", this.updatePaymentRequest), this.paymentRequest.on("cancel", this.onCancel), this.paymentRequest.on("shippingaddresschange", this.onShippingaddresschange), this.paymentRequest.on("shippingoptionchange", this.onShippingoptionchange), this.generate) {
1606
- case "payment-method":
1607
- this.paymentRequest.on("paymentmethod", this.onPaymentResponse);
1608
- break;
1609
- case "source":
1610
- this.paymentRequest.on("source", this.onPaymentResponse);
1611
- break;
1612
- case "token":
1613
- this.paymentRequest.on("token", this.onPaymentResponse);
1614
- break;
1615
- }
1616
- }
1617
- async updatePaymentRequest() {
1618
- if (!this.paymentRequest)
1619
- return;
1620
- const { currency: e, total: t, displayItems: r, shippingOptions: s } = this.getStripePaymentRequestOptions();
1621
- this.paymentRequest.update({ currency: e, total: t, displayItems: r, shippingOptions: s });
1622
- }
1623
- onCancel() {
1624
- this.fire(
1625
- "cancel"
1626
- /* cancel */
1627
- );
1628
- }
1629
- async onPaymentResponse(e) {
1630
- const {
1631
- error: t = null,
1632
- paymentMethod: r = null,
1633
- source: s = null,
1634
- token: n = null
1635
- } = { ...e };
1636
- d.set(this, { error: t, paymentMethod: r, source: s, token: n }), this.clientSecret && !t ? this.confirmPaymentIntent(e) : this.complete(e);
1637
- }
1638
- async confirmPaymentIntent(e) {
1639
- const t = { payment_method: this.paymentMethod.id }, r = await this.confirmCardPayment(t, { handleActions: !1 }).then(({ error: i }) => this.complete(e, i)).then(Ft).then(() => this.confirmCardPayment()).then(Ft).catch((i) => ({ error: i })), { error: s = null } = r, n = r.paymentIntent ?? null;
1640
- d.set(this, { error: s, paymentIntent: n }), await this.updateComplete;
1641
- }
1642
- async confirmCardPayment(e, t) {
1643
- return this.stripe.confirmCardPayment(this.clientSecret, e, t);
1644
- }
1645
- onShippingaddresschange(e) {
1646
- this.fire("shippingaddresschange", e);
1647
- }
1648
- onShippingoptionchange(e) {
1649
- this.fire("shippingoptionchange", e);
1650
- }
1651
- parseDatasets(e) {
1652
- const t = [...this.querySelectorAll(e)];
1653
- return t.length ? t.map(ms) : [];
1654
- }
1655
- };
1656
- it = /* @__PURE__ */ new WeakMap();
1657
- ot = /* @__PURE__ */ new WeakMap();
1658
- m.is = "stripe-payment-request";
1659
- m.styles = [
1660
- Se,
1661
- cs
1662
- ];
1663
- a([
1664
- u({ type: Number, reflect: !0 })
1665
- ], m.prototype, "amount", 2);
1666
- a([
1667
- w,
1668
- d,
1669
- u({ type: Boolean, attribute: "can-make-payment", reflect: !0 })
1670
- ], m.prototype, "canMakePayment", 2);
1671
- a([
1672
- u({ type: String })
1673
- ], m.prototype, "country", 2);
1674
- a([
1675
- u({ type: String })
1676
- ], m.prototype, "currency", 2);
1677
- a([
1678
- u({ type: Array })
1679
- ], m.prototype, "displayItems", 1);
1680
- a([
1681
- u({ type: String, reflect: !0 })
1682
- ], m.prototype, "label", 2);
1683
- a([
1684
- w,
1685
- d,
1686
- u({ type: Object, attribute: "payment-intent" })
1687
- ], m.prototype, "paymentIntent", 2);
1688
- a([
1689
- d,
1690
- u({ type: Object, attribute: "payment-request" })
1691
- ], m.prototype, "paymentRequest", 2);
1692
- a([
1693
- u({ type: Boolean, reflect: !0 })
1694
- ], m.prototype, "pending", 2);
1695
- a([
1696
- u({ type: Boolean, attribute: "request-payer-email" })
1697
- ], m.prototype, "requestPayerEmail", 2);
1698
- a([
1699
- u({ type: Boolean, attribute: "request-payer-name" })
1700
- ], m.prototype, "requestPayerName", 2);
1701
- a([
1702
- u({ type: Boolean, attribute: "request-payer-phone" })
1703
- ], m.prototype, "requestPayerPhone", 2);
1704
- a([
1705
- u({ type: Boolean, attribute: "request-shipping" })
1706
- ], m.prototype, "requestShipping", 2);
1707
- a([
1708
- u({ type: Array })
1709
- ], m.prototype, "shippingOptions", 1);
1710
- a([
1711
- u({ type: String, attribute: "button-type" })
1712
- ], m.prototype, "buttonType", 2);
1713
- a([
1714
- u({ type: String, attribute: "button-theme" })
1715
- ], m.prototype, "buttonTheme", 2);
1716
- a([
1717
- C
1718
- ], m.prototype, "onCancel", 1);
1719
- a([
1720
- C
1721
- ], m.prototype, "onPaymentResponse", 1);
1722
- a([
1723
- C
1724
- ], m.prototype, "confirmPaymentIntent", 1);
1725
- a([
1726
- C
1727
- ], m.prototype, "confirmCardPayment", 1);
1728
- a([
1729
- C
1730
- ], m.prototype, "onShippingaddresschange", 1);
1731
- a([
1732
- C
1733
- ], m.prototype, "onShippingoptionchange", 1);
1734
- m = a([
1735
- ne("stripe-payment-request")
1736
- ], m);
1737
- const $e = Oe({
1738
- components: {
1739
- BFormattedAmount: He
1740
- },
1741
- computed: {
1742
- termsAndConditionsUrl() {
1743
- return this.t("CreditCardForm.termsURL");
1744
- }
1745
- },
1746
- data: () => ({
1747
- error: "",
1748
- isTermsAccepted: !1,
1749
- termsError: !1
1750
- }),
1751
- methods: {
1752
- onCreditCardFormChange(e) {
1753
- this.error = "", this.$emit("change", !!e.detail.complete);
1754
- },
1755
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1756
- onPaymentError(e) {
1757
- this.error = `${e?.error?.message} ${this.t("CreditCardForm.error")}`, this.$emit("error", this.error);
1758
- },
1759
- async onStripePayment(e) {
1760
- try {
1761
- if (!window.Stripe || this.disabled)
1762
- return;
1763
- const r = await window.Stripe(this.pk, {
1764
- locale: this.$i18n.locale
1765
- }).confirmCardPayment(this.token, {
1766
- // eslint-disable-next-line camelcase
1767
- payment_method: e.detail.id
1768
- });
1769
- r.error && r.error ? this.onPaymentError(r) : this.withAction ? this.$eventBus.$emit(Ie.PaymentSuccess) : this.$emit("success");
1770
- } catch (t) {
1771
- this.onPaymentError(t);
1772
- }
1773
- },
1774
- pay() {
1775
- try {
1776
- if (!this.$refs.payment || this.withTerms && !this.isTermsAccepted)
1777
- return;
1778
- this.$refs.payment.submit();
1779
- } catch (e) {
1780
- this.onPaymentError(e);
1781
- }
1782
- }
1783
- },
1784
- name: "CreditCardForm",
1785
- props: ir,
1786
- setup() {
1787
- const { t: e } = Le(), { config: t } = Ve(), r = Qt(
1788
- () => rr(t.value.apiEnvironment)
1789
- ), s = Pt(!1), n = Pt(null);
1790
- return Ue(async () => {
1791
- n.value = await vr(r.value), s.value = !0;
1792
- }), {
1793
- pk: r,
1794
- stripeLoaded: s,
1795
- t: e
1796
- };
1797
- }
1798
- });
1799
- function Xt(e) {
1800
- const t = e;
1801
- t.__i18n = t.__i18n || [], t.__i18n.push({
1802
- locale: "",
1803
- resource: {
1804
- "en-US": {
1805
- CreditCardForm: {
1806
- cardNumber: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Card number" } },
1807
- error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Please, use another payment method" } },
1808
- or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "or" } },
1809
- cvc: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "CVC" } },
1810
- expDate: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Exp. Date" } },
1811
- pay: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Total price to pay" } },
1812
- payByCard: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Amount to pay by card" } },
1813
- paymentDeclined: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Payment declined" } },
1814
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Total to Pay with your credit card" } },
1815
- payNow: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Pay now" } },
1816
- termsURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf" } },
1817
- 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>' }] } }
1818
- }
1819
- },
1820
- "fr-FR": {
1821
- CreditCardForm: {
1822
- cardNumber: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Numéro de carte bancaire" } },
1823
- error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Veuillez utiliser un autre moyen de paiement." } },
1824
- or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "ou" } },
1825
- cvc: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "CVC" } },
1826
- expDate: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Date d'exp." } },
1827
- pay: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Montant total à régler" } },
1828
- payByCard: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Montant à régler par carte bancaire" } },
1829
- paymentDeclined: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Paiement refusé" } },
1830
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Montant total à payer par carte bancaire" } },
1831
- payNow: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Payer maintenant" } },
1832
- termsURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo_fr.pdf" } },
1833
- termsAndConditions: { t: 0, b: { t: 2, i: [{ t: 3, v: 'En poursuivant votre réservation, vous acceptez les conditions générales: <b><a href="' }, { t: 4, k: "url" }, { t: 3, v: '" target="_blank">Cliquez ici pour les consulter</a></b>' }] } }
1834
- }
1835
- },
1836
- "de-DE": {
1837
- CreditCardForm: {
1838
- cardNumber: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Kartennummer" } },
1839
- error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Bitte verwenden Sie eine andere Zahlungsmethode" } },
1840
- or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "oder" } },
1841
- cvc: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "CVC" } },
1842
- expDate: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Ablaufdatum" } },
1843
- pay: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Zu zahlender Gesamtpreis" } },
1844
- payByCard: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Betrag, der mit Karte zu zahlen ist" } },
1845
- paymentDeclined: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Zahlung abgelehnt" } },
1846
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Gesamtbetrag zur Zahlung mit Ihrer Kreditkarte" } },
1847
- payNow: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Jetzt bezahlen" } },
1848
- termsURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf" } },
1849
- termsAndConditions: { t: 0, b: { t: 2, i: [{ t: 3, v: 'Indem Sie mit Ihrer Reservierung fortfahren, stimmen Sie den Allgemeinen Geschäftsbedingungen zu: <b><a href="' }, { t: 4, k: "url" }, { t: 3, v: '" target="_blank">Klicken Sie hier, um sie zu lesen</a></b>' }] } }
1850
- }
1851
- },
1852
- "es-ES": {
1853
- CreditCardForm: {
1854
- cardNumber: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Número de tarjeta" } },
1855
- error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Por favor, utilice otro método de pago" } },
1856
- or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "o" } },
1857
- cvc: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "CVC" } },
1858
- expDate: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Fecha de vencimiento" } },
1859
- pay: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Precio total a pagar" } },
1860
- payByCard: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Importe a pagar con tarjeta" } },
1861
- paymentDeclined: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Pago rechazado" } },
1862
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Total a pagar con su tarjeta de crédito" } },
1863
- payNow: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Pagar ahora" } },
1864
- termsURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf" } },
1865
- termsAndConditions: { t: 0, b: { t: 2, i: [{ t: 3, v: 'Al continuar con su reserva, acepta los términos y condiciones: <b><a href="' }, { t: 4, k: "url" }, { t: 3, v: '" target="_blank">Haga clic aquí para leerlos</a></b>' }] } }
1866
- }
1867
- },
1868
- "it-IT": {
1869
- CreditCardForm: {
1870
- cardNumber: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Numero di carta" } },
1871
- error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Si prega di utilizzare un altro metodo di pagamento" } },
1872
- or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "o" } },
1873
- cvc: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "CVC" } },
1874
- expDate: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Data di scadenza" } },
1875
- pay: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Prezzo totale da pagare" } },
1876
- payByCard: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Importo da pagare con carta" } },
1877
- paymentDeclined: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Pagamento rifiutato" } },
1878
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Totale da pagare con la tua carta di credito" } },
1879
- payNow: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Paga adesso" } },
1880
- termsURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf" } },
1881
- termsAndConditions: { t: 0, b: { t: 2, i: [{ t: 3, v: 'Continuando con la prenotazione, accetti i termini e le condizioni: <b><a href="' }, { t: 4, k: "url" }, { t: 3, v: '" target="_blank">Clicca qui per leggerli</a></b>' }] } }
1882
- }
1883
- },
1884
- "nl-NL": {
1885
- CreditCardForm: {
1886
- cardNumber: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Kaartnummer" } },
1887
- error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Gebruik alstublieft een andere betaalmethode" } },
1888
- or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "of" } },
1889
- cvc: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "CVC" } },
1890
- expDate: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Vervaldatum" } },
1891
- pay: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Totaal te betalen prijs" } },
1892
- payByCard: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Bedrag te betalen met kaart" } },
1893
- paymentDeclined: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Betaling geweigerd" } },
1894
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Totaal te betalen met uw creditcard" } },
1895
- payNow: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Betaal nu" } },
1896
- termsURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf" } },
1897
- termsAndConditions: { t: 0, b: { t: 2, i: [{ t: 3, v: 'Door verder te gaan met uw reservering, gaat u akkoord met de algemene voorwaarden: <b><a href="' }, { t: 4, k: "url" }, { t: 3, v: '" target="_blank">Klik hier om ze te lezen</a></b>' }] } }
1898
- }
1899
- },
1900
- "pt-PT": {
1901
- CreditCardForm: {
1902
- cardNumber: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Número do cartão" } },
1903
- error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Por favor, utilize outro método de pagamento" } },
1904
- or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "ou" } },
1905
- cvc: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "CVC" } },
1906
- expDate: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Data de validade" } },
1907
- pay: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Preço total a pagar" } },
1908
- payByCard: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Montante a pagar com cartão" } },
1909
- paymentDeclined: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Pagamento recusado" } },
1910
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Total a pagar com o seu cartão de crédito" } },
1911
- payNow: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Pagar agora" } },
1912
- termsURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf" } },
1913
- termsAndConditions: { t: 0, b: { t: 2, i: [{ t: 3, v: 'Ao continuar com a sua reserva, concorda com os termos e condições: <b><a href="' }, { t: 4, k: "url" }, { t: 3, v: '" target="_blank">Clique aqui para os ler</a></b>' }] } }
1914
- }
1915
- }
1916
- }
1917
- });
1918
- }
1919
- const ys = { class: "w-100 d-flex justify-space-between items-center" }, fs = { class: "text-caption font-weight-bold text-center my-0 text-red rounded" }, vs = { class: "pr-3" }, gs = ["locale", "publishable-key"], bs = ["innerHTML"], Ss = { class: "mr-1" };
1920
- function $s(e, t, r, s, n, i) {
1921
- const o = qe("BFormattedAmount");
1922
- return A(), k(Rt, {
1923
- disabled: e.disabled,
1924
- elevation: "0",
1925
- border: "",
1926
- style: je({
1927
- borderColor: e.disabled ? null : "rgb(var(--v-theme-primary))"
1928
- })
1929
- }, {
1930
- default: v(() => [
1931
- g(Je, {
1932
- class: "text-white",
1933
- color: "primary",
1934
- density: "compact",
1935
- elevation: "0"
1936
- }, {
1937
- default: v(() => [
1938
- E("div", ys, [
1939
- E("h4", null, [
1940
- g(ct, {
1941
- color: "white",
1942
- start: "",
1943
- size: "small"
1944
- }, {
1945
- default: v(() => t[5] || (t[5] = [
1946
- X(" fas fa-credit-card ")
1947
- ])),
1948
- _: 1,
1949
- __: [5]
1950
- }),
1951
- X(" " + R(e.t("CreditCardForm.title")) + ": ", 1),
1952
- e.loading ? (A(), k(Ge, {
1953
- key: 1,
1954
- class: "ml-2",
1955
- color: "primary",
1956
- indeterminate: "",
1957
- size: "20",
1958
- width: "1"
1959
- })) : (A(), k(o, {
1960
- key: 0,
1961
- amount: e.amount,
1962
- class: "font-weight-bold",
1963
- currency: e.currency
1964
- }, null, 8, ["amount", "currency"]))
1965
- ]),
1966
- g(ct, {
1967
- color: "white",
1968
- end: "",
1969
- size: "small"
1970
- }, {
1971
- default: v(() => t[6] || (t[6] = [
1972
- X(" fas fa-lock ")
1973
- ])),
1974
- _: 1,
1975
- __: [6]
1976
- })
1977
- ])
1978
- ]),
1979
- _: 1
1980
- }),
1981
- g(Xe, null, {
1982
- default: v(() => [
1983
- g(D, null, {
1984
- default: v(() => [
1985
- g(O, null, {
1986
- default: v(() => [
1987
- e.error ? (A(), k(Ze, {
1988
- key: 0,
1989
- color: "red",
1990
- density: "compact",
1991
- variant: "outlined"
1992
- }, {
1993
- default: v(() => [
1994
- E("p", fs, R(e.t("CreditCardForm.paymentDeclined")) + ": " + R(e.error), 1)
1995
- ]),
1996
- _: 1
1997
- })) : z("", !0)
1998
- ]),
1999
- _: 1
2000
- })
2001
- ]),
2002
- _: 1
2003
- }),
2004
- g(D, {
2005
- class: "d-none d-sm-flex",
2006
- "no-gutters": ""
2007
- }, {
2008
- default: v(() => [
2009
- g(O, { cols: "8" }, {
2010
- default: v(() => [
2011
- E("small", null, R(e.t("CreditCardForm.cardNumber")), 1)
2012
- ]),
2013
- _: 1
2014
- }),
2015
- g(O, {
2016
- class: "text-right pr-6",
2017
- cols: "4"
2018
- }, {
2019
- default: v(() => [
2020
- E("small", vs, R(e.t("CreditCardForm.expDate")), 1),
2021
- E("small", null, R(e.t("CreditCardForm.cvc")), 1)
2022
- ]),
2023
- _: 1
2024
- })
2025
- ]),
2026
- _: 1
2027
- }),
2028
- g(D, { "no-gutters": "" }, {
2029
- default: v(() => [
2030
- g(O, null, {
2031
- default: v(() => [
2032
- g(Rt, {
2033
- elevation: "0",
2034
- border: ""
2035
- }, {
2036
- default: v(() => [
2037
- e.stripeLoaded ? (A(), Be("stripe-elements", {
2038
- key: 0,
2039
- ref: "payment",
2040
- class: ze({
2041
- "d-none": e.loading
2042
- }),
2043
- generate: "payment-method",
2044
- "hide-postal-code": "",
2045
- locale: e.$i18n.locale,
2046
- "publishable-key": e.pk,
2047
- onChange: t[0] || (t[0] = (...c) => e.onCreditCardFormChange && e.onCreditCardFormChange(...c)),
2048
- onError: t[1] || (t[1] = (...c) => e.onPaymentError && e.onPaymentError(...c)),
2049
- onPaymentMethod: t[2] || (t[2] = (...c) => e.onStripePayment && e.onStripePayment(...c))
2050
- }, null, 42, gs)) : z("", !0),
2051
- e.loading ? (A(), k(Qe, {
2052
- key: 1,
2053
- class: "mx-auto",
2054
- height: "36.8px",
2055
- type: "image",
2056
- width: "100%"
2057
- })) : z("", !0)
2058
- ]),
2059
- _: 1
2060
- })
2061
- ]),
2062
- _: 1
2063
- })
2064
- ]),
2065
- _: 1
2066
- }),
2067
- e.withTerms ? (A(), k(D, {
2068
- key: 0,
2069
- class: "mt-2"
2070
- }, {
2071
- default: v(() => [
2072
- g(O, null, {
2073
- default: v(() => [
2074
- g(nr, {
2075
- ref: "testing",
2076
- modelValue: e.isTermsAccepted,
2077
- "onUpdate:modelValue": t[4] || (t[4] = (c) => e.isTermsAccepted = c),
2078
- class: "mt-0",
2079
- error: e.termsError && !e.isTermsAccepted
2080
- }, {
2081
- label: v(() => [
2082
- E("span", {
2083
- onClick: t[3] || (t[3] = De(() => {
2084
- }, ["stop"])),
2085
- innerHTML: e.t("CreditCardForm.termsAndConditions", {
2086
- url: e.termsAndConditionsUrl
2087
- })
2088
- }, null, 8, bs)
2089
- ]),
2090
- _: 1
2091
- }, 8, ["modelValue", "error"])
2092
- ]),
2093
- _: 1
2094
- })
2095
- ]),
2096
- _: 1
2097
- })) : z("", !0),
2098
- e.withAction ? (A(), k(D, { key: 1 }, {
2099
- default: v(() => [
2100
- g(O, { class: "d-flex justify-end flex-column flex-sm-row mb-1 align-center mt-4 mt-sm-0" }, {
2101
- default: v(() => [
2102
- g(Ke, {
2103
- class: "w-100 w-sm-auto",
2104
- color: "primary",
2105
- variant: "flat",
2106
- disabled: e.disabled || e.withTerms && !e.isTermsAccepted,
2107
- loading: e.loading,
2108
- onClick: e.pay
2109
- }, {
2110
- default: v(() => [
2111
- g(ct, { start: "" }, {
2112
- default: v(() => t[7] || (t[7] = [
2113
- X(" fas fa-lock ")
2114
- ])),
2115
- _: 1,
2116
- __: [7]
2117
- }),
2118
- E("span", Ss, R(e.t("CreditCardForm.payNow")), 1),
2119
- g(o, {
2120
- amount: e.amount,
2121
- class: "font-weight-bold",
2122
- currency: e.currency
2123
- }, null, 8, ["amount", "currency"])
2124
- ]),
2125
- _: 1
2126
- }, 8, ["disabled", "loading", "onClick"])
2127
- ]),
2128
- _: 1
2129
- })
2130
- ]),
2131
- _: 1
2132
- })) : z("", !0)
2133
- ]),
2134
- _: 1
2135
- })
2136
- ]),
2137
- _: 1
2138
- }, 8, ["disabled", "style"]);
2139
- }
2140
- typeof Xt == "function" && Xt($e);
2141
- const Os = /* @__PURE__ */ We($e, [["render", $s], ["__scopeId", "data-v-bb3529bc"]]);
2142
- Pe("css/revolugo.creditcardform.BXv0c3zQ.css");
2143
- export {
2144
- Os as C,
2145
- nr as V,
2146
- ir as c
2147
- };
2148
- //# sourceMappingURL=revolugo.creditcardform.Bk7yeZle.min.js.map