@cling-se/widget 0.15.2 → 0.15.5

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 (137) hide show
  1. package/README.md +43 -43
  2. package/dist/{AddClientCallout-CSxN7XFh.js → AddClientCallout-CrZF5j7A.js} +15 -13
  3. package/dist/{AnswerModal-DEwMlsT8.js → AnswerModal-C3r9vyki.js} +71 -71
  4. package/dist/{AttachmentItem-R7YMKqQ2.js → AttachmentItem-BVXrxCnv.js} +20 -13
  5. package/dist/{BaseDatePicker-Bd1maWgF.js → BaseDatePicker-DxL2l3QC.js} +561 -557
  6. package/dist/{BaseUpload-C9Jd1JBo.js → BaseUpload-B7259IaQ.js} +3 -3
  7. package/dist/{BlockMedia-CUCZYVdZ.js → BlockMedia-BSKtZMwa.js} +2 -2
  8. package/dist/{CCallout-_k7FPbsE.js → CCallout-BNvM6gNJ.js} +4 -5
  9. package/dist/{CCurrencyDropdown-DejfeYVY.js → CCurrencyDropdown-xmqmb8gW.js} +24 -20
  10. package/dist/{CDropdownItem-b6ZzOnv-.js → CDropdownItem-DiLisSei.js} +139 -37
  11. package/dist/{CFormField-BjGICSv5.js → CFormField-DcZVdj3a.js} +3 -4
  12. package/dist/{CPhoneFormat-Bf2fgYtr.js → CPhoneFormat-BeYxRN0i.js} +1 -1
  13. package/dist/CPhoneInput-UzZkxbC6.js +138 -0
  14. package/dist/{CPriceInput-myrETXfz.js → CPriceInput-C2y_3PM7.js} +20 -16
  15. package/dist/CSelect-BmP1UsQA.js +91 -0
  16. package/dist/CSkeleton-BNbft-NE.js +55 -0
  17. package/dist/ClientAutocomplete-BnredOme.js +438 -0
  18. package/dist/{ClientModal-DSmFJ9bu.js → ClientModal-DNcf4APF.js} +92 -51
  19. package/dist/{ColorPicker-B1MJicqo.js → ColorPicker-BupC4jvI.js} +2 -2
  20. package/dist/{CompanyModal-BXs3aAYm.js → CompanyModal-Bh8mEHE1.js} +25 -19
  21. package/dist/{ContentWrapper-BKWZy4Bp.js → ContentWrapper-Bs3nrJda.js} +63 -55
  22. package/dist/CoverBlockSettings-WYZsCdky.js +659 -0
  23. package/dist/{DocAnswer-CaoTYUNh.js → DocAnswer--FfsnnTB.js} +2 -2
  24. package/dist/{DocDetails-C9EEpNg2.js → DocDetails-Ce7bj-qO.js} +43 -39
  25. package/dist/{DocForm-Dww8Ust9.js → DocForm-FR_Vlq_C.js} +801 -755
  26. package/dist/{DocFormSend-DKAqaT50.js → DocFormSend-DcSv3JNg.js} +18 -15
  27. package/dist/{DocLinks-DFUO03dk.js → DocLinks-Bvhc62aJ.js} +2 -2
  28. package/dist/{DocModalBase-QZosNhiK.js → DocModalBase-DkfUBRi3.js} +2 -2
  29. package/dist/{DocPrint--T278pDE.js → DocPrint-BrKY6rOy.js} +3 -3
  30. package/dist/{DocReceipt-CPg45_I7.js → DocReceipt-oGrM6t_k.js} +29 -22
  31. package/dist/{DocSendReminder-DQAaiUrs.js → DocSendReminder-veEC_yHK.js} +19 -16
  32. package/dist/{DocTextEditor-CM1f8eMD.js → DocTextEditor-CNRwxPEx.js} +72 -70
  33. package/dist/{DocTimeline-Ce0OZgGP.js → DocTimeline-e2Xf_QZ7.js} +38 -34
  34. package/dist/{DocumentClient-DHU-Rg3r.js → DocumentClient-Dx4Uyxkh.js} +5 -5
  35. package/dist/{DocumentLayout-GYCBw2F_.js → DocumentLayout-DmjmsTcx.js} +1506 -1538
  36. package/dist/{DocumentLogotype-Cilc0ElE.js → DocumentLogotype-ddYHM9wn.js} +25 -20
  37. package/dist/{DocumentVoided-BH8pkv85.js → DocumentVoided-WCk7XuxH.js} +1 -1
  38. package/dist/{EmbedInput-lMSVQSey.js → EmbedInput-CMueXdFs.js} +25 -21
  39. package/dist/{EmbedSettings-D65Y2AZL.js → EmbedSettings-BRuLCWr0.js} +13 -11
  40. package/dist/{ErrorCallout-BBNHzuhf.js → ErrorCallout-CDtZceLU.js} +6 -6
  41. package/dist/{FilePreviewModal-iPIuaIor.js → FilePreviewModal-BzAUuY58.js} +3 -3
  42. package/dist/Flag-DkJgyDQK.js +46 -0
  43. package/dist/{HeaderSettings-WKUIBCfF.js → HeaderSettings-CoKK5Mbt.js} +159 -110
  44. package/dist/{ImageSelectModal-BTMFM3o9.js → ImageSelectModal-De64vGSr.js} +15 -13
  45. package/dist/{ImageUploadWrapper-BaLjUZF5.js → ImageUploadWrapper-CE6KTze0.js} +3 -3
  46. package/dist/{Index-DS1PwlDq.js → Index-50KxppUS.js} +4 -4
  47. package/dist/{Index-DJeZiYxr.js → Index-B7vVIRFn.js} +7 -7
  48. package/dist/{Index-ivhPuQy5.js → Index-BUQ75xOU.js} +6 -6
  49. package/dist/{Index-BUEXgHEE.js → Index-BVKCCkQY.js} +57 -50
  50. package/dist/{Index-BBTn35Kj.js → Index-BiGT3iEX.js} +21 -17
  51. package/dist/{Index-B-UWz1IM.js → Index-BoDKKVvL.js} +4 -4
  52. package/dist/{Index-DrSgVUyo.js → Index-BotY9nbP.js} +2 -2
  53. package/dist/{Index-B-YqdbQX.js → Index-BwaJW9CY.js} +3 -3
  54. package/dist/{Index-BepvyGqo.js → Index-ByqCyUgx.js} +9 -9
  55. package/dist/{Index-Bsv15ctO.js → Index-C7pge7E9.js} +23 -21
  56. package/dist/{Index-CEaZgZqg.js → Index-CBRJ-AZi.js} +2 -2
  57. package/dist/{Index-GrrsUUz1.js → Index-CFQMtx5w.js} +5 -5
  58. package/dist/{Index-CtQo0b8t.js → Index-CJKyHWiO.js} +15 -15
  59. package/dist/{Index-Dv1fkHWQ.js → Index-CK_5l1kP.js} +2 -2
  60. package/dist/{Index-BVt3pj58.js → Index-CLc_11Bc.js} +276 -232
  61. package/dist/{Index-cPIqnY80.js → Index-CTokKHJA.js} +5 -5
  62. package/dist/Index-Cf45UGbc.js +28 -0
  63. package/dist/{Index-B51tj7qY.js → Index-CfLPq-yA.js} +5 -5
  64. package/dist/{Index-B_ta4yT_.js → Index-Ci7y3O0G.js} +7 -7
  65. package/dist/{Index-ZKkQzVOj.js → Index-CmV8oF4Q.js} +4 -4
  66. package/dist/{Index-C6tGNKAk.js → Index-CoRuYEYW.js} +5 -5
  67. package/dist/Index-CtKNyVUB.js +56 -0
  68. package/dist/{Index-rL3fz1Ew.js → Index-DCf6_Zd2.js} +2 -2
  69. package/dist/{Index-CEHhYmLe.js → Index-DGdlZzVO.js} +7 -7
  70. package/dist/{Index-B5XaBVyJ.js → Index-DbKB8sTh.js} +18 -12
  71. package/dist/{Index-9PMrT3eB.js → Index-DgBOq2MJ.js} +3 -3
  72. package/dist/{Index-BBOJRRgx.js → Index-DvNxOHHu.js} +6 -6
  73. package/dist/{Index-DS7xellB.js → Index-M2Mce2_m.js} +124 -123
  74. package/dist/{Index-2PGn8Pnv.js → Index-QMkjG7hk.js} +4 -4
  75. package/dist/{Index-oKRUWCcJ.js → Index-QmX5pv-V.js} +17 -15
  76. package/dist/{Index-0aZtDWyk.js → Index-h5xDFYM9.js} +4 -4
  77. package/dist/{Index-CtZMlBfK.js → Index-hkGYloih.js} +5 -5
  78. package/dist/{Index-DK3b6Cv-.js → Index-q3gLm4b1.js} +6 -6
  79. package/dist/{Index-BQ3kapHk.js → Index-sqI1TF7Z.js} +2 -2
  80. package/dist/{InputToggleRow-CJF0vwk3.js → InputToggleRow-DLFIMIdx.js} +2 -2
  81. package/dist/{ManualPopover-CEF7LMpn.js → ManualPopover-Cf8DotlW.js} +13 -11
  82. package/dist/{MediaWrapper-CM6vWCoZ.js → MediaWrapper-BgWmA3kS.js} +3 -3
  83. package/dist/{NotBindingText-Cee9yA0M.js → NotBindingText-DhsHxvkX.js} +2 -2
  84. package/dist/{PackageGroup-CFXogKPM.js → PackageGroup-EbOSxv69.js} +26 -20
  85. package/dist/PdfTerms-im6uTd5E.js +31 -0
  86. package/dist/{PdfViewer-Cd0Jm2VB.js → PdfViewer-DY0rcZjo.js} +22 -22
  87. package/dist/{PlainHtml-CucWAcOU.js → PlainHtml-o031pfp-.js} +1 -1
  88. package/dist/{PriceHeader-DdMZUaq5.js → PriceHeader-NdFa0Sqs.js} +15 -15
  89. package/dist/{SearchApi-knNqVduO.js → SearchApi-Bw5E9IPj.js} +2 -2
  90. package/dist/SendForm-BDY5VDkS.js +1023 -0
  91. package/dist/{Setup-7HIAWuiK.js → Setup-BsYqPmOm.js} +1 -1
  92. package/dist/{SmartList-cSmGbybV.js → SmartList-CP2wHig-.js} +1 -1
  93. package/dist/{TermsSettings-CAB-08E3.js → TermsSettings-CUlSayCJ.js} +20 -13
  94. package/dist/{ThemeColorRow-DxcMvBGq.js → ThemeColorRow-D3fav4Sl.js} +14 -12
  95. package/dist/ToggleBinding-B715OVl2.js +42 -0
  96. package/dist/{UploadModal-CvoSMExA.js → UploadModal-THDJ-UNp.js} +6 -6
  97. package/dist/{VideoPlayerInput-X5baUH3q.js → VideoPlayerInput-Cm3KoRnR.js} +15 -11
  98. package/dist/{VideoPlayerSettings-DsIvpufB.js → VideoPlayerSettings-BFAjczuw.js} +3 -3
  99. package/dist/VideoSelectModal-CzO8EMg9.js +104 -0
  100. package/dist/{answerDocumentMixin-B8HB1WAX.js → answerDocumentMixin-D12xJRhx.js} +3 -3
  101. package/dist/{debounce-B2lqFJg2.js → debounce-DLiv1sQX.js} +16 -16
  102. package/dist/{focusDrawerMixin-B2djM7ql.js → focusDrawerMixin-khaScuSu.js} +1 -1
  103. package/dist/{formDrawerState-CchCpZRc.js → formDrawerState-CJ6kjaD_.js} +1 -1
  104. package/dist/{formValidationMixin-Dz9Mabvi.js → formValidationMixin-Bri1WflH.js} +1 -1
  105. package/dist/{index-Dk6sZCYv.js → index-B0Zu30kF.js} +2 -2
  106. package/dist/{index-twnaU4rC.js → index-C1Ngv-v3.js} +1 -1
  107. package/dist/{index-BCrDgR_4.js → index-CMT3coT-.js} +785 -2001
  108. package/dist/{index-H1Kx9sJM.js → index-DJOUQneq.js} +42 -38
  109. package/dist/{index-BaGtbWcA.js → index-DLa3QER7.js} +18 -17
  110. package/dist/{index-kV9OZ5y0.js → index-Dygy9XlG.js} +1 -1
  111. package/dist/index.es.js +10 -10
  112. package/dist/index.umd.js +179 -175
  113. package/dist/{main-CerYX9PA.js → main-U22_wtg0.js} +13008 -11358
  114. package/dist/{mapFormMixin-Hj1Y7rVt.js → mapFormMixin-BZf4RJIE.js} +1 -1
  115. package/dist/omit-RBXmF_Fo.js +31 -0
  116. package/dist/{publicSenderState-t7Gu53cA.js → publicSenderState-DKuvxj4_.js} +1 -1
  117. package/dist/regions-BdZt9Srn.js +1250 -0
  118. package/dist/simplebar.min-Bnrne5ZK.js +71 -0
  119. package/dist/style.css +2 -2
  120. package/dist/{throttle-B8hI9bkk.js → throttle-Fkuqk26x.js} +2 -2
  121. package/dist/{tinycolor-BaK26Ky-.js → tinycolor-BZ8wGctU.js} +1 -1
  122. package/dist/{tippy.esm-BuWRbveV.js → tippy.esm-BJe845c1.js} +246 -240
  123. package/dist/{utils-Pmm0DT8o.js → utils-BOWVR87A.js} +1 -1
  124. package/dist/{vuedraggable.umd-Besz6Tlv.js → vuedraggable.umd-CJL8TWxZ.js} +1 -1
  125. package/package.json +2 -11
  126. package/dist/CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js +0 -1
  127. package/dist/CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js +0 -1
  128. package/dist/ClientAutocomplete-DyXQEfcS.js +0 -78
  129. package/dist/CoverBlockSettings-7Ivt9zN0.js +0 -275
  130. package/dist/Flag-CwnrA4SV.js +0 -114
  131. package/dist/Index-B0pgh8nR.js +0 -21
  132. package/dist/Index-Ccx9wHcb.js +0 -52
  133. package/dist/PdfTerms-ChtDfzne.js +0 -36
  134. package/dist/ToggleBinding-CTTYdrkp.js +0 -38
  135. package/dist/VideoSelectModal-VMcSU3bM.js +0 -100
  136. package/dist/formComponentsInstall-CdjgjI6y.js +0 -2495
  137. package/dist/omit-DGBewD2h.js +0 -31
@@ -1,1255 +1,13 @@
1
- import { n as d, bk as F, b as C, ba as M, bl as X, bm as Q, bn as J, bo as ee, V as U, bp as te, ai as D, bq as ne, c as h, K as ae, w as P, d as y, br as re, g as m, bs as b, D as k, bt as ie, bu as se, bv as oe, bw as H, p as ce, h as L, I as E, bx as B, P as le, by as ue, ay as de } from "./main-CerYX9PA.js";
2
- import { m as v, a as $, b as me } from "./vuex.esm-DKGl8mcw.js";
1
+ import { n as d, bo as F, b as v, be as I, bp as J, bq as K, br as X, bs as tt, V as B, bt as et, $ as L, bu as rt, c as h, t as at, D as P, d as y, bv as nt, g as m, bw as b, L as x, v as it, bx as st, by as ot, bz as lt, bA as D, p as ct, h as H, I as E, bB as R, W as ut, bC as dt, aG as mt } from "./main-U22_wtg0.js";
2
+ import { m as C, a as $, b as pt } from "./vuex.esm-DKGl8mcw.js";
3
3
  import { a as u } from "./anime.es-BrPTThYb.js";
4
- import { v as _ } from "./index-twnaU4rC.js";
5
- import { a as pe } from "./dom-CJxkno7i.js";
6
- const x = {
7
- AD: {
8
- name: "Andorra",
9
- callingCode: "+376",
10
- currency: "EUR"
11
- },
12
- AE: {
13
- name: "United Arab Emirates",
14
- callingCode: "+971",
15
- currency: "AED"
16
- },
17
- AF: {
18
- name: "Afghanistan",
19
- callingCode: "+93",
20
- currency: "AFN"
21
- },
22
- AG: {
23
- name: "Antigua and Barbuda",
24
- callingCode: "+1 268",
25
- currency: "XCD"
26
- },
27
- AI: {
28
- name: "Anguilla",
29
- callingCode: "+1 264",
30
- currency: "XCD"
31
- },
32
- AL: {
33
- name: "Albania",
34
- callingCode: "+355",
35
- currency: "ALL"
36
- },
37
- AM: {
38
- name: "Armenia",
39
- callingCode: "+374",
40
- currency: "AMD"
41
- },
42
- AO: {
43
- name: "Angola",
44
- callingCode: "+244",
45
- currency: "AOA"
46
- },
47
- AQ: {
48
- name: "Antarctica",
49
- callingCode: "",
50
- currency: null
51
- },
52
- AR: {
53
- name: "Argentina",
54
- callingCode: "+54",
55
- currency: "ARS"
56
- },
57
- AS: {
58
- name: "American Samoa",
59
- callingCode: "+1 684",
60
- currency: "USD"
61
- },
62
- AT: {
63
- name: "Austria",
64
- callingCode: "+43",
65
- currency: "EUR"
66
- },
67
- AU: {
68
- name: "Australia",
69
- callingCode: "+61",
70
- currency: "AUD"
71
- },
72
- AW: {
73
- name: "Aruba",
74
- callingCode: "+297",
75
- currency: "AWG"
76
- },
77
- AX: {
78
- name: "Åland Islands",
79
- callingCode: "+358",
80
- currency: "EUR"
81
- },
82
- AZ: {
83
- name: "Azerbaijan",
84
- callingCode: "+994",
85
- currency: "AZN"
86
- },
87
- BA: {
88
- name: "Bosnia and Herzegovina",
89
- callingCode: "+387",
90
- currency: "BAM"
91
- },
92
- BB: {
93
- name: "Barbados",
94
- callingCode: "+1 246",
95
- currency: "BBD"
96
- },
97
- BD: {
98
- name: "Bangladesh",
99
- callingCode: "+880",
100
- currency: "BDT"
101
- },
102
- BE: {
103
- name: "Belgium",
104
- callingCode: "+32",
105
- currency: "EUR"
106
- },
107
- BF: {
108
- name: "Burkina Faso",
109
- callingCode: "+226",
110
- currency: "XOF"
111
- },
112
- BG: {
113
- name: "Bulgaria",
114
- callingCode: "+359",
115
- currency: "BGN"
116
- },
117
- BH: {
118
- name: "Bahrain",
119
- callingCode: "+973",
120
- currency: "BHD"
121
- },
122
- BI: {
123
- name: "Burundi",
124
- callingCode: "+257",
125
- currency: "BIF"
126
- },
127
- BJ: {
128
- name: "Benin",
129
- callingCode: "+229",
130
- currency: "XOF"
131
- },
132
- BL: {
133
- name: "Saint Barthélemy",
134
- callingCode: "+590",
135
- currency: "EUR"
136
- },
137
- BM: {
138
- name: "Bermuda",
139
- callingCode: "+1 441",
140
- currency: "BMD"
141
- },
142
- BN: {
143
- name: "Brunei Darussalam",
144
- callingCode: "+673",
145
- currency: "BND"
146
- },
147
- BO: {
148
- name: "Bolivia (Plurinational State of)",
149
- callingCode: "+591",
150
- currency: "BOB"
151
- },
152
- BQ: {
153
- name: "Bonaire, Sint Eustatius and Saba",
154
- callingCode: "+599 7",
155
- currency: "USD"
156
- },
157
- BR: {
158
- name: "Brazil",
159
- callingCode: "+55",
160
- currency: "BRL"
161
- },
162
- BS: {
163
- name: "Bahamas",
164
- callingCode: "+1 242",
165
- currency: "BSD"
166
- },
167
- BT: {
168
- name: "Bhutan",
169
- callingCode: "+975",
170
- currency: "INR"
171
- },
172
- BV: {
173
- name: "Bouvet Island",
174
- callingCode: "",
175
- currency: "NOK"
176
- },
177
- BW: {
178
- name: "Botswana",
179
- callingCode: "+267",
180
- currency: "BWP"
181
- },
182
- BY: {
183
- name: "Belarus",
184
- callingCode: "+375",
185
- currency: "BYN"
186
- },
187
- BZ: {
188
- name: "Belize",
189
- callingCode: "+501",
190
- currency: "BZD"
191
- },
192
- CA: {
193
- name: "Canada",
194
- callingCode: "+1",
195
- currency: "CAD"
196
- },
197
- CC: {
198
- name: "Cocos (Keeling) Islands",
199
- callingCode: "+61 89162",
200
- currency: "AUD"
201
- },
202
- CD: {
203
- name: "Congo, Democratic Republic of the",
204
- callingCode: "+243",
205
- currency: "CDF"
206
- },
207
- CF: {
208
- name: "Central African Republic",
209
- callingCode: "+236",
210
- currency: "XAF"
211
- },
212
- CG: {
213
- name: "Congo",
214
- callingCode: "+242",
215
- currency: "XAF"
216
- },
217
- CH: {
218
- name: "Switzerland",
219
- callingCode: "+41",
220
- currency: "CHF"
221
- },
222
- CI: {
223
- name: "Côte d'Ivoire",
224
- callingCode: "+225",
225
- currency: "XOF"
226
- },
227
- CK: {
228
- name: "Cook Islands",
229
- callingCode: "+682",
230
- currency: "NZD"
231
- },
232
- CL: {
233
- name: "Chile",
234
- callingCode: "+56",
235
- currency: "CLP"
236
- },
237
- CM: {
238
- name: "Cameroon",
239
- callingCode: "+237",
240
- currency: "XAF"
241
- },
242
- CN: {
243
- name: "China",
244
- callingCode: "+86",
245
- currency: "CNY"
246
- },
247
- CO: {
248
- name: "Colombia",
249
- callingCode: "+57",
250
- currency: "COP"
251
- },
252
- CR: {
253
- name: "Costa Rica",
254
- callingCode: "+506",
255
- currency: "CRC"
256
- },
257
- CU: {
258
- name: "Cuba",
259
- callingCode: "+53",
260
- currency: "CUP"
261
- },
262
- CV: {
263
- name: "Cabo Verde",
264
- callingCode: "+238",
265
- currency: "CVE"
266
- },
267
- CW: {
268
- name: "Curaçao",
269
- callingCode: "+599 9",
270
- currency: "ANG"
271
- },
272
- CX: {
273
- name: "Christmas Island",
274
- callingCode: "+61 89164",
275
- currency: "AUD"
276
- },
277
- CY: {
278
- name: "Cyprus",
279
- callingCode: "+357",
280
- currency: "EUR"
281
- },
282
- CZ: {
283
- name: "Czechia",
284
- callingCode: "+420",
285
- currency: "CZK"
286
- },
287
- DE: {
288
- name: "Germany",
289
- callingCode: "+49",
290
- currency: "EUR"
291
- },
292
- DJ: {
293
- name: "Djibouti",
294
- callingCode: "+253",
295
- currency: "DJF"
296
- },
297
- DK: {
298
- name: "Denmark",
299
- callingCode: "+45",
300
- currency: "DKK"
301
- },
302
- DM: {
303
- name: "Dominica",
304
- callingCode: "+1 767",
305
- currency: "XCD"
306
- },
307
- DO: {
308
- name: "Dominican Republic",
309
- callingCode: "+1",
310
- currency: "DOP"
311
- },
312
- DZ: {
313
- name: "Algeria",
314
- callingCode: "+213",
315
- currency: "DZD"
316
- },
317
- EC: {
318
- name: "Ecuador",
319
- callingCode: "+593",
320
- currency: "USD"
321
- },
322
- EE: {
323
- name: "Estonia",
324
- callingCode: "+372",
325
- currency: "EUR"
326
- },
327
- EG: {
328
- name: "Egypt",
329
- callingCode: "Egypt",
330
- currency: "EGP"
331
- },
332
- EH: {
333
- name: "Western Sahara",
334
- callingCode: "+212",
335
- currency: "MAD"
336
- },
337
- ER: {
338
- name: "Eritrea",
339
- callingCode: "+291",
340
- currency: "ERN"
341
- },
342
- ES: {
343
- name: "Spain",
344
- callingCode: "+34",
345
- currency: "EUR"
346
- },
347
- ET: {
348
- name: "Ethiopia",
349
- callingCode: "+251",
350
- currency: "ETB"
351
- },
352
- FI: {
353
- name: "Finland",
354
- callingCode: "+358",
355
- currency: "EUR"
356
- },
357
- FJ: {
358
- name: "Fiji",
359
- callingCode: "+679",
360
- currency: "FJD"
361
- },
362
- FK: {
363
- name: "Falkland Islands (Malvinas)",
364
- callingCode: "+500",
365
- currency: "FKP"
366
- },
367
- FM: {
368
- name: "Micronesia (Federated States of)",
369
- callingCode: "+691",
370
- currency: "USD"
371
- },
372
- FO: {
373
- name: "Faroe Islands",
374
- callingCode: "+298",
375
- currency: "DKK"
376
- },
377
- FR: {
378
- name: "France",
379
- callingCode: "+33",
380
- currency: "EUR"
381
- },
382
- GA: {
383
- name: "Gabon",
384
- callingCode: "+241",
385
- currency: "XAF"
386
- },
387
- GB: {
388
- name: "United Kingdom of Great Britain and Northern Ireland",
389
- callingCode: "+44",
390
- currency: "GBP"
391
- },
392
- GD: {
393
- name: "Grenada",
394
- callingCode: "+1 473",
395
- currency: "XCD"
396
- },
397
- GE: {
398
- name: "Georgia",
399
- callingCode: "Georgia",
400
- currency: "GEL"
401
- },
402
- GF: {
403
- name: "French Guiana",
404
- callingCode: "+594",
405
- currency: "EUR"
406
- },
407
- GG: {
408
- name: "Guernsey",
409
- callingCode: "+44",
410
- currency: "GGP"
411
- },
412
- GH: {
413
- name: "Ghana",
414
- callingCode: "+233",
415
- currency: "GHS"
416
- },
417
- GI: {
418
- name: "Gibraltar",
419
- callingCode: "+350",
420
- currency: "GIP"
421
- },
422
- GL: {
423
- name: "Greenland",
424
- callingCode: "+299",
425
- currency: "DKK"
426
- },
427
- GM: {
428
- name: "Gambia",
429
- callingCode: "+220",
430
- currency: "GMD"
431
- },
432
- GN: {
433
- name: "Guinea",
434
- callingCode: "+224",
435
- currency: "GNF"
436
- },
437
- GP: {
438
- name: "Guadeloupe",
439
- callingCode: "+590",
440
- currency: "EUR"
441
- },
442
- GQ: {
443
- name: "Equatorial Guinea",
444
- callingCode: "+240",
445
- currency: "XAF"
446
- },
447
- GR: {
448
- name: "Greece",
449
- callingCode: "+30",
450
- currency: "EUR"
451
- },
452
- GS: {
453
- name: "South Georgia and the South Sandwich Islands",
454
- callingCode: "+500",
455
- currency: "GBP"
456
- },
457
- GT: {
458
- name: "Guatemala",
459
- callingCode: "+502",
460
- currency: "GTQ"
461
- },
462
- GU: {
463
- name: "Guam",
464
- callingCode: "+1 671",
465
- currency: "USD"
466
- },
467
- GW: {
468
- name: "Guinea-Bissau",
469
- callingCode: "+245",
470
- currency: "XOF"
471
- },
472
- GY: {
473
- name: "Guyana",
474
- callingCode: "+592",
475
- currency: "GYD"
476
- },
477
- HK: {
478
- name: "Hong Kong",
479
- callingCode: "+852",
480
- currency: "HKD"
481
- },
482
- HM: {
483
- name: "Heard Island and McDonald Islands",
484
- callingCode: "+61",
485
- currency: "AUD"
486
- },
487
- HN: {
488
- name: "Honduras",
489
- callingCode: "+504",
490
- currency: "HNL"
491
- },
492
- HR: {
493
- name: "Croatia",
494
- callingCode: "+385 ",
495
- currency: "HRK"
496
- },
497
- HT: {
498
- name: "Haiti",
499
- callingCode: "+509",
500
- currency: "HTG"
501
- },
502
- HU: {
503
- name: "Hungary",
504
- callingCode: "+36",
505
- currency: "HUF"
506
- },
507
- ID: {
508
- name: "Indonesia",
509
- callingCode: "+62",
510
- currency: "IDR"
511
- },
512
- IE: {
513
- name: "Ireland",
514
- callingCode: "+353",
515
- currency: "EUR"
516
- },
517
- IL: {
518
- name: "Israel",
519
- callingCode: "+972",
520
- currency: "ILS"
521
- },
522
- IM: {
523
- name: "Isle of Man",
524
- callingCode: "+44",
525
- currency: "GBP"
526
- },
527
- IN: {
528
- name: "India",
529
- callingCode: "+91",
530
- currency: "INR"
531
- },
532
- IO: {
533
- name: "British Indian Ocean Territory",
534
- callingCode: "+246",
535
- currency: "USD"
536
- },
537
- IQ: {
538
- name: "Iraq",
539
- callingCode: "+964",
540
- currency: "IQD"
541
- },
542
- IR: {
543
- name: "Iran (Islamic Republic of)",
544
- callingCode: "+98",
545
- currency: "IRR"
546
- },
547
- IS: {
548
- name: "Iceland",
549
- callingCode: "+354",
550
- currency: "ISK"
551
- },
552
- IT: {
553
- name: "Italy",
554
- callingCode: "+39",
555
- currency: "EUR"
556
- },
557
- JE: {
558
- name: "Jersey",
559
- callingCode: "+44 1534",
560
- currency: "GBP"
561
- },
562
- JM: {
563
- name: "Jamaica",
564
- callingCode: "+1 876",
565
- currency: "JMD"
566
- },
567
- JO: {
568
- name: "Jordan",
569
- callingCode: "+962",
570
- currency: "JOD"
571
- },
572
- JP: {
573
- name: "Japan",
574
- callingCode: "+81",
575
- currency: "JPY"
576
- },
577
- KE: {
578
- name: "Kenya",
579
- callingCode: "+254",
580
- currency: "KES"
581
- },
582
- KG: {
583
- name: "Kyrgyzstan",
584
- callingCode: "+996",
585
- currency: "KGS"
586
- },
587
- KH: {
588
- name: "Cambodia",
589
- callingCode: "+855",
590
- currency: "KHR"
591
- },
592
- KI: {
593
- name: "Kiribati",
594
- callingCode: "+686",
595
- currency: "AUD"
596
- },
597
- KM: {
598
- name: "Comoros",
599
- callingCode: "+269",
600
- currency: "KMF"
601
- },
602
- KN: {
603
- name: "Saint Kitts and Nevis",
604
- callingCode: "+1 869",
605
- currency: "XCD"
606
- },
607
- KP: {
608
- name: "Korea (Democratic People's Republic of)",
609
- callingCode: "+850",
610
- currency: "KPW"
611
- },
612
- KR: {
613
- name: "Korea, Republic of",
614
- callingCode: "+82",
615
- currency: "KRW"
616
- },
617
- KW: {
618
- name: "Kuwait",
619
- callingCode: "+965",
620
- currency: "KWD"
621
- },
622
- KY: {
623
- name: "Cayman Islands",
624
- callingCode: "+1 345",
625
- currency: "KYD"
626
- },
627
- KZ: {
628
- name: "Kazakhstan",
629
- callingCode: "+7",
630
- currency: "KZT"
631
- },
632
- LA: {
633
- name: "Lao People's Democratic Republic",
634
- callingCode: "+856",
635
- currency: "LAK"
636
- },
637
- LB: {
638
- name: "Lebanon",
639
- callingCode: "+961",
640
- currency: "LBP"
641
- },
642
- LC: {
643
- name: "Saint Lucia",
644
- callingCode: "+1 758",
645
- currency: "XCD"
646
- },
647
- LI: {
648
- name: "Liechtenstein",
649
- callingCode: "+423",
650
- currency: "CHF"
651
- },
652
- LK: {
653
- name: "Sri Lanka",
654
- callingCode: "+94",
655
- currency: "LKR"
656
- },
657
- LR: {
658
- name: "Liberia",
659
- callingCode: "+231",
660
- currency: "LRD"
661
- },
662
- LS: {
663
- name: "Lesotho",
664
- callingCode: "+266",
665
- currency: "LSL"
666
- },
667
- LT: {
668
- name: "Lithuania",
669
- callingCode: "+370",
670
- currency: "EUR"
671
- },
672
- LU: {
673
- name: "Luxembourg",
674
- callingCode: "+352",
675
- currency: "EUR"
676
- },
677
- LV: {
678
- name: "Latvia",
679
- callingCode: "+371",
680
- currency: "EUR"
681
- },
682
- LY: {
683
- name: "Libya",
684
- callingCode: "+218",
685
- currency: "LYD"
686
- },
687
- MA: {
688
- name: "Morocco",
689
- callingCode: "+212",
690
- currency: "MAD"
691
- },
692
- MC: {
693
- name: "Monaco",
694
- callingCode: "+377",
695
- currency: "EUR"
696
- },
697
- MD: {
698
- name: "Moldova, Republic of",
699
- callingCode: "+373",
700
- currency: "MDL"
701
- },
702
- ME: {
703
- name: "Montenegro",
704
- callingCode: "+382",
705
- currency: "EUR"
706
- },
707
- MF: {
708
- name: "Saint Martin (French part)",
709
- callingCode: "+590",
710
- currency: "EUR"
711
- },
712
- MG: {
713
- name: "Madagascar",
714
- callingCode: "+261",
715
- currency: "MGA"
716
- },
717
- MH: {
718
- name: "Marshall Islands",
719
- callingCode: "+692",
720
- currency: "USD"
721
- },
722
- MK: {
723
- name: "North Macedonia",
724
- callingCode: "+389",
725
- currency: "MKD"
726
- },
727
- ML: {
728
- name: "Mali",
729
- callingCode: "+223",
730
- currency: "XOF"
731
- },
732
- MM: {
733
- name: "Myanmar",
734
- callingCode: "+95",
735
- currency: "MMK"
736
- },
737
- MN: {
738
- name: "Mongolia",
739
- callingCode: "+976",
740
- currency: "MNT"
741
- },
742
- MO: {
743
- name: "Macao",
744
- callingCode: "+853",
745
- currency: "MOP"
746
- },
747
- MP: {
748
- name: "Northern Mariana Islands",
749
- callingCode: "+1 670",
750
- currency: "USD"
751
- },
752
- MQ: {
753
- name: "Martinique",
754
- callingCode: "+596",
755
- currency: "EUR"
756
- },
757
- MR: {
758
- name: "Mauritania",
759
- callingCode: "+222",
760
- currency: "MRO"
761
- },
762
- MS: {
763
- name: "Montserrat",
764
- callingCode: "+1 664",
765
- currency: "XCD"
766
- },
767
- MT: {
768
- name: "Malta",
769
- callingCode: "+356",
770
- currency: "EUR"
771
- },
772
- MU: {
773
- name: "Mauritius",
774
- callingCode: "+230",
775
- currency: "MUR"
776
- },
777
- MV: {
778
- name: "Maldives",
779
- callingCode: "+960",
780
- currency: "MVR"
781
- },
782
- MW: {
783
- name: "Malawi",
784
- callingCode: "+265",
785
- currency: "MWK"
786
- },
787
- MX: {
788
- name: "Mexico",
789
- callingCode: "+52",
790
- currency: "MXN"
791
- },
792
- MY: {
793
- name: "Malaysia",
794
- callingCode: "+60",
795
- currency: "MYR"
796
- },
797
- MZ: {
798
- name: "Mozambique",
799
- callingCode: "+258",
800
- currency: "MZN"
801
- },
802
- NA: {
803
- name: "Namibia",
804
- callingCode: "+264",
805
- currency: "NAD"
806
- },
807
- NC: {
808
- name: "New Caledonia",
809
- callingCode: "+687",
810
- currency: "XPF"
811
- },
812
- NE: {
813
- name: "Niger",
814
- callingCode: "+227",
815
- currency: "XOF"
816
- },
817
- NF: {
818
- name: "Norfolk Island",
819
- callingCode: "+672 3",
820
- currency: "AUD"
821
- },
822
- NG: {
823
- name: "Nigeria",
824
- callingCode: "+234",
825
- currency: "NGN"
826
- },
827
- NI: {
828
- name: "Nicaragua",
829
- callingCode: "+505",
830
- currency: "NIO"
831
- },
832
- NL: {
833
- name: "Netherlands",
834
- callingCode: "+31",
835
- currency: "EUR"
836
- },
837
- NO: {
838
- name: "Norway",
839
- callingCode: "+47",
840
- currency: "NOK"
841
- },
842
- NP: {
843
- name: "Nepal",
844
- callingCode: "+977",
845
- currency: "NPR"
846
- },
847
- NR: {
848
- name: "Nauru",
849
- callingCode: "+674",
850
- currency: "AUD"
851
- },
852
- NU: {
853
- name: "Niue",
854
- callingCode: "+683",
855
- currency: "NZD"
856
- },
857
- NZ: {
858
- name: "New Zealand",
859
- callingCode: "+64",
860
- currency: "NZD"
861
- },
862
- OM: {
863
- name: "Oman",
864
- callingCode: "+968",
865
- currency: "OMR"
866
- },
867
- PA: {
868
- name: "Panama",
869
- callingCode: "+507",
870
- currency: "PAB"
871
- },
872
- PE: {
873
- name: "Peru",
874
- callingCode: "+51",
875
- currency: "PEN"
876
- },
877
- PF: {
878
- name: "French Polynesia",
879
- callingCode: "+689",
880
- currency: "XPF"
881
- },
882
- PG: {
883
- name: "Papua New Guinea",
884
- callingCode: "+675",
885
- currency: "PGK"
886
- },
887
- PH: {
888
- name: "Philippines",
889
- callingCode: "+63",
890
- currency: "PHP"
891
- },
892
- PK: {
893
- name: "Pakistan",
894
- callingCode: "+92",
895
- currency: "PKR"
896
- },
897
- PL: {
898
- name: "Poland",
899
- callingCode: "+48",
900
- currency: "PLN"
901
- },
902
- PM: {
903
- name: "Saint Pierre and Miquelon",
904
- callingCode: "+508",
905
- currency: "EUR"
906
- },
907
- PN: {
908
- name: "Pitcairn",
909
- callingCode: "+64",
910
- currency: "NZD"
911
- },
912
- PR: {
913
- name: "Puerto Rico",
914
- callingCode: "+1",
915
- currency: "USD"
916
- },
917
- PS: {
918
- name: "Palestine, State of",
919
- callingCode: "+970",
920
- currency: "JOD"
921
- },
922
- PT: {
923
- name: "Portugal",
924
- callingCode: "+351",
925
- currency: "EUR"
926
- },
927
- PW: {
928
- name: "Palau",
929
- callingCode: "+680",
930
- currency: "USD"
931
- },
932
- PY: {
933
- name: "Paraguay",
934
- callingCode: "+595",
935
- currency: "PYG"
936
- },
937
- QA: {
938
- name: "Qatar",
939
- callingCode: "+974",
940
- currency: "QAR"
941
- },
942
- RE: {
943
- name: "Réunion",
944
- callingCode: "+262",
945
- currency: "EUR"
946
- },
947
- RO: {
948
- name: "Romania",
949
- callingCode: "+40",
950
- currency: "RON"
951
- },
952
- RS: {
953
- name: "Serbia",
954
- callingCode: "+381",
955
- currency: "RSD"
956
- },
957
- RU: {
958
- name: "Russian Federation",
959
- callingCode: "+7",
960
- currency: "RUB"
961
- },
962
- RW: {
963
- name: "Rwanda",
964
- callingCode: "+250",
965
- currency: "RWF"
966
- },
967
- SA: {
968
- name: "Saudi Arabia",
969
- callingCode: "+966",
970
- currency: "SAR"
971
- },
972
- SB: {
973
- name: "Solomon Islands",
974
- callingCode: "+677",
975
- currency: "SBD"
976
- },
977
- SC: {
978
- name: "Seychelles",
979
- callingCode: "+248",
980
- currency: "SCR"
981
- },
982
- SD: {
983
- name: "Sudan",
984
- callingCode: "+249",
985
- currency: "SDG"
986
- },
987
- SE: {
988
- name: "Sweden",
989
- callingCode: "+46",
990
- currency: "SEK"
991
- },
992
- SG: {
993
- name: "Singapore",
994
- callingCode: "+65",
995
- currency: "SGD"
996
- },
997
- SH: {
998
- name: "Saint Helena, Ascension and Tristan da Cunha",
999
- callingCode: "+290",
1000
- currency: "SHP"
1001
- },
1002
- SI: {
1003
- name: "Slovenia",
1004
- callingCode: "+386",
1005
- currency: "EUR"
1006
- },
1007
- SJ: {
1008
- name: "Svalbard and Jan Mayen",
1009
- callingCode: "+47 79",
1010
- currency: "NOK"
1011
- },
1012
- SK: {
1013
- name: "Slovakia",
1014
- callingCode: "+421",
1015
- currency: "EUR"
1016
- },
1017
- SL: {
1018
- name: "Sierra Leone",
1019
- callingCode: "+232",
1020
- currency: "SLL"
1021
- },
1022
- SM: {
1023
- name: "San Marino",
1024
- callingCode: "+378",
1025
- currency: "EUR"
1026
- },
1027
- SN: {
1028
- name: "Senegal",
1029
- callingCode: "+221",
1030
- currency: "XOF"
1031
- },
1032
- SO: {
1033
- name: "Somalia",
1034
- callingCode: "+252",
1035
- currency: "SOS"
1036
- },
1037
- SR: {
1038
- name: "Suriname",
1039
- callingCode: "+597",
1040
- currency: "SRD"
1041
- },
1042
- SS: {
1043
- name: "South Sudan",
1044
- callingCode: "+211",
1045
- currency: "SSP"
1046
- },
1047
- ST: {
1048
- name: "Sao Tome and Principe",
1049
- callingCode: "+239",
1050
- currency: "STD"
1051
- },
1052
- SV: {
1053
- name: "El Salvador",
1054
- callingCode: "+503",
1055
- currency: "USD"
1056
- },
1057
- SX: {
1058
- name: "Sint Maarten (Dutch part)",
1059
- callingCode: "+1 721",
1060
- currency: "ANG"
1061
- },
1062
- SY: {
1063
- name: "Syrian Arab Republic",
1064
- callingCode: "+963",
1065
- currency: "SYP"
1066
- },
1067
- SZ: {
1068
- name: "Eswatini",
1069
- callingCode: "+268",
1070
- currency: "SZL"
1071
- },
1072
- TC: {
1073
- name: "Turks and Caicos Islands",
1074
- callingCode: "+1 649",
1075
- currency: "USD"
1076
- },
1077
- TD: {
1078
- name: "Chad",
1079
- callingCode: "+235",
1080
- currency: "XAF"
1081
- },
1082
- TF: {
1083
- name: "French Southern Territories",
1084
- callingCode: "",
1085
- currency: "EUR"
1086
- },
1087
- TG: {
1088
- name: "Togo",
1089
- callingCode: "+228",
1090
- currency: "XOF"
1091
- },
1092
- TH: {
1093
- name: "Thailand",
1094
- callingCode: "+66",
1095
- currency: "THB"
1096
- },
1097
- TJ: {
1098
- name: "Tajikistan",
1099
- callingCode: "+992",
1100
- currency: "TJS"
1101
- },
1102
- TK: {
1103
- name: "Tokelau",
1104
- callingCode: "+690",
1105
- currency: "NZD"
1106
- },
1107
- TL: {
1108
- name: "Timor-Leste",
1109
- callingCode: "+670",
1110
- currency: "USD"
1111
- },
1112
- TM: {
1113
- name: "Turkmenistan",
1114
- callingCode: "+993",
1115
- currency: "TMT"
1116
- },
1117
- TN: {
1118
- name: "Tunisia",
1119
- callingCode: "+216",
1120
- currency: "TND"
1121
- },
1122
- TO: {
1123
- name: "Tonga",
1124
- callingCode: "+676",
1125
- currency: "TOP"
1126
- },
1127
- TR: {
1128
- name: "Turkey",
1129
- callingCode: "+90",
1130
- currency: "TRY"
1131
- },
1132
- TT: {
1133
- name: "Trinidad and Tobago",
1134
- callingCode: "+1 868",
1135
- currency: "TTD"
1136
- },
1137
- TV: {
1138
- name: "Tuvalu",
1139
- callingCode: "+688",
1140
- currency: "AUD"
1141
- },
1142
- TW: {
1143
- name: "Taiwan, Province of China",
1144
- callingCode: "+886",
1145
- currency: "TWD"
1146
- },
1147
- TZ: {
1148
- name: "Tanzania, United Republic of",
1149
- callingCode: "+255",
1150
- currency: "TZS"
1151
- },
1152
- UA: {
1153
- name: "Ukraine",
1154
- callingCode: "+380",
1155
- currency: "UAH"
1156
- },
1157
- UG: {
1158
- name: "Uganda",
1159
- callingCode: "+256",
1160
- currency: "UGX"
1161
- },
1162
- UM: {
1163
- name: "United States Minor Outlying Islands",
1164
- callingCode: "",
1165
- currency: "USD"
1166
- },
1167
- US: {
1168
- name: "United States of America",
1169
- callingCode: "+1",
1170
- currency: "USD"
1171
- },
1172
- UY: {
1173
- name: "Uruguay",
1174
- callingCode: "+598",
1175
- currency: "UYU"
1176
- },
1177
- UZ: {
1178
- name: "Uzbekistan",
1179
- callingCode: "+998",
1180
- currency: "UZS"
1181
- },
1182
- VA: {
1183
- name: "Holy See",
1184
- callingCode: "+39",
1185
- currency: "EUR"
1186
- },
1187
- VC: {
1188
- name: "Saint Vincent and the Grenadines",
1189
- callingCode: "+1 784",
1190
- currency: "XCD"
1191
- },
1192
- VE: {
1193
- name: "Venezuela (Bolivarian Republic of)",
1194
- callingCode: "+58",
1195
- currency: "VEF"
1196
- },
1197
- VG: {
1198
- name: "Virgin Islands (British)",
1199
- callingCode: "",
1200
- currency: "USD"
1201
- },
1202
- VI: {
1203
- name: "Virgin Islands (U.S.)",
1204
- callingCode: "+1",
1205
- currency: "USD"
1206
- },
1207
- VN: {
1208
- name: "Viet Nam",
1209
- callingCode: "+84",
1210
- currency: "VND"
1211
- },
1212
- VU: {
1213
- name: "Vanuatu",
1214
- callingCode: "+678",
1215
- currency: "VUV"
1216
- },
1217
- WF: {
1218
- name: "Wallis and Futuna",
1219
- callingCode: "+681",
1220
- currency: "XPF"
1221
- },
1222
- WS: {
1223
- name: "Samoa",
1224
- callingCode: "+685",
1225
- currency: "EUR"
1226
- },
1227
- YE: {
1228
- name: "Yemen",
1229
- callingCode: "+967",
1230
- currency: "YER"
1231
- },
1232
- YT: {
1233
- name: "Mayotte",
1234
- callingCode: "+26",
1235
- currency: "EUR"
1236
- },
1237
- ZA: {
1238
- name: "South Africa",
1239
- callingCode: "+27",
1240
- currency: "ZAR"
1241
- },
1242
- ZM: {
1243
- name: "Zambia",
1244
- callingCode: "+260",
1245
- currency: "ZMW"
1246
- },
1247
- ZW: {
1248
- name: "Zimbabwe",
1249
- callingCode: "+263",
1250
- currency: "USD"
1251
- }
1252
- }, ge = {
4
+ import { C as ft } from "./CFormField-DcZVdj3a.js";
5
+ import { C as ht } from "./CSelect-BmP1UsQA.js";
6
+ import { b as gt } from "./CDropdownItem-DiLisSei.js";
7
+ import { r as S } from "./regions-BdZt9Srn.js";
8
+ import { v as _ } from "./index-C1Ngv-v3.js";
9
+ import { a as yt } from "./dom-CJxkno7i.js";
10
+ const vt = {
1253
11
  props: {
1254
12
  defaultOpen: {
1255
13
  type: Boolean,
@@ -1279,8 +37,8 @@ const x = {
1279
37
  get() {
1280
38
  return this.value === null ? this.internalExpanded : this.value;
1281
39
  },
1282
- set(n) {
1283
- this.value === null ? this.internalExpanded = n : this.$emit("input", this.value);
40
+ set(r) {
41
+ this.value === null ? this.internalExpanded = r : this.$emit("input", this.value);
1284
42
  }
1285
43
  }
1286
44
  },
@@ -1291,41 +49,41 @@ const x = {
1291
49
  this.expanded && this.setWrapperHeightTo("auto");
1292
50
  },
1293
51
  methods: {
1294
- onEnter(n) {
1295
- this.setWrapperHeightTo(this.getContentHeight(), n);
52
+ onEnter(r) {
53
+ this.setWrapperHeightTo(this.getContentHeight(), r);
1296
54
  },
1297
- onAfterEnter(n) {
1298
- this.setWrapperHeightTo("auto", n);
55
+ onAfterEnter(r) {
56
+ this.setWrapperHeightTo("auto", r);
1299
57
  },
1300
- onBeforeLeave(n) {
1301
- this.setWrapperHeightTo(this.getContentHeight(), n);
58
+ onBeforeLeave(r) {
59
+ this.setWrapperHeightTo(this.getContentHeight(), r);
1302
60
  },
1303
- onLeave(n) {
1304
- n.scrollHeight, this.setWrapperHeightTo(0, n);
61
+ onLeave(r) {
62
+ r.scrollHeight, this.setWrapperHeightTo(0, r);
1305
63
  },
1306
64
  getContentHeight() {
1307
- const { inner: n } = this.$refs;
1308
- return n.getBoundingClientRect().height;
65
+ const { inner: r } = this.$refs;
66
+ return r.getBoundingClientRect().height;
1309
67
  },
1310
- setWrapperHeightTo(n, e = this.$refs.wrapper) {
1311
- e.style.height = typeof n == "number" ? `${n}px` : n;
68
+ setWrapperHeightTo(r, t = this.$refs.wrapper) {
69
+ t.style.height = typeof r == "number" ? `${r}px` : r;
1312
70
  }
1313
71
  }
1314
72
  };
1315
- var he = function() {
1316
- var e = this, t = e._self._c;
1317
- return t("div", [t("div", { on: { click: function(a) {
1318
- e.expanded = !e.expanded;
1319
- } } }, [e._t("trigger", null, { expanded: e.expanded })], 2), t("transition", { on: { enter: e.onEnter, "after-enter": e.onAfterEnter, "before-leave": e.onBeforeLeave, leave: e.onLeave } }, [e.expanded ? t("div", { ref: "wrapper", staticClass: "c-accordion", style: e.wrapperStyle }, [t("div", { ref: "inner", staticClass: "c-accordion__inner" }, [e._t("default")], 2)]) : e._e()])], 1);
1320
- }, fe = [], ye = /* @__PURE__ */ d(
1321
- ge,
1322
- he,
1323
- fe,
73
+ var Ct = function() {
74
+ var t = this, e = t._self._c;
75
+ return e("div", [e("div", { on: { click: function(a) {
76
+ t.expanded = !t.expanded;
77
+ } } }, [t._t("trigger", null, { expanded: t.expanded })], 2), e("transition", { on: { enter: t.onEnter, "after-enter": t.onAfterEnter, "before-leave": t.onBeforeLeave, leave: t.onLeave } }, [t.expanded ? e("div", { ref: "wrapper", staticClass: "c-accordion", style: t.wrapperStyle }, [e("div", { ref: "inner", staticClass: "c-accordion__inner" }, [t._t("default")], 2)]) : t._e()])], 1);
78
+ }, bt = [], _t = /* @__PURE__ */ d(
79
+ vt,
80
+ Ct,
81
+ bt,
1324
82
  !1,
1325
83
  null,
1326
84
  null
1327
85
  );
1328
- const Ce = ye.exports, ve = {
86
+ const Pt = _t.exports, kt = {
1329
87
  name: "CalloutLegacy",
1330
88
  i18nOptions: {
1331
89
  namespaces: "components",
@@ -1371,34 +129,34 @@ const Ce = ye.exports, ve = {
1371
129
  mode: {
1372
130
  type: String,
1373
131
  default: "legacy",
1374
- validator: (n) => ["legacy", "invoice"].includes(n)
132
+ validator: (r) => ["legacy", "invoice"].includes(r)
1375
133
  }
1376
134
  }
1377
135
  };
1378
- var be = function() {
1379
- var e = this, t = e._self._c;
1380
- return t("div", { staticStyle: { border: "2px solid hsla(35, 100%, 50%, 0.2)", "background-color": "hsl(35, 100%, 91%)", padding: "1.5em", "border-radius": "8px", margin: "calc(2 * var(--rem)) 0 calc(3 * var(--rem)) 0" } }, [t("div", { staticStyle: { "font-weight": "600" }, domProps: { textContent: e._s(e.$t(`${e.mode}.title`)) } }), t("div", { staticStyle: { "font-size": "14px", opacity: "0.7", "margin-bottom": "2em" }, domProps: { textContent: e._s(e.$t(`${e.mode}.text`)) } }), t("CButton", { attrs: { to: { name: "settingsBilling", query: { highlight: e.mode } }, target: "_blank", type: "secondary", wide: "", "icon-right": "new-window" } }, [e._v(" " + e._s(e.$t(`${e.mode}.action`)) + " ")])], 1);
1381
- }, _e = [], Pe = /* @__PURE__ */ d(
1382
- ve,
1383
- be,
1384
- _e,
136
+ var xt = function() {
137
+ var t = this, e = t._self._c;
138
+ return e("div", { staticStyle: { border: "2px solid hsla(35, 100%, 50%, 0.2)", "background-color": "hsl(35, 100%, 91%)", padding: "1.5em", "border-radius": "8px", margin: "calc(2 * var(--rem)) 0 calc(3 * var(--rem)) 0" } }, [e("div", { staticStyle: { "font-weight": "600" }, domProps: { textContent: t._s(t.$t(`${t.mode}.title`)) } }), e("div", { staticStyle: { "font-size": "14px", opacity: "0.7", "margin-bottom": "2em" }, domProps: { textContent: t._s(t.$t(`${t.mode}.text`)) } }), e("CButton", { attrs: { to: { name: "settingsBilling", query: { highlight: t.mode } }, target: "_blank", type: "secondary", wide: "", "icon-right": "new-window" } }, [t._v(" " + t._s(t.$t(`${t.mode}.action`)) + " ")])], 1);
139
+ }, St = [], wt = /* @__PURE__ */ d(
140
+ kt,
141
+ xt,
142
+ St,
1385
143
  !1,
1386
144
  null,
1387
145
  null
1388
146
  );
1389
- const G = Pe.exports, Se = (n) => D.te(`errors:${n}`) && D.t(`errors:${n}`), ke = "stripe", {
1390
- LOAD_PRICES: A,
1391
- RESET_STRIPE_FORM: xe,
1392
- SET_STRIPE_FORM_VALUE: we,
1393
- SET_FORM_PROMOTION: V,
1394
- SUBMIT_PROMOTION_CODE: $e,
147
+ const Z = wt.exports, $t = (r) => L.te(`errors:${r}`) && L.t(`errors:${r}`), Tt = "stripe", {
148
+ LOAD_PRICES: U,
149
+ RESET_STRIPE_FORM: It,
150
+ SET_STRIPE_FORM_VALUE: Et,
151
+ SET_FORM_PROMOTION: A,
152
+ SUBMIT_PROMOTION_CODE: Mt,
1395
153
  SUBMIT_PAYMENT_METHOD: O,
1396
- SUBMIT_FORM_PLAN: Te,
1397
- REMOVE_SUBSCRIPTION_ITEM: Me,
1398
- CONFIRM_PAYMENT: N,
154
+ SUBMIT_FORM_PLAN: Lt,
155
+ REMOVE_SUBSCRIPTION_ITEM: Ht,
156
+ CONFIRM_PAYMENT: z,
1399
157
  SUBMIT_FORM_PAYMENT: w,
1400
- SUBMIT_FORM_PRODUCTS: Ee
1401
- } = ne, z = {
158
+ SUBMIT_FORM_PRODUCTS: Vt
159
+ } = rt, q = {
1402
160
  // The term "plan" refers to a _price_ connected to a _product_ with metadata.accountType
1403
161
  plan: { accountType: "pro", interval: "month", quantity: 1 },
1404
162
  customer: { name: "", email: "", region: null },
@@ -1409,9 +167,9 @@ const G = Pe.exports, Se = (n) => D.te(`errors:${n}`) && D.t(`errors:${n}`), ke
1409
167
  // Array of obj on format { quantity, stripePriceStripeId, stripeProductStripeId }
1410
168
  dealSource: null
1411
169
  // If the payment should be associated with a specific dealSource
1412
- }, q = {
1413
- SE: 0.25
1414
170
  }, j = {
171
+ SE: 0.25
172
+ }, N = {
1415
173
  namespaced: !0,
1416
174
  state: {
1417
175
  isFetching: !1,
@@ -1424,111 +182,111 @@ const G = Pe.exports, Se = (n) => D.te(`errors:${n}`) && D.t(`errors:${n}`), ke
1424
182
  base: { month: null, year: null },
1425
183
  pro: { month: null, year: null }
1426
184
  },
1427
- form: F(z)
185
+ form: F(q)
1428
186
  },
1429
187
  getters: {
1430
- isPosting: ({ isPosting: n }) => n,
1431
- subscriptions: (n, e, t, a) => C(a["application/companyAccount"], "StripeSubscriptions") || [],
1432
- subscriptionItems: (n, { subscriptions: e }) => {
1433
- const t = [];
1434
- return e.forEach(({ stripeItems: a = [] }) => {
1435
- Array.isArray(a) && a.forEach((r) => {
1436
- t.push({
1437
- quantity: r.quantity,
1438
- stripePriceStripeId: r.stripePriceStripeId,
1439
- stripeProductStripeId: r.stripeProductStripeId
188
+ isPosting: ({ isPosting: r }) => r,
189
+ subscriptions: (r, t, e, a) => v(a["application/companyAccount"], "StripeSubscriptions") || [],
190
+ subscriptionItems: (r, { subscriptions: t }) => {
191
+ const e = [];
192
+ return t.forEach(({ stripeItems: a = [] }) => {
193
+ Array.isArray(a) && a.forEach((n) => {
194
+ e.push({
195
+ quantity: n.quantity,
196
+ stripePriceStripeId: n.stripePriceStripeId,
197
+ stripeProductStripeId: n.stripeProductStripeId
1440
198
  });
1441
199
  });
1442
- }), t;
1443
- },
1444
- customer: (n, e, t, a) => C(a["application/companyAccount"], "StripeCustomer") || null,
1445
- products: ({ prices: n }) => {
1446
- const e = {};
1447
- return Object.keys(n).forEach((t) => {
1448
- const a = n[t];
1449
- e[a.stripeProductId] || (e[a.stripeProductId] = { ...a.StripeProduct, prices: [] }), e[a.stripeProductId].prices.push(a);
1450
200
  }), e;
1451
201
  },
1452
- getProduct: (n, e) => (t) => {
202
+ customer: (r, t, e, a) => v(a["application/companyAccount"], "StripeCustomer") || null,
203
+ products: ({ prices: r }) => {
204
+ const t = {};
205
+ return Object.keys(r).forEach((e) => {
206
+ const a = r[e];
207
+ t[a.stripeProductId] || (t[a.stripeProductId] = { ...a.StripeProduct, prices: [] }), t[a.stripeProductId].prices.push(a);
208
+ }), t;
209
+ },
210
+ getProduct: (r, t) => (e) => {
1453
211
  const a = {
1454
212
  fortnox: "Fortnox API"
1455
213
  // apiDocuments,
1456
214
  // sms,
1457
215
  // bankId,
1458
216
  };
1459
- if (!a[t])
1460
- throw new Error(`Invalid product: ${t}`);
1461
- return Object.values(e.products).find(
1462
- (r) => r.name === a[t]
217
+ if (!a[e])
218
+ throw new Error(`Invalid product: ${e}`);
219
+ return Object.values(t.products).find(
220
+ (n) => n.name === a[e]
1463
221
  );
1464
222
  },
1465
- getProductByPriceId: (n, e) => (t) => {
1466
- if (!t)
223
+ getProductByPriceId: (r, t) => (e) => {
224
+ if (!e)
1467
225
  throw new Error("Missing parameter stripeId");
1468
- const a = e.priceById(t);
226
+ const a = t.priceById(e);
1469
227
  return a ? {
1470
228
  stripePriceStripeId: a.stripeId,
1471
229
  stripeProductStripeId: a.stripeProductId,
1472
230
  quantity: 1
1473
231
  } : null;
1474
232
  },
1475
- getMeteredProduct: (n, e) => (t) => {
1476
- if (!t)
233
+ getMeteredProduct: (r, t) => (e) => {
234
+ if (!e)
1477
235
  throw new Error("Missing parameter meteredType");
1478
- const a = e.products, r = Object.keys(a).find(
1479
- (i) => C(a[i], "metadata.meteredType") === t
236
+ const a = t.products, n = Object.keys(a).find(
237
+ (i) => v(a[i], "metadata.meteredType") === e
1480
238
  );
1481
- return a[r];
1482
- },
1483
- formPromotion: (n) => n.form.promotion,
1484
- formCustomer: (n) => n.form.customer,
1485
- formDealSource: (n) => n.form.dealSource,
1486
- formError: (n) => n.form.error,
1487
- formPlan: (n, e) => {
1488
- const { accountType: t, interval: a, quantity: r } = n.form.plan;
1489
- if (!t || !a)
239
+ return a[n];
240
+ },
241
+ formPromotion: (r) => r.form.promotion,
242
+ formCustomer: (r) => r.form.customer,
243
+ formDealSource: (r) => r.form.dealSource,
244
+ formError: (r) => r.form.error,
245
+ formPlan: (r, t) => {
246
+ const { accountType: e, interval: a, quantity: n } = r.form.plan;
247
+ if (!e || !a)
1490
248
  return null;
1491
- if (t === "free")
1492
- return { accountType: t, interval: a, quantity: r };
1493
- const i = e.getPrice(t, a);
249
+ if (e === "free")
250
+ return { accountType: e, interval: a, quantity: n };
251
+ const i = t.getPrice(e, a);
1494
252
  return {
1495
- quantity: r,
1496
- accountType: t,
253
+ quantity: n,
254
+ accountType: e,
1497
255
  interval: a,
1498
256
  ...i
1499
257
  };
1500
258
  },
1501
- currentPlan: (n, e) => {
1502
- const { subscriptionItems: t } = e;
1503
- if (!t || !t.length)
259
+ currentPlan: (r, t) => {
260
+ const { subscriptionItems: e } = t;
261
+ if (!e || !e.length)
1504
262
  return null;
1505
- const a = t.find(
1506
- (i) => C(
1507
- n.prices[i.stripePriceStripeId],
263
+ const a = e.find(
264
+ (i) => v(
265
+ r.prices[i.stripePriceStripeId],
1508
266
  "StripeProduct.metadata.accountType"
1509
267
  )
1510
268
  );
1511
269
  if (!a)
1512
270
  return null;
1513
- const r = n.prices[a.stripePriceStripeId];
271
+ const n = r.prices[a.stripePriceStripeId];
1514
272
  return {
1515
- ...r,
273
+ ...n,
1516
274
  quantity: a.quantity,
1517
- accountType: r.StripeProduct.metadata.accountType
275
+ accountType: n.StripeProduct.metadata.accountType
1518
276
  };
1519
277
  },
1520
- priceById: (n) => (e) => n.prices[e],
1521
- getPrice: (n, e) => (t, a) => {
1522
- const { currentPlan: r } = e;
1523
- return r && r.accountType === t && r.interval === a && r.active ? r : n.prices[n.activePriceMap[t][a]] || null;
278
+ priceById: (r) => (t) => r.prices[t],
279
+ getPrice: (r, t) => (e, a) => {
280
+ const { currentPlan: n } = t;
281
+ return n && n.accountType === e && n.interval === a && n.active ? n : r.prices[r.activePriceMap[e][a]] || null;
1524
282
  },
1525
- formProducts: (n) => n.form.products,
283
+ formProducts: (r) => r.form.products,
1526
284
  /**
1527
285
  * Get price summaries for the current form configuration
1528
286
  * @returns {Object} Price obj on format { intervals: {}, currency }
1529
287
  */
1530
- formPrices: (n, e) => {
1531
- function t(i, s, c) {
288
+ formPrices: (r, t) => {
289
+ function e(i, s, l) {
1532
290
  const o = i;
1533
291
  return (!o.intervals[s] || !Object.keys(o.intervals[s]).length) && (o.intervals[s] = {
1534
292
  subTotalBeforeDiscount: 0,
@@ -1536,47 +294,47 @@ const G = Pe.exports, Se = (n) => D.te(`errors:${n}`) && D.t(`errors:${n}`), ke
1536
294
  subTotal: 0,
1537
295
  totalAmount: 0,
1538
296
  items: []
1539
- }), Object.keys(c).forEach((l) => {
1540
- Array.isArray(c[l]) ? o.intervals[s][l] = o.intervals[s][l].concat(c[l]) : o.intervals[s][l] += c[l];
297
+ }), Object.keys(l).forEach((c) => {
298
+ Array.isArray(l[c]) ? o.intervals[s][c] = o.intervals[s][c].concat(l[c]) : o.intervals[s][c] += l[c];
1541
299
  }), o;
1542
300
  }
1543
301
  let a = {
1544
302
  intervals: {},
1545
- currency: e.formPlan.currency
303
+ currency: t.formPlan.currency
1546
304
  };
1547
- function r() {
1548
- const i = (e.formPlan.amount || 0) * e.formPlan.quantity;
305
+ function n() {
306
+ const i = (t.formPlan.amount || 0) * t.formPlan.quantity;
1549
307
  let s = i;
1550
- e.formPromotion && (e.formPromotion.amountOff ? s -= e.formPromotion.amountOff : e.formPromotion.percentOff && (s *= 1 - e.formPromotion.percentOff / 100));
1551
- const c = s * (q[e.formCustomer.region] || 0), o = s + c;
1552
- a = t(a, e.formPlan.interval, {
308
+ t.formPromotion && (t.formPromotion.amountOff ? s -= t.formPromotion.amountOff : t.formPromotion.percentOff && (s *= 1 - t.formPromotion.percentOff / 100));
309
+ const l = s * (j[t.formCustomer.region] || 0), o = s + l;
310
+ a = e(a, t.formPlan.interval, {
1553
311
  subTotalBeforeDiscount: i,
1554
312
  subTotal: s,
1555
- vatAmount: c,
313
+ vatAmount: l,
1556
314
  totalAmount: o,
1557
315
  items: [
1558
316
  {
1559
- name: e.formPlan.accountType,
317
+ name: t.formPlan.accountType,
1560
318
  amount: i,
1561
- quantity: e.formPlan.quantity
319
+ quantity: t.formPlan.quantity
1562
320
  }
1563
321
  ]
1564
322
  });
1565
323
  }
1566
- return r(), e.formProducts.forEach((i) => {
1567
- const s = e.priceById(i.stripePriceStripeId);
324
+ return n(), t.formProducts.forEach((i) => {
325
+ const s = t.priceById(i.stripePriceStripeId);
1568
326
  if (s) {
1569
- let c = s.interval;
1570
- s.usageType === "one_time" && (c = "oneOff");
327
+ let l = s.interval;
328
+ s.usageType === "one_time" && (l = "oneOff");
1571
329
  const o = s.amount * i.quantity;
1572
- let l = o;
1573
- e.formPromotion && (e.formPromotion.amountOff ? l -= e.formPromotion.amountOff : e.formPromotion.percentOff && (l *= 1 - e.formPromotion.percentOff / 100));
1574
- const p = l * (q[e.formCustomer.region] || 0), g = l + p;
1575
- a = t(a, c, {
330
+ let c = o;
331
+ t.formPromotion && (t.formPromotion.amountOff ? c -= t.formPromotion.amountOff : t.formPromotion.percentOff && (c *= 1 - t.formPromotion.percentOff / 100));
332
+ const p = c * (j[t.formCustomer.region] || 0), f = c + p;
333
+ a = e(a, l, {
1576
334
  subTotalBeforeDiscount: o,
1577
- subTotal: l,
335
+ subTotal: c,
1578
336
  vatAmount: p,
1579
- totalAmount: g,
337
+ totalAmount: f,
1580
338
  items: [
1581
339
  {
1582
340
  name: s.StripeProduct.name,
@@ -1590,69 +348,69 @@ const G = Pe.exports, Se = (n) => D.te(`errors:${n}`) && D.t(`errors:${n}`), ke
1590
348
  }
1591
349
  },
1592
350
  actions: {
1593
- async [A]({ commit: n }) {
351
+ async [U]({ commit: r }) {
1594
352
  try {
1595
- n("setFetching", !0);
1596
- const { data: e } = await M.getPrices();
1597
- n("setPrices", { data: e }), n("setActivePriceMap");
1598
- } catch (e) {
1599
- this.handleError(e, {
1600
- action: `${ke}/${A}`,
353
+ r("setFetching", !0);
354
+ const { data: t } = await I.getPrices();
355
+ r("setPrices", { data: t }), r("setActivePriceMap");
356
+ } catch (t) {
357
+ this.handleError(t, {
358
+ action: `${Tt}/${U}`,
1601
359
  actionPayload: null
1602
360
  });
1603
361
  } finally {
1604
- n("setFetching", !1);
362
+ r("setFetching", !1);
1605
363
  }
1606
364
  },
1607
- async [xe]({ commit: n }) {
1608
- n("setForm", F(z));
365
+ async [It]({ commit: r }) {
366
+ r("setForm", F(q));
1609
367
  },
1610
- async [we]({ commit: n }, { key: e, value: t }) {
1611
- n("setFormValue", { key: e, value: t });
368
+ async [Et]({ commit: r }, { key: t, value: e }) {
369
+ r("setFormValue", { key: t, value: e });
1612
370
  },
1613
- [V]({ commit: n, getters: e }, { promotionDetails: t, code: a = null } = {}) {
1614
- if (!t)
371
+ [A]({ commit: r, getters: t }, { promotionDetails: e, code: a = null } = {}) {
372
+ if (!e)
1615
373
  return !1;
1616
- const { appliesToStripeProductIds: r } = t, { stripeProductId: i } = e.formPlan || {};
1617
- return Array.isArray(r) && !r.includes(i) ? !1 : (n("setFormValue", {
374
+ const { appliesToStripeProductIds: n } = e, { stripeProductId: i } = t.formPlan || {};
375
+ return Array.isArray(n) && !n.includes(i) ? !1 : (r("setFormValue", {
1618
376
  key: "promotion",
1619
- value: { ...t, code: a }
377
+ value: { ...e, code: a }
1620
378
  }), !0);
1621
379
  },
1622
- async [$e]({ commit: n, getters: e, dispatch: t }, a) {
380
+ async [Mt]({ commit: r, getters: t, dispatch: e }, a) {
1623
381
  try {
1624
- if (e.isPosting || !a)
382
+ if (t.isPosting || !a)
1625
383
  return !1;
1626
- n("setPosting", !0);
1627
- const { data: r } = await X(a);
1628
- return t(V, {
1629
- promotionDetails: r,
384
+ r("setPosting", !0);
385
+ const { data: n } = await J(a);
386
+ return e(A, {
387
+ promotionDetails: n,
1630
388
  code: a
1631
389
  });
1632
390
  } catch {
1633
391
  return !1;
1634
392
  } finally {
1635
- n("setPosting", !1);
393
+ r("setPosting", !1);
1636
394
  }
1637
395
  },
1638
396
  // Submit payment method to Stripe
1639
- async [O]({ commit: n }, { cardElement: e }) {
1640
- const t = window.$stripe;
397
+ async [O]({ commit: r }, { cardElement: t }) {
398
+ const e = window.$stripe;
1641
399
  try {
1642
- if (!e)
1643
- throw new Error("Missing parameter cardElement");
1644
400
  if (!t)
401
+ throw new Error("Missing parameter cardElement");
402
+ if (!e)
1645
403
  throw new Error("Stripe is not installed on the window");
1646
- n("setPostingPaymentMethod", !0);
1647
- const { paymentMethod: a = {}, error: r } = await t.createPaymentMethod("card", e);
1648
- if (r)
1649
- throw new Error(r.message || "Card Error");
1650
- const { id: i } = a, { last4: s, brand: c } = a.card || {};
1651
- return { id: i, last4: s, brand: c };
404
+ r("setPostingPaymentMethod", !0);
405
+ const { paymentMethod: a = {}, error: n } = await e.createPaymentMethod("card", t);
406
+ if (n)
407
+ throw new Error(n.message || "Card Error");
408
+ const { id: i } = a, { last4: s, brand: l } = a.card || {};
409
+ return { id: i, last4: s, brand: l };
1652
410
  } catch (a) {
1653
411
  return this.handleError(a), null;
1654
412
  } finally {
1655
- n("setPostingPaymentMethod", !1);
413
+ r("setPostingPaymentMethod", !1);
1656
414
  }
1657
415
  },
1658
416
  /**
@@ -1663,65 +421,65 @@ const G = Pe.exports, Se = (n) => D.te(`errors:${n}`) && D.t(`errors:${n}`), ke
1663
421
  * @param {Boolean} obj.removeUnusedItems Optional if items not specified should be removed, defaults true
1664
422
  * @returns {Promise<Boolean>} Resolves with true if successful, otherwise false
1665
423
  */
1666
- async [w]({ commit: n, getters: e, dispatch: t }, { form: a, stripe: { cardElement: r } = {}, removeUnusedItems: i = !0 } = {}) {
424
+ async [w]({ commit: r, getters: t, dispatch: e }, { form: a, stripe: { cardElement: n } = {}, removeUnusedItems: i = !0 } = {}) {
1667
425
  try {
1668
- n("setPosting", !0), n("setFormValue", { key: "error", value: null });
1669
- const { items: s } = a, { formCustomer: c, formPromotion: o, customer: l, formDealSource: p } = e;
1670
- let g;
1671
- r && (g = await t(O, { cardElement: r }));
1672
- const S = { ...c, items: s };
1673
- g && (S.paymentMethod = g), o && o.code && (S.promotionCode = o.code), p && (S.dealSource = p);
1674
- const { data: W = {} } = await M.product(S, {
426
+ r("setPosting", !0), r("setFormValue", { key: "error", value: null });
427
+ const { items: s } = a, { formCustomer: l, formPromotion: o, customer: c, formDealSource: p } = t;
428
+ let f;
429
+ n && (f = await e(O, { cardElement: n }));
430
+ const k = { ...l, items: s };
431
+ f && (k.paymentMethod = f), o && o.code && (k.promotionCode = o.code), p && (k.dealSource = p);
432
+ const { data: G = {} } = await I.product(k, {
1675
433
  removeUnusedItems: i
1676
- }), { clientSecrets: T } = W, R = g && g.id ? g.id : l && l.paymentMethodId;
1677
- return T && T.length && R ? await t(N, {
434
+ }), { clientSecrets: T } = G, V = f && f.id ? f.id : c && c.paymentMethodId;
435
+ return T && T.length && V ? await e(z, {
1678
436
  clientSecrets: T,
1679
- paymentMethodId: R
437
+ paymentMethodId: V
1680
438
  }) : !0;
1681
439
  } catch (s) {
1682
440
  this.handleError(s);
1683
- const c = (s.errorCode ? Se(s.errorCode) : "") || s.message;
1684
- return n("setFormValue", {
441
+ const l = (s.errorCode ? $t(s.errorCode) : "") || s.message;
442
+ return r("setFormValue", {
1685
443
  key: "error",
1686
- value: c || "Submit Form Payment Error"
444
+ value: l || "Submit Form Payment Error"
1687
445
  }), !1;
1688
446
  } finally {
1689
- n("setPosting", !1);
447
+ r("setPosting", !1);
1690
448
  }
1691
449
  },
1692
- async [Te]({ commit: n, dispatch: e, getters: t }, { cardElement: a } = {}) {
450
+ async [Lt]({ commit: r, dispatch: t, getters: e }, { cardElement: a } = {}) {
1693
451
  try {
1694
- const { formPlan: r, formProducts: i, products: s, subscriptionItems: c } = t;
1695
- if (!r)
452
+ const { formPlan: n, formProducts: i, products: s, subscriptionItems: l } = e;
453
+ if (!n)
1696
454
  return !1;
1697
- const o = [...c], l = o.findIndex(
1698
- (p) => C(s[p.stripeProductStripeId], "metadata.accountType")
455
+ const o = [...l], c = o.findIndex(
456
+ (p) => v(s[p.stripeProductStripeId], "metadata.accountType")
1699
457
  );
1700
- return l !== -1 && o.splice(l, 1), o.push({
1701
- stripePriceStripeId: r.stripeId,
1702
- stripeProductStripeId: r.stripeProductId,
1703
- quantity: r.quantity
1704
- }), o.push(...i), await e(w, {
458
+ return c !== -1 && o.splice(c, 1), o.push({
459
+ stripePriceStripeId: n.stripeId,
460
+ stripeProductStripeId: n.stripeProductId,
461
+ quantity: n.quantity
462
+ }), o.push(...i), await t(w, {
1705
463
  form: { items: o },
1706
464
  stripe: { cardElement: a }
1707
465
  });
1708
- } catch (r) {
1709
- return this.handleError(r), n("setFormValue", {
466
+ } catch (n) {
467
+ return this.handleError(n), r("setFormValue", {
1710
468
  key: "error",
1711
- value: r.message || "Submit Plan Error"
469
+ value: n.message || "Submit Plan Error"
1712
470
  }), !1;
1713
471
  }
1714
472
  },
1715
- async [Ee]({ commit: n, dispatch: e, getters: t }, { cardElement: a, removeUnusedItems: r = !0 } = {}) {
473
+ async [Vt]({ commit: r, dispatch: t, getters: e }, { cardElement: a, removeUnusedItems: n = !0 } = {}) {
1716
474
  try {
1717
- const { formProducts: i } = t, s = [...i];
1718
- return s.length ? await e(w, {
475
+ const { formProducts: i } = e, s = [...i];
476
+ return s.length ? await t(w, {
1719
477
  form: { items: s },
1720
478
  stripe: { cardElement: a },
1721
- removeUnusedItems: r
479
+ removeUnusedItems: n
1722
480
  }) : !1;
1723
481
  } catch (i) {
1724
- return this.handleError(i), n("setFormValue", {
482
+ return this.handleError(i), r("setFormValue", {
1725
483
  key: "error",
1726
484
  value: i.message || "Submit Products Error"
1727
485
  }), !1;
@@ -1736,30 +494,30 @@ const G = Pe.exports, Se = (n) => D.te(`errors:${n}`) && D.t(`errors:${n}`), ke
1736
494
  * @param {String} obj.paymentMethodId The stripe payment method id to use
1737
495
  * @returns {Promise<Boolean>} Resolves with true if successful, otherwise false
1738
496
  */
1739
- async [N]({ commit: n }, { clientSecrets: e = [], paymentMethodId: t }) {
497
+ async [z]({ commit: r }, { clientSecrets: t = [], paymentMethodId: e }) {
1740
498
  const a = window.$stripe;
1741
499
  try {
1742
- if (!t)
500
+ if (!e)
1743
501
  throw new Error("Missing parameter paymentMethodId");
1744
502
  if (!a)
1745
503
  throw new Error("Stripe is not installed on the window");
1746
- if (!Array.isArray(e))
504
+ if (!Array.isArray(t))
1747
505
  throw new Error("Param clientSecrets needs to be an array");
1748
- return await e.reduce(async (i, s) => {
506
+ return await t.reduce(async (i, s) => {
1749
507
  await i;
1750
- const { paymentIntent: c, error: o } = await a.confirmCardPayment(s, {
1751
- payment_method: t
508
+ const { paymentIntent: l, error: o } = await a.confirmCardPayment(s, {
509
+ payment_method: e
1752
510
  });
1753
- return o ? (o.message && n("setFormValue", {
511
+ return o ? (o.message && r("setFormValue", {
1754
512
  key: "error",
1755
513
  value: o.message
1756
- }), await M.cancelAll({
514
+ }), await I.cancelAll({
1757
515
  immediately: !0,
1758
516
  status: "incomplete"
1759
- }), !1) : c && c.status === "succeeded";
517
+ }), !1) : l && l.status === "succeeded";
1760
518
  }, Promise.resolve());
1761
- } catch (r) {
1762
- return this.handleError(r), !1;
519
+ } catch (n) {
520
+ return this.handleError(n), !1;
1763
521
  }
1764
522
  },
1765
523
  /**
@@ -1770,54 +528,54 @@ const G = Pe.exports, Se = (n) => D.te(`errors:${n}`) && D.t(`errors:${n}`), ke
1770
528
  * @param {String} obj.stripePriceStripeId priceId to remove
1771
529
  * @returns {Promise<Boolean>} Resolves with true if successful, otherwise false
1772
530
  */
1773
- async [Me]({ commit: n, dispatch: e, getters: t }, { stripePriceStripeId: a }) {
531
+ async [Ht]({ commit: r, dispatch: t, getters: e }, { stripePriceStripeId: a }) {
1774
532
  try {
1775
533
  if (!a)
1776
534
  throw new Error("Missing parameter stripePriceStripeId");
1777
- n("setPosting", !0);
1778
- const { subscriptionItems: r } = t;
1779
- let i = [...r];
535
+ r("setPosting", !0);
536
+ const { subscriptionItems: n } = e;
537
+ let i = [...n];
1780
538
  return i = i.filter(
1781
539
  (s) => s.stripePriceStripeId !== a
1782
- ), await e(w, { form: { items: i } });
1783
- } catch (r) {
1784
- return this.handleError(r), !1;
540
+ ), await t(w, { form: { items: i } });
541
+ } catch (n) {
542
+ return this.handleError(n), !1;
1785
543
  } finally {
1786
- n("setPosting", !1);
544
+ r("setPosting", !1);
1787
545
  }
1788
546
  }
1789
547
  },
1790
548
  mutations: {
1791
- setFetching: (n, e) => {
1792
- n.isFetching = e;
549
+ setFetching: (r, t) => {
550
+ r.isFetching = t;
1793
551
  },
1794
- setPosting: (n, e) => {
1795
- n.isPosting = e;
552
+ setPosting: (r, t) => {
553
+ r.isPosting = t;
1796
554
  },
1797
- setPostingPaymentMethod: (n, e) => {
1798
- n.isPostingPaymentMethod = e;
555
+ setPostingPaymentMethod: (r, t) => {
556
+ r.isPostingPaymentMethod = t;
1799
557
  },
1800
558
  // --- Prices ---
1801
- setPrices: (n, { data: e = [] }) => {
1802
- if (typeof e != "object")
559
+ setPrices: (r, { data: t = [] }) => {
560
+ if (typeof t != "object")
1803
561
  throw Error("Data must be a priceItem or array of priceItems!");
1804
- const t = Array.isArray(e) ? e : [e], { ids: a, values: r } = Q(t, { keyId: "stripeId" });
1805
- J(n.prices, r), n.priceIds = ee([...a, ...n.priceIds]);
562
+ const e = Array.isArray(t) ? t : [t], { ids: a, values: n } = K(e, { keyId: "stripeId" });
563
+ X(r.prices, n), r.priceIds = tt([...a, ...r.priceIds]);
1806
564
  },
1807
- setActivePriceMap: ({ prices: n, activePriceMap: e }) => Object.keys(n).forEach((t) => {
1808
- const a = n[t], r = C(a, "StripeProduct.metadata.accountType");
1809
- r && a.active && C(a, "metadata.visible") === !0 && (e[r][a.interval] = t);
565
+ setActivePriceMap: ({ prices: r, activePriceMap: t }) => Object.keys(r).forEach((e) => {
566
+ const a = r[e], n = v(a, "StripeProduct.metadata.accountType");
567
+ n && a.active && v(a, "metadata.visible") === !0 && (t[n][a.interval] = e);
1810
568
  }),
1811
569
  // --- Form ---
1812
- setForm: (n, e) => {
1813
- U.set(n, "form", e);
570
+ setForm: (r, t) => {
571
+ B.set(r, "form", t);
1814
572
  },
1815
- setFormValue: (n, { key: e, value: t }) => {
1816
- const { root: a, prop: r } = te(n, `form.${e}`);
1817
- U.set(a, r, t);
573
+ setFormValue: (r, { key: t, value: e }) => {
574
+ const { root: a, prop: n } = et(r, `form.${t}`);
575
+ B.set(a, n, e);
1818
576
  }
1819
577
  }
1820
- }, Ie = {
578
+ }, Ft = {
1821
579
  props: {
1822
580
  colors: {
1823
581
  type: Array,
@@ -1852,50 +610,50 @@ const G = Pe.exports, Se = (n) => D.te(`errors:${n}`) && D.t(`errors:${n}`), ke
1852
610
  setCanvasSize() {
1853
611
  this.canvasEl.width = window.innerWidth * 2, this.canvasEl.height = window.innerHeight * 2, this.canvasEl.style.width = `${window.innerWidth}px`, this.canvasEl.style.height = `${window.innerHeight}px`, this.canvasEl.getContext("2d").scale(2, 2);
1854
612
  },
1855
- updateCoords(n) {
1856
- this.pointerX = n.clientX || n.touches[0].clientX, this.pointerY = n.clientY || n.touches[0].clientY;
613
+ updateCoords(r) {
614
+ this.pointerX = r.clientX || r.touches[0].clientX, this.pointerY = r.clientY || r.touches[0].clientY;
1857
615
  },
1858
- setParticleDirection(n) {
1859
- const e = u.random(0, 360) * Math.PI / 180, t = u.random(100, 300), a = [-1, 1][u.random(0, 1)] * t;
616
+ setParticleDirection(r) {
617
+ const t = u.random(0, 360) * Math.PI / 180, e = u.random(100, 300), a = [-1, 1][u.random(0, 1)] * e;
1860
618
  return {
1861
- x: n.x + a * Math.cos(e),
1862
- y: n.y + a * Math.sin(e)
619
+ x: r.x + a * Math.cos(t),
620
+ y: r.y + a * Math.sin(t)
1863
621
  };
1864
622
  },
1865
- createParticle(n, e) {
1866
- const t = {};
1867
- return t.x = n, t.y = e, t.color = this.colors[u.random(0, this.colors.length - 1)], t.radius = u.random(24, 50), t.endPos = this.setParticleDirection(t), t.draw = () => {
1868
- this.ctx.beginPath(), this.ctx.arc(t.x, t.y, t.radius, 0, 2 * Math.PI, !0), this.ctx.fillStyle = t.color, this.ctx.fill();
1869
- }, t;
623
+ createParticle(r, t) {
624
+ const e = {};
625
+ return e.x = r, e.y = t, e.color = this.colors[u.random(0, this.colors.length - 1)], e.radius = u.random(24, 50), e.endPos = this.setParticleDirection(e), e.draw = () => {
626
+ this.ctx.beginPath(), this.ctx.arc(e.x, e.y, e.radius, 0, 2 * Math.PI, !0), this.ctx.fillStyle = e.color, this.ctx.fill();
627
+ }, e;
1870
628
  },
1871
- createCircle(n, e) {
1872
- const t = {};
1873
- return t.x = n, t.y = e, t.color = "hsl(205, 100%, 50%)", t.radius = 0.1, t.alpha = 0.5, t.lineWidth = 6, t.draw = () => {
1874
- this.ctx.globalAlpha = t.alpha, this.ctx.beginPath(), this.ctx.arc(t.x, t.y, t.radius, 0, 2 * Math.PI, !0), this.ctx.lineWidth = t.lineWidth, this.ctx.strokeStyle = t.color, this.ctx.stroke(), this.ctx.globalAlpha = 1;
1875
- }, t;
1876
- },
1877
- renderParticle(n) {
1878
- for (let e = 0; e < n.animatables.length; e++)
1879
- n.animatables[e].target.draw();
1880
- },
1881
- animateParticles(n, e) {
1882
- const t = this.createCircle(n, e), a = [];
1883
- for (let r = 0; r < this.numberOfParticles; r++)
1884
- a.push(this.createParticle(n, e));
629
+ createCircle(r, t) {
630
+ const e = {};
631
+ return e.x = r, e.y = t, e.color = "hsl(205, 100%, 50%)", e.radius = 0.1, e.alpha = 0.5, e.lineWidth = 6, e.draw = () => {
632
+ this.ctx.globalAlpha = e.alpha, this.ctx.beginPath(), this.ctx.arc(e.x, e.y, e.radius, 0, 2 * Math.PI, !0), this.ctx.lineWidth = e.lineWidth, this.ctx.strokeStyle = e.color, this.ctx.stroke(), this.ctx.globalAlpha = 1;
633
+ }, e;
634
+ },
635
+ renderParticle(r) {
636
+ for (let t = 0; t < r.animatables.length; t++)
637
+ r.animatables[t].target.draw();
638
+ },
639
+ animateParticles(r, t) {
640
+ const e = this.createCircle(r, t), a = [];
641
+ for (let n = 0; n < this.numberOfParticles; n++)
642
+ a.push(this.createParticle(r, t));
1885
643
  u.timeline().add({
1886
644
  targets: a,
1887
- x(r) {
1888
- return r.endPos.x;
645
+ x(n) {
646
+ return n.endPos.x;
1889
647
  },
1890
- y(r) {
1891
- return r.endPos.y;
648
+ y(n) {
649
+ return n.endPos.y;
1892
650
  },
1893
651
  radius: 0.1,
1894
652
  duration: u.random(1200, 1800),
1895
653
  easing: "easeOutExpo",
1896
654
  update: this.renderParticle
1897
655
  }).add({
1898
- targets: t,
656
+ targets: e,
1899
657
  radius: u.random(80, 160),
1900
658
  lineWidth: 0,
1901
659
  alpha: {
@@ -1910,36 +668,36 @@ const G = Pe.exports, Se = (n) => D.te(`errors:${n}`) && D.t(`errors:${n}`), ke
1910
668
  });
1911
669
  },
1912
670
  autoClick() {
1913
- const n = window.innerWidth / 2, e = window.innerHeight / 2;
671
+ const r = window.innerWidth / 2, t = window.innerHeight / 2;
1914
672
  this.animate && (this.animateParticles(
1915
- u.random(n - 50, n + 50),
673
+ u.random(r - 50, r + 50),
1916
674
  // 50 as constant
1917
- u.random(e - 50, e + 50)
675
+ u.random(t - 50, t + 50)
1918
676
  // 50 as constant
1919
677
  ), u({ duration: 500 }).finished.then(this.autoClick));
1920
678
  },
1921
679
  getRootElm() {
1922
- var t, a;
1923
- const n = (a = (t = this.$el).getRootNode) == null ? void 0 : a.call(t);
1924
- return (n == null ? void 0 : n.toString()) === "[object ShadowRoot]" ? n : document;
680
+ var e, a;
681
+ const r = (a = (e = this.$el).getRootNode) == null ? void 0 : a.call(e);
682
+ return (r == null ? void 0 : r.toString()) === "[object ShadowRoot]" ? r : document;
1925
683
  }
1926
684
  }
1927
685
  };
1928
- var De = function() {
1929
- var e = this;
1930
- return e._self._c, e._m(0);
1931
- }, Le = [function() {
1932
- var n = this, e = n._self._c;
1933
- return e("div", [e("canvas", { attrs: { id: "fireworks" } })]);
1934
- }], Re = /* @__PURE__ */ d(
1935
- Ie,
1936
- De,
1937
- Le,
686
+ var Bt = function() {
687
+ var t = this;
688
+ return t._self._c, t._m(0);
689
+ }, Dt = [function() {
690
+ var r = this, t = r._self._c;
691
+ return t("div", [t("canvas", { attrs: { id: "fireworks" } })]);
692
+ }], Rt = /* @__PURE__ */ d(
693
+ Ft,
694
+ Bt,
695
+ Dt,
1938
696
  !1,
1939
697
  null,
1940
- "18ad2709"
698
+ "87d7774b"
1941
699
  );
1942
- const Fe = Re.exports, Ue = {
700
+ const Ut = Rt.exports, At = {
1943
701
  amex: {
1944
702
  name: "American Express",
1945
703
  logo: '<g><rect width="48" height="32" rx="4" fill="white"/><g><path d="M8.88 17.9V26.06H17.14L18 24.84L18.84 26.06H23.89V24.22H24.45C24.9584 24.2244 25.4643 24.1502 25.95 24V26.06H29.38V24.6L30.54 26.06H46.16C46.802 26.0712 47.4338 25.8977 47.98 25.56V29C47.5224 30.7722 45.9203 32.0078 44.09 32H4C1.79086 32 0 30.2091 0 28V15.4H2.28L2.75 14.18H3.87L4.33 15.4H22.67V13.94L23.83 15.4H28.64V14.66C29.3453 15.1621 30.1945 15.4217 31.06 15.4H33.93L34.39 14.18H35.51L36 15.4H40.9V13.82L41.9 15.4H45.28V7.24H41.69V8.9L40.62 7.24H37.48V9.34L36.48 7.24H31.14C30.2366 7.21382 29.3524 7.50384 28.64 8.06V7.24H11L10.4 9L9.8 7.2H5.8V9.3L4.86 7.2H1.6L0 11V4C0 1.79086 1.79086 1.31011e-07 4 1.31011e-07H44.09C45.9278 -0.0169872 47.5406 1.2205 48 3V17.9H18.86L18 19.1L17.16 17.9H8.88Z" fill="#296DB6"/><path fill-rule="evenodd" clip-rule="evenodd" d="M21.32 19.2H24.43V19.16C24.9479 19.1165 25.4595 19.2976 25.8345 19.6574C26.2096 20.0171 26.4119 20.5208 26.39 21.04C26.4028 21.5655 26.1927 22.0718 25.8116 22.4338C25.4306 22.7958 24.9141 22.9797 24.39 22.94H22.69V24.8H21.32V19.2ZM14.71 20.36V19.16H10.18V24.8H14.71V23.6H11.54V22.6H14.65V21.38H11.54V20.38L14.71 20.36ZM18.8 22L21.06 19.2H19.4L18 20.94L16.61 19.16H14.91L17.2 22L15 24.8H16.64L18 23L19.36 24.82H21.08L18.8 22ZM24.31 21.78H22.69V20.36H24.31C24.6911 20.36 25 20.6689 25 21.05C25 21.4311 24.6911 21.74 24.31 21.74V21.78ZM32.17 20.79C32.286 21.7731 31.5831 22.664 30.6 22.78L32.49 24.8H30.78L29.1 22.8H28.48V24.8H27.12V19.22H30.18C31.1631 19.104 32.054 19.8069 32.17 20.79ZM30.06 21.66H28.48V20.36H30.06C30.2378 20.3369 30.4169 20.3918 30.5511 20.5107C30.6853 20.6296 30.7615 20.8007 30.76 20.98C30.7649 21.1604 30.6898 21.3337 30.5547 21.4533C30.4196 21.573 30.2385 21.6267 30.06 21.6V21.66ZM37.36 19.22V20.42L34.19 20.38V21.38H37.28V22.6H34.19V23.6H37.36V24.8H32.81V19.22H37.36ZM41.13 21.42H39.82C39.6175 21.4607 39.4105 21.3753 39.2956 21.2036C39.1808 21.032 39.1808 20.808 39.2956 20.6364C39.4105 20.4647 39.6175 20.3793 39.82 20.42H42.25L42.79 19.22H39.86C39.3615 19.1622 38.8623 19.3225 38.4906 19.6597C38.1189 19.9969 37.9109 20.4782 37.92 20.98C37.8896 21.4469 38.0691 21.903 38.4094 22.2241C38.7498 22.5451 39.2157 22.6976 39.68 22.64H41C41.2025 22.5993 41.4095 22.6847 41.5244 22.8564C41.6392 23.028 41.6392 23.252 41.5244 23.4236C41.4095 23.5953 41.2025 23.6807 41 23.64H38.08V24.84H41C41.5039 24.8812 42.0011 24.7024 42.3634 24.3497C42.7257 23.997 42.9177 23.5049 42.89 23C42.9153 22.5378 42.7326 22.0885 42.392 21.775C42.0514 21.4615 41.5885 21.3166 41.13 21.38V21.42ZM47.46 20.42H45.03L45 20.38C44.7975 20.3393 44.5905 20.4247 44.4756 20.5964C44.3608 20.768 44.3608 20.992 44.4756 21.1636C44.5905 21.3353 44.7975 21.4207 45 21.38H46.36C47.0518 21.3089 47.7118 21.6871 48 22.32V23.66C47.7246 24.4224 46.9666 24.9003 46.16 24.82H43.29V23.62H46.18C46.3825 23.6607 46.5895 23.5753 46.7044 23.4036C46.8192 23.232 46.8192 23.008 46.7044 22.8364C46.5895 22.6647 46.3825 22.5793 46.18 22.62H44.89C44.4257 22.6776 43.9598 22.5251 43.6194 22.2041C43.2791 21.883 43.0996 21.4269 43.13 20.96C43.1209 20.4582 43.3289 19.9769 43.7006 19.6397C44.0723 19.3025 44.5715 19.1422 45.07 19.2H48L47.46 20.42Z" fill="#296DB6"/><path fill-rule="evenodd" clip-rule="evenodd" d="M25.45 10.28C25.4719 11.1815 24.8053 11.9521 23.91 12.06L25.79 14.14H24.09L22.41 12.14H21.79V14.14H20.4V8.5H23.45C23.9596 8.43317 24.473 8.59111 24.8569 8.93278C25.2408 9.27446 25.4573 9.76612 25.45 10.28ZM4.23 8.5H2.45L0 14.14H1.48L2 13H4.63L5.11 14.18H6.65L4.23 8.5ZM2.38 11.86L2.93 10.54L3.29 9.66L3.65 10.54L4.19 11.86H2.38ZM10.6 11.76L11.7 8.5H13.89V14.14H12.57V10.44V9.58L12.31 10.44L11 14.14H9.8L8.52 10.44L8.24 9.58V10.44V14.14H6.91V8.5H9.12L10.24 11.76L10.42 12.38L10.6 11.76ZM19.5 9.7V8.5H15V14.14H19.5V12.94H16.33V11.94H19.42V10.72H16.33V9.72L19.5 9.7ZM23.37 10.94H21.79V9.7H23.37C23.5471 9.68019 23.7243 9.73632 23.8577 9.85449C23.9912 9.97265 24.0683 10.1418 24.07 10.32C24.0749 10.5004 23.9998 10.6737 23.8647 10.7933C23.7296 10.913 23.5485 10.9667 23.37 10.94ZM26.11 14.14V8.5H27.48V14.14H26.11ZM31.11 9.72H32.58V8.5H31C30.2562 8.45299 29.5291 8.7337 29.0099 9.26831C28.4907 9.80292 28.2313 10.5379 28.3 11.28V11.36C28.2164 12.0915 28.4596 12.8226 28.9645 13.3583C29.4694 13.8941 30.1849 14.1801 30.92 14.14H31L31.55 12.94H31.1C30.685 12.9613 30.2819 12.7972 29.9999 12.492C29.7179 12.1868 29.586 11.772 29.64 11.36V11.28C29.5925 10.8712 29.7272 10.4621 30.0085 10.1616C30.2897 9.86113 30.6889 9.69961 31.1 9.72H31.11ZM34.09 8.5H35.89L38.3 14.18H36.76L36.28 13H33.61L33.13 14.14H31.67L34.09 8.5ZM34.05 11.86L34.57 10.54L34.93 9.66L35.27 10.54L35.81 11.86H34.05ZM42.61 11.5V8.5H44V14.14H42.35L40.26 10.96L39.9 10.34V11V14.18H38.56V8.54H40.23L42.23 11.54L42.61 12.18V11.5Z" fill="#296DB6"/></g></g>'
@@ -1972,23 +730,23 @@ const Fe = Re.exports, Ue = {
1972
730
  name: "Credit Card",
1973
731
  logo: '<rect width="48" height="32" rx="4" fill="#D9D9DF"/><rect y="7" width="48" height="7" fill="#51516A"/>'
1974
732
  },
1975
- get(n, { width: e = 48, height: t = 32 } = {}) {
1976
- const a = this[n] ? this[n] : this.default, r = a.logo, i = `<svg width="${e}" height="${t}" viewBox="0 0 48 32" fill="none" xmlns="http://www.w3.org/2000/svg">${r}</svg>`;
733
+ get(r, { width: t = 48, height: e = 32 } = {}) {
734
+ const a = this[r] ? this[r] : this.default, n = a.logo, i = `<svg width="${t}" height="${e}" viewBox="0 0 48 32" fill="none" xmlns="http://www.w3.org/2000/svg">${n}</svg>`;
1977
735
  return {
1978
736
  name: a.name,
1979
737
  logo: i
1980
738
  };
1981
739
  }
1982
- }, He = (n) => {
740
+ }, Ot = (r) => {
1983
741
  if (document.getElementById("stripe-js"))
1984
- return n();
1985
- const e = "js.stripe.com/v3/", t = document.createElement("script"), a = document.getElementsByTagName("script")[0];
1986
- return t.src = `https://${e}`, t.id = "stripe-js", n && t.addEventListener("load", (r) => n(null, r), !1), a.parentNode.insertBefore(t, a), !0;
1987
- }, Be = (n) => He(() => {
742
+ return r();
743
+ const t = "js.stripe.com/v3/", e = document.createElement("script"), a = document.getElementsByTagName("script")[0];
744
+ return e.src = `https://${t}`, e.id = "stripe-js", r && e.addEventListener("load", (n) => r(null, n), !1), a.parentNode.insertBefore(e, a), !0;
745
+ }, zt = (r) => Ot(() => {
1988
746
  window.$stripe = Stripe(h.stripe.publishableKey, {
1989
- locale: D.lang || "en"
1990
- }), typeof n == "function" && n();
1991
- }), Z = {
747
+ locale: L.lang || "en"
748
+ }), typeof r == "function" && r();
749
+ }), Y = {
1992
750
  data() {
1993
751
  return {
1994
752
  stripeCardElementId: null,
@@ -2006,7 +764,7 @@ const Fe = Re.exports, Ue = {
2006
764
  };
2007
765
  },
2008
766
  created() {
2009
- Be(() => {
767
+ zt(() => {
2010
768
  this.stripe = window.$stripe, this.$nextTick(() => {
2011
769
  this.elements = this.stripe.elements(), this.stripeCardElementId && this.configureStripeCard(this.stripeCardElementId);
2012
770
  });
@@ -2018,28 +776,28 @@ const Fe = Re.exports, Ue = {
2018
776
  methods: {
2019
777
  mountCardInput() {
2020
778
  if (this.isShadowParent()) {
2021
- const n = this.getRootElm().querySelector(this.stripeCardElementId);
2022
- this.copyInputStyle(n);
779
+ const r = this.getRootElm().querySelector(this.stripeCardElementId);
780
+ this.copyInputStyle(r);
2023
781
  }
2024
782
  this.stripeCardElementId && this.callCard("mount", this.stripeCardElementId);
2025
783
  },
2026
784
  unmountCardInput() {
2027
- var n, e;
2028
- this.stripeCardElementId && this.callCard("unmount", this.stripeCardElementId), this.card && (this.card = null), this.isShadowParent() && ((n = document.querySelector(this.stripeCardElementId)) == null || n.remove(), (e = this.removeEventListeners) == null || e.call(this));
785
+ var r, t;
786
+ this.stripeCardElementId && this.callCard("unmount", this.stripeCardElementId), this.card && (this.card = null), this.isShadowParent() && ((r = document.querySelector(this.stripeCardElementId)) == null || r.remove(), (t = this.removeEventListeners) == null || t.call(this));
2029
787
  },
2030
- callCard(n, e) {
2031
- this.card && typeof this.card[n] == "function" && this.card[n](e);
788
+ callCard(r, t) {
789
+ this.card && typeof this.card[r] == "function" && this.card[r](t);
2032
790
  },
2033
791
  /**
2034
792
  * Start Stripe card component
2035
793
  * @param {String} elementId The id to mount card component, example #card-element
2036
794
  */
2037
- configureStripeCard(n) {
2038
- if (!n)
795
+ configureStripeCard(r) {
796
+ if (!r)
2039
797
  throw new Error("Missing required param elementId to install Stripe");
2040
798
  if (!this.elements)
2041
799
  throw new Error("Stripe is not yet configured");
2042
- const e = {
800
+ const t = {
2043
801
  base: {
2044
802
  color: "#111",
2045
803
  fontFamily: 'Inter, "Helvetica Neue", Helvetica, sans-serif',
@@ -2052,45 +810,45 @@ const Fe = Re.exports, Ue = {
2052
810
  iconColor: "#fa755a"
2053
811
  }
2054
812
  };
2055
- this.card = this.elements.create("card", { style: e }), this.getRootElm().querySelector(n) && this.mountCardInput(), this.card.addEventListener("change", (a) => {
2056
- const { error: r, complete: i } = a;
2057
- r ? this.elementsError = r.message : this.elementsError = "", this.cardIsComplete = i;
813
+ this.card = this.elements.create("card", { style: t }), this.getRootElm().querySelector(r) && this.mountCardInput(), this.card.addEventListener("change", (a) => {
814
+ const { error: n, complete: i } = a;
815
+ n ? this.elementsError = n.message : this.elementsError = "", this.cardIsComplete = i;
2058
816
  });
2059
817
  },
2060
818
  isShadowParent() {
2061
- var e, t;
2062
- const n = (t = (e = this.$el).getRootNode) == null ? void 0 : t.call(e);
2063
- return (n == null ? void 0 : n.toString()) === "[object ShadowRoot]";
819
+ var t, e;
820
+ const r = (e = (t = this.$el).getRootNode) == null ? void 0 : e.call(t);
821
+ return (r == null ? void 0 : r.toString()) === "[object ShadowRoot]";
2064
822
  },
2065
823
  getRootElm() {
2066
- var n, e;
2067
- return this.isShadowParent() ? (e = (n = this.$el).getRootNode) == null ? void 0 : e.call(n) : document;
824
+ var r, t;
825
+ return this.isShadowParent() ? (t = (r = this.$el).getRootNode) == null ? void 0 : t.call(r) : document;
2068
826
  },
2069
- repositionStripeEl({ original: n, clone: e }) {
2070
- const { x: t, y: a } = n.getBoundingClientRect();
2071
- e.style.position = "absolute", e.style.top = `${a}px`, e.style.left = `${t}px`;
827
+ repositionStripeEl({ original: r, clone: t }) {
828
+ const { x: e, y: a } = r.getBoundingClientRect();
829
+ t.style.position = "absolute", t.style.top = `${a}px`, t.style.left = `${e}px`;
2072
830
  },
2073
- copyInputStyle(n) {
831
+ copyInputStyle(r) {
2074
832
  var i;
2075
- const e = n.cloneNode(!0);
2076
- e.style.boxSizing = "border-box", e.style.fontSize = (i = window.getComputedStyle(n)) == null ? void 0 : i.fontSize;
2077
- const t = pe(n), a = () => {
2078
- this.repositionStripeEl({ original: n, clone: e });
833
+ const t = r.cloneNode(!0);
834
+ t.style.boxSizing = "border-box", t.style.fontSize = (i = window.getComputedStyle(r)) == null ? void 0 : i.fontSize;
835
+ const e = yt(r), a = () => {
836
+ this.repositionStripeEl({ original: r, clone: t });
2079
837
  };
2080
- t.addEventListener("scroll", a, {
838
+ e.addEventListener("scroll", a, {
2081
839
  passive: !0
2082
840
  }), window.addEventListener("resize", a), this.removeEventListeners = () => {
2083
- t.removeEventListener("scroll", a, {
841
+ e.removeEventListener("scroll", a, {
2084
842
  passive: !0
2085
843
  }), window.removeEventListener("resize", a);
2086
- }, this.repositionStripeEl({ original: n, clone: e });
2087
- const r = Number(
2088
- window.getComputedStyle(n).getPropertyValue("--app-z-index")
844
+ }, this.repositionStripeEl({ original: r, clone: t });
845
+ const n = Number(
846
+ window.getComputedStyle(r).getPropertyValue("--app-z-index")
2089
847
  );
2090
- e.style.zIndex = r + 1e4, document.body.appendChild(e);
848
+ t.style.zIndex = n + 1e4, document.body.appendChild(t);
2091
849
  }
2092
850
  }
2093
- }, Ae = {
851
+ }, qt = {
2094
852
  i18nOptions: {
2095
853
  namespaces: "PremiumStripeForm",
2096
854
  messages: {
@@ -2282,10 +1040,13 @@ const Fe = Re.exports, Ue = {
2282
1040
  },
2283
1041
  name: "PremiumStripeForm",
2284
1042
  components: {
2285
- CAccordion: Ce,
2286
- CCheckbox: ae
1043
+ CAccordion: Pt,
1044
+ CCheckbox: at,
1045
+ CField: ft,
1046
+ CSelect: ht,
1047
+ CSwitch: gt
2287
1048
  },
2288
- mixins: [Z],
1049
+ mixins: [Y],
2289
1050
  props: {
2290
1051
  formPlan: {
2291
1052
  type: Object,
@@ -2310,8 +1071,8 @@ const Fe = Re.exports, Ue = {
2310
1071
  },
2311
1072
  data() {
2312
1073
  return {
2313
- regions: x,
2314
- cardBrands: Ue,
1074
+ regions: S,
1075
+ cardBrands: At,
2315
1076
  stripeCardElementId: "#card-element",
2316
1077
  promoInputVisible: !1,
2317
1078
  inputPromotionCode: "",
@@ -2335,13 +1096,13 @@ const Fe = Re.exports, Ue = {
2335
1096
  numeric: _.numeric
2336
1097
  },
2337
1098
  consent: {
2338
- required: _.requiredIf((e) => e.collectConsent),
2339
- sameAs: _.sameAs((e) => e.collectConsent)
1099
+ required: _.requiredIf((t) => t.collectConsent),
1100
+ sameAs: _.sameAs((t) => t.collectConsent)
2340
1101
  }
2341
1102
  };
2342
1103
  },
2343
1104
  computed: {
2344
- ...v({
1105
+ ...C({
2345
1106
  companyRegion: "application/companyRegion",
2346
1107
  companyAccount: "application/companyAccount",
2347
1108
  formCustomer: "stripe/formCustomer",
@@ -2367,8 +1128,8 @@ const Fe = Re.exports, Ue = {
2367
1128
  get() {
2368
1129
  return this.formPlan.quantity;
2369
1130
  },
2370
- set(n) {
2371
- this.$emit("input", { key: "plan.quantity", value: n });
1131
+ set(r) {
1132
+ this.$emit("input", { key: "plan.quantity", value: r });
2372
1133
  }
2373
1134
  },
2374
1135
  routePromo() {
@@ -2376,63 +1137,63 @@ const Fe = Re.exports, Ue = {
2376
1137
  },
2377
1138
  // promoCode from url
2378
1139
  existingCardLast4() {
2379
- var n;
2380
- return (n = this.customer) == null ? void 0 : n.paymentMethodLast4;
1140
+ var r;
1141
+ return (r = this.customer) == null ? void 0 : r.paymentMethodLast4;
2381
1142
  },
2382
1143
  sortedRegions() {
2383
- return (Object.keys(x) || []).map((n) => ({
2384
- key: n,
2385
- title: `${x[n].name} (${n})`,
2386
- callingCode: x[n].callingCode
2387
- })).sort((n, e) => n.title.localeCompare(e.title));
1144
+ return (Object.keys(S) || []).map((r) => ({
1145
+ key: r,
1146
+ title: `${S[r].name} (${r})`,
1147
+ callingCode: S[r].callingCode
1148
+ })).sort((r, t) => r.title.localeCompare(t.title));
2388
1149
  },
2389
1150
  currency() {
2390
1151
  return this.formPrices.currency;
2391
1152
  },
2392
1153
  promotionDescription() {
2393
- let n = "- ";
2394
- const { amountOff: e, percentOff: t } = this.promotion || {};
2395
- return e ? n += P(e, { currency: this.currency }) : t && (n += `${t}%`), n;
1154
+ let r = "- ";
1155
+ const { amountOff: t, percentOff: e } = this.promotion || {};
1156
+ return t ? r += P(t, { currency: this.currency }) : e && (r += `${e}%`), r;
2396
1157
  },
2397
1158
  reasonableUseQuotas() {
2398
1159
  var i;
2399
- const n = {}, e = (i = this.formPlan) == null ? void 0 : i.StripeProduct;
2400
- if (!e)
1160
+ const r = {}, t = (i = this.formPlan) == null ? void 0 : i.StripeProduct;
1161
+ if (!t)
2401
1162
  return [];
2402
- const { quotas: t, autoAddMeteredTypes: a } = e.metadata, r = t[this.companyAccount.accountConfigurationKeyName] || {};
2403
- return Object.keys(r).forEach((s) => {
2404
- s === "bankId" && y[h.brand].defaultRegion === "US" || (n[s] = {
1163
+ const { quotas: e, autoAddMeteredTypes: a } = t.metadata, n = e[this.companyAccount.accountConfigurationKeyName] || {};
1164
+ return Object.keys(n).forEach((s) => {
1165
+ s === "bankId" && y[h.brand].defaultRegion === "US" || (r[s] = {
2405
1166
  type: s,
2406
- count: r[s] || 0,
1167
+ count: n[s] || 0,
2407
1168
  cost: null
2408
1169
  });
2409
1170
  }), a.forEach((s) => {
2410
1171
  if (s === "bankId" && y[h.brand].defaultRegion === "US")
2411
1172
  return;
2412
- const c = this.getMeteredProduct(s);
2413
- if (!c)
1173
+ const l = this.getMeteredProduct(s);
1174
+ if (!l)
2414
1175
  return;
2415
- const o = c.prices.find(
1176
+ const o = l.prices.find(
2416
1177
  (p) => {
2417
- var g;
2418
- return p.active && ((g = p == null ? void 0 : p.metadata) == null ? void 0 : g.visible) === !0;
1178
+ var f;
1179
+ return p.active && ((f = p == null ? void 0 : p.metadata) == null ? void 0 : f.visible) === !0;
2419
1180
  }
2420
1181
  );
2421
1182
  if (!o)
2422
1183
  return;
2423
- const l = P(o.amount, {
1184
+ const c = P(o.amount, {
2424
1185
  currency: o.currency,
2425
1186
  decimals: 2,
2426
1187
  hideZeroDecimals: !0
2427
1188
  });
2428
- n[s] || (n[s] = { type: s, count: 0, cost: null }), n[s].cost = l;
2429
- }), Object.keys(n).map((s) => n[s]);
1189
+ r[s] || (r[s] = { type: s, count: 0, cost: null }), r[s].cost = c;
1190
+ }), Object.keys(r).map((s) => r[s]);
2430
1191
  }
2431
1192
  },
2432
1193
  watch: {
2433
- useExistingCard(n) {
1194
+ useExistingCard(r) {
2434
1195
  this.$nextTick(() => {
2435
- n || this.mountCardInput();
1196
+ r || this.mountCardInput();
2436
1197
  });
2437
1198
  }
2438
1199
  },
@@ -2446,15 +1207,15 @@ const Fe = Re.exports, Ue = {
2446
1207
  easing: "spring(1, 80, 20, 10)"
2447
1208
  });
2448
1209
  }), this.customer) {
2449
- const n = !!this.customer.paymentMethodId;
2450
- this.useExistingCard = n, this.useExistingCustomer = n, ["name", "region", "email"].forEach((t) => {
2451
- this.customer[t] && this.$emit("input", {
2452
- key: `customer.${t}`,
2453
- value: this.customer[t]
1210
+ const r = !!this.customer.paymentMethodId;
1211
+ this.useExistingCard = r, this.useExistingCustomer = r, ["name", "region", "email"].forEach((e) => {
1212
+ this.customer[e] && this.$emit("input", {
1213
+ key: `customer.${e}`,
1214
+ value: this.customer[e]
2454
1215
  });
2455
1216
  });
2456
- const { data: e } = await re();
2457
- this.setPromotion({ promotionDetails: e });
1217
+ const { data: t } = await nt();
1218
+ this.setPromotion({ promotionDetails: t });
2458
1219
  }
2459
1220
  this.companyRegion === "SE" && !this.formCustomer.region && this.$emit("input", { key: "customer.region", value: this.companyRegion }), this.routePromo && this.verifyPromotionCode(this.routePromo);
2460
1221
  },
@@ -2465,8 +1226,8 @@ const Fe = Re.exports, Ue = {
2465
1226
  submitPlan: m.SUBMIT_FORM_PLAN
2466
1227
  }),
2467
1228
  priceFormat: P,
2468
- getIntervalTitle(n) {
2469
- return n === "month" ? this.$t("_common:monthly").capitalize() : n === "year" ? this.$t("_common:yearly").capitalize() : n === "oneOff" ? this.$t("oneTimeFee").capitalize() : null;
1229
+ getIntervalTitle(r) {
1230
+ return r === "month" ? this.$t("_common:monthly").capitalize() : r === "year" ? this.$t("_common:yearly").capitalize() : r === "oneOff" ? this.$t("oneTimeFee").capitalize() : null;
2470
1231
  },
2471
1232
  async submit() {
2472
1233
  if (this.$v.$touch(), this.$v.$invalid)
@@ -2479,92 +1240,98 @@ const Fe = Re.exports, Ue = {
2479
1240
  ...!this.useExistingCard && { cardElement: this.card }
2480
1241
  }) && this.$emit("success");
2481
1242
  },
2482
- async verifyPromotionCode(n) {
2483
- if (!n) {
1243
+ async verifyPromotionCode(r) {
1244
+ if (!r) {
2484
1245
  this.promoInputVisible = !1;
2485
1246
  return;
2486
1247
  }
2487
- this.isInvalidPromotionCode = !1, await this.usePromotionCode(n) ? (this.promoInputVisible = !1, this.inputPromotionCode = "") : this.isInvalidPromotionCode = !0;
1248
+ this.isInvalidPromotionCode = !1, await this.usePromotionCode(r) ? (this.promoInputVisible = !1, this.inputPromotionCode = "") : this.isInvalidPromotionCode = !0;
2488
1249
  }
2489
1250
  }
2490
1251
  };
2491
- var Ve = function() {
2492
- var e = this, t = e._self._c;
2493
- return t("div", { staticClass: "root font-inter anime-payment-modal" }, [t("div", { staticClass: "flex w-full", staticStyle: { overflow: "hidden" } }, [t("div", { staticClass: "anim-block p-aside" }, [t("div", { staticClass: "p-callout", class: e.uiPlan.accountType }, [t("div", { staticStyle: { "font-size": "11px", position: "absolute", right: "calc(0.5 * var(--rem))", top: "calc(1.5 * var(--rem))", display: "flex", "line-height": "1.2" } }, [t("div", { staticStyle: { "text-align": "right", "padding-right": "0.5em" } }, [t("div", { staticStyle: { opacity: "0.7" }, domProps: { textContent: e._s(e.$t("payYearly")) } }), t("div", { staticClass: "text-primary-500 font-medium", domProps: { textContent: e._s(e.$t("saveAmount")) } })]), t("CSwitch", { attrs: { value: e.formPlan.interval === "year", size: "small", type: "secondary" }, on: { input: function(a) {
2494
- return e.$emit(
1252
+ var jt = function() {
1253
+ var t = this, e = t._self._c;
1254
+ return e("div", { staticClass: "root font-inter anime-payment-modal" }, [e("div", { staticClass: "flex w-full", staticStyle: { overflow: "hidden" } }, [e("div", { staticClass: "anim-block p-aside" }, [e("div", { staticClass: "p-callout", class: t.uiPlan.accountType }, [e("div", { staticStyle: { "font-size": "11px", position: "absolute", right: "calc(0.5 * var(--rem))", top: "calc(1.5 * var(--rem))", display: "flex", "line-height": "1.2" } }, [e("div", { staticStyle: { "text-align": "right", "padding-right": "0.5em" } }, [e("div", { staticStyle: { opacity: "0.7" }, domProps: { textContent: t._s(t.$t("payYearly")) } }), e("div", { staticClass: "text-primary-500 font-medium", domProps: { textContent: t._s(t.$t("saveAmount")) } })]), e("CSwitch", { attrs: { value: t.formPlan.interval === "year", size: "small", type: "secondary" }, on: { input: function(a) {
1255
+ return t.$emit(
2495
1256
  "update:interval",
2496
- e.formPlan.interval === "year" ? "month" : "year"
1257
+ t.formPlan.interval === "year" ? "month" : "year"
2497
1258
  );
2498
- } } })], 1), t("div", [t("img", { staticStyle: { "box-shadow": "0 4px 6px rgba(240, 147, 234, 0.34)", "border-radius": "50%", "margin-bottom": "calc(1 * var(--rem))" }, attrs: { src: e.uiPlan.img, alt: e.uiPlan.name, width: "50", height: "50" } })]), t("div", { staticStyle: { "font-weight": "600", "font-size": "21px" } }, [e._v(" " + e._s(e.$t("cardTitle", { plan: e.uiPlan.name })) + " ")]), t("div", { staticClass: "py-4 text-[15px]" }, [e._l(e.formPrices.intervals, function(a, r) {
2499
- return t("div", { key: `interval-${r}`, staticClass: "mb-4 border-b border-gray-200 pb-2" }, [t("div", { staticClass: "flex w-full justify-between" }, [t("div", { staticClass: "font-medium" }, [e._v(e._s(e.getIntervalTitle(r)))]), t("div", { staticClass: "text-right" }, [t("div", { staticClass: "text-[17px] font-semibold leading-none" }, [e._v(" " + e._s(e.priceFormat(a.subTotal, { currency: e.currency })) + " ")]), t("div", { staticClass: "text-[13px] opacity-70" }, [e._v(" " + e._s(a.vatAmount ? e.$t("_common:vat.exVat", { thing: e.$t("_common:vat.vat") }) : e.$t("_common:total").capitalize()) + " "), r !== "oneOff" ? [e._v("/ " + e._s(e.$t(`_common:${r}`)) + " ")] : e._e()], 2)])]), e._l(a.items, function(i, s) {
2500
- return t("div", { key: s, staticClass: "mt-2 flex w-full justify-between pb-1" }, [t("div", { staticClass: "font-medium opacity-70" }, [e._v(" " + e._s(e.disableQuantity ? "" : `${i.quantity} x `) + e._s(i.name.capitalize()) + " ")]), t("div", { staticClass: "text-right opacity-70" }, [e._v(" " + e._s(e.priceFormat(i.amount, { currency: e.currency })) + " ")])]);
1259
+ } } })], 1), e("div", [e("img", { staticStyle: { "box-shadow": "0 4px 6px rgba(240, 147, 234, 0.34)", "border-radius": "50%", "margin-bottom": "calc(1 * var(--rem))" }, attrs: { src: t.uiPlan.img, alt: t.uiPlan.name, width: "50", height: "50" } })]), e("div", { staticStyle: { "font-weight": "600", "font-size": "21px" } }, [t._v(" " + t._s(t.$t("cardTitle", { plan: t.uiPlan.name })) + " ")]), e("div", { staticClass: "py-4 text-[15px]" }, [t._l(t.formPrices.intervals, function(a, n) {
1260
+ return e("div", { key: `interval-${n}`, staticClass: "mb-4 border-b border-gray-200 pb-2" }, [e("div", { staticClass: "flex w-full justify-between" }, [e("div", { staticClass: "font-medium" }, [t._v(t._s(t.getIntervalTitle(n)))]), e("div", { staticClass: "text-right" }, [e("div", { staticClass: "text-[17px] font-semibold leading-none" }, [t._v(" " + t._s(t.priceFormat(a.subTotal, { currency: t.currency })) + " ")]), e("div", { staticClass: "text-[13px] opacity-70" }, [t._v(" " + t._s(a.vatAmount ? t.$t("_common:vat.exVat", { thing: t.$t("_common:vat.vat") }) : t.$t("_common:total").capitalize()) + " "), n !== "oneOff" ? [t._v("/ " + t._s(t.$t(`_common:${n}`)) + " ")] : t._e()], 2)])]), t._l(a.items, function(i, s) {
1261
+ return e("div", { key: s, staticClass: "mt-2 flex w-full justify-between pb-1" }, [e("div", { staticClass: "font-medium opacity-70" }, [t._v(" " + t._s(t.disableQuantity ? "" : `${i.quantity} x `) + t._s(i.name.capitalize()) + " ")]), e("div", { staticClass: "text-right opacity-70" }, [t._v(" " + t._s(t.priceFormat(i.amount, { currency: t.currency })) + " ")])]);
2501
1262
  })], 2);
2502
- }), e.promotion ? t("div", { staticClass: "flex w-full justify-between", staticStyle: { "padding-bottom": "4px" } }, [t("div", { staticStyle: { "font-weight": "500", opacity: "0.7" } }, [e._v(" " + e._s(e.promotion.code || e.promotion.name) + " ")]), t("div", { staticClass: "has-text-danger text-right", staticStyle: { display: "inline-flex", "justify-content": "flex-end", "align-items": "center" } }, [t("CButton", { staticStyle: { height: "inherit", "margin-right": "3px" }, attrs: { disabled: e.isEditLock, "icon-props": { size: 15 }, size: "small", type: "none", pattern: "tertiary", icon: "trash" }, on: { click: function(a) {
2503
- return e.$emit("input", { key: "promotion", value: null });
2504
- } } }), t("div", { domProps: { textContent: e._s(e.promotionDescription) } })], 1)]) : e._e(), e.formPrices.vatAmount ? [t("div", { staticClass: "flex w-full justify-between", staticStyle: { "padding-bottom": "4px" } }, [t("div", { staticStyle: { "font-weight": "500", opacity: "0.7" } }, [e._v(" " + e._s(e.$t("_common:vat.vat").capitalize()) + " ")]), t("div", { staticClass: "text-right", staticStyle: { opacity: "0.7" } }, [e._v(" " + e._s(e.priceFormat(e.formPrices.vatAmount, { currency: e.currency })) + " ")])]), t("div", { staticClass: "flex w-full justify-between", staticStyle: { "padding-bottom": "4px" } }, [t("div", { staticStyle: { "font-weight": "500", opacity: "0.7" } }, [e._v(" " + e._s(e.$t("_common:vat.incVat", { thing: e.$t("_common:vat.vat") }).capitalize()) + " ")]), t("div", { staticClass: "text-right", staticStyle: { opacity: "0.7" } }, [e._v(" " + e._s(e.priceFormat(e.formPrices.totalAmount, { currency: e.currency })) + " ")])])] : e._e(), t("div", { directives: [{ name: "show", rawName: "v-show", value: !e.promotion, expression: "!promotion" }], staticClass: "flex w-full justify-end" }, [e.promoInputVisible ? t("CField", { staticStyle: { "padding-top": "1em", width: "100%" }, attrs: { expanded: "" } }, [t("CInput", { attrs: { placeholder: e.$t("promotion.placeholder"), "custom-class": e.isInvalidPromotionCode ? "is-danger shake" : "", size: "small" }, on: { blur: function(a) {
2505
- return e.verifyPromotionCode(e.inputPromotionCode);
1263
+ }), t.promotion ? e("div", { staticClass: "flex w-full justify-between", staticStyle: { "padding-bottom": "4px" } }, [e("div", { staticStyle: { "font-weight": "500", opacity: "0.7" } }, [t._v(" " + t._s(t.promotion.code || t.promotion.name) + " ")]), e("div", { staticClass: "has-text-danger text-right", staticStyle: { display: "inline-flex", "justify-content": "flex-end", "align-items": "center" } }, [e("CButton", { staticStyle: { height: "inherit", "margin-right": "3px" }, attrs: { disabled: t.isEditLock, "icon-props": { size: 15 }, size: "small", type: "none", pattern: "tertiary", icon: "trash" }, on: { click: function(a) {
1264
+ return t.$emit("input", { key: "promotion", value: null });
1265
+ } } }), e("div", { domProps: { textContent: t._s(t.promotionDescription) } })], 1)]) : t._e(), t.formPrices.vatAmount ? [e("div", { staticClass: "flex w-full justify-between", staticStyle: { "padding-bottom": "4px" } }, [e("div", { staticStyle: { "font-weight": "500", opacity: "0.7" } }, [t._v(" " + t._s(t.$t("_common:vat.vat").capitalize()) + " ")]), e("div", { staticClass: "text-right", staticStyle: { opacity: "0.7" } }, [t._v(" " + t._s(t.priceFormat(t.formPrices.vatAmount, { currency: t.currency })) + " ")])]), e("div", { staticClass: "flex w-full justify-between", staticStyle: { "padding-bottom": "4px" } }, [e("div", { staticStyle: { "font-weight": "500", opacity: "0.7" } }, [t._v(" " + t._s(t.$t("_common:vat.incVat", { thing: t.$t("_common:vat.vat") }).capitalize()) + " ")]), e("div", { staticClass: "text-right", staticStyle: { opacity: "0.7" } }, [t._v(" " + t._s(t.priceFormat(t.formPrices.totalAmount, { currency: t.currency })) + " ")])])] : t._e(), e("div", { directives: [{ name: "show", rawName: "v-show", value: !t.promotion, expression: "!promotion" }], staticClass: "flex w-full justify-end" }, [t.promoInputVisible ? e("CField", { staticStyle: { "padding-top": "1em", width: "100%" }, attrs: { expanded: "" } }, [e("CInput", { attrs: { placeholder: t.$t("promotion.placeholder"), "custom-class": t.isInvalidPromotionCode ? "is-danger shake" : "", size: "small" }, on: { blur: function(a) {
1266
+ return t.verifyPromotionCode(t.inputPromotionCode);
2506
1267
  } }, nativeOn: { keyup: function(a) {
2507
- return !a.type.indexOf("key") && e._k(a.keyCode, "enter", 13, a.key, "Enter") ? null : e.verifyPromotionCode(e.inputPromotionCode);
2508
- } }, model: { value: e.inputPromotionCode, callback: function(a) {
2509
- e.inputPromotionCode = typeof a == "string" ? a.trim() : a;
2510
- }, expression: "inputPromotionCode" } }, [t("template", { slot: "suffix" }, [t("CButton", { attrs: { loading: e.isPosting, type: "secondary", size: "small" }, on: { click: function(a) {
2511
- return e.verifyPromotionCode(e.inputPromotionCode);
2512
- } } }, [e._v(" " + e._s(e.$t("promotion.submit")) + " ")])], 1)], 2)], 1) : t("CButton", { staticStyle: { "text-decoration": "underline", "margin-right": "-1em" }, attrs: { disabled: e.isEditLock, type: "secondary", pattern: "tertiary", size: "small" }, on: { click: function(a) {
2513
- e.promoInputVisible = !0;
2514
- } } }, [e._v(" " + e._s(e.$t("promotion.add")) + " ")])], 1)], 2)]), t("div", { staticClass: "p-badge flex w-full items-center" }, [t("svg", { staticClass: "has-text-success", staticStyle: { "margin-right": "0.5em" }, attrs: { width: "17", height: "15", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512" } }, [t("path", { attrs: { fill: "currentColor", d: "M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z" } })]), e._v(" " + e._s(e.$t("highlights.securePayment")) + " ")]), t("div", { staticClass: "p-badge flex w-full items-center" }, [t("svg", { staticClass: "has-text-success", staticStyle: { "margin-right": "0.5em" }, attrs: { width: "17", height: "20", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" } }, [t("path", { attrs: { fill: "currentColor", d: "M512 256c0-37.7-23.7-69.9-57.1-82.4 14.7-32.4 8.8-71.9-17.9-98.6-26.7-26.7-66.2-32.6-98.6-17.9C325.9 23.7 293.7 0 256 0s-69.9 23.7-82.4 57.1c-32.4-14.7-72-8.8-98.6 17.9-26.7 26.7-32.6 66.2-17.9 98.6C23.7 186.1 0 218.3 0 256s23.7 69.9 57.1 82.4c-14.7 32.4-8.8 72 17.9 98.6 26.6 26.6 66.1 32.7 98.6 17.9 12.5 33.3 44.7 57.1 82.4 57.1s69.9-23.7 82.4-57.1c32.6 14.8 72 8.7 98.6-17.9 26.7-26.7 32.6-66.2 17.9-98.6 33.4-12.5 57.1-44.7 57.1-82.4zm-144.8-44.25L236.16 341.74c-4.31 4.28-11.28 4.25-15.55-.06l-75.72-76.33c-4.28-4.31-4.25-11.28.06-15.56l26.03-25.82c4.31-4.28 11.28-4.25 15.56.06l42.15 42.49 97.2-96.42c4.31-4.28 11.28-4.25 15.55.06l25.82 26.03c4.28 4.32 4.26 11.29-.06 15.56z" } })]), e._v(" " + e._s(e.$t("highlights.satisfiedCustomer")) + " ")]), e.hideExtraInfo ? e._e() : [t("div", { staticClass: "p-badge flex w-full items-center" }, [t("CIcon", { staticStyle: { opacity: "0.65", "margin-right": "0.5em" }, attrs: { size: 17, "stroke-width": "2", type: "question" } }), t("span", { staticStyle: { "text-decoration": "underline", opacity: "0.85", cursor: "pointer" }, domProps: { textContent: e._s(e.$t("reasonableUse.title")) }, on: { click: function(a) {
2515
- return e.$modal.show("reasonableUse");
2516
- } } })], 1), t("div", { staticClass: "p-badge flex w-full items-center" }, [t("CIcon", { staticStyle: { opacity: "0.65", "margin-right": "0.5em" }, attrs: { size: 17, "stroke-width": "2", type: "question" } }), t("span", { staticStyle: { "text-decoration": "underline", opacity: "0.85", cursor: "pointer" }, domProps: { textContent: e._s(e.$t("faq.title")) }, on: { click: function(a) {
2517
- return e.$modal.show("faq");
2518
- } } })], 1)]], 2), t("div", [t("div", { staticClass: "anim-block p-block", staticStyle: { "padding-bottom": "2em" } }, [t("div", { staticStyle: { "font-size": "18px", "font-weight": "600", "line-height": "1.5" } }, [t("span", { staticStyle: { opacity: "0.5" } }, [e._v(e._s(e.$t("formSteps")))]), t("br"), e._v(" " + e._s(e.$t("formTitle")) + " ")])]), t("div", { staticClass: "anim-block", staticStyle: { "font-size": "14px" } }, [e.disableQuantity ? e._e() : t("div", { staticClass: "p-block" }, [t("div", { staticClass: "p-block-title flex w-full items-center" }, [t("div", [e._v(" " + e._s(e.$t("quantity.label")) + " "), t("CIcon", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.$t("quantity.tooltip"), expression: "$t('quantity.tooltip')" }], staticClass: "text-gray-400", attrs: { type: "info", size: "16" } })], 1)]), t("div", { staticClass: "flex w-full" }, [t("div", { staticClass: "p-option-list", staticStyle: { flex: "1 1 auto" } }, [t("CField", { attrs: { validator: e.$v.quantity, messages: e.messages.quantity, expanded: "" } }, [t("CInput", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.uiPlan.accountType === "start" ? { content: e.$t("quantity.disabled") } : "", expression: `
1268
+ return !a.type.indexOf("key") && t._k(a.keyCode, "enter", 13, a.key, "Enter") ? null : t.verifyPromotionCode(t.inputPromotionCode);
1269
+ } }, scopedSlots: t._u([{ key: "suffix", fn: function() {
1270
+ return [e("CButton", { attrs: { loading: t.isPosting, type: "secondary", size: "small" }, on: { click: function(a) {
1271
+ return t.verifyPromotionCode(t.inputPromotionCode);
1272
+ } } }, [t._v(" " + t._s(t.$t("promotion.submit")) + " ")])];
1273
+ }, proxy: !0 }]), model: { value: t.inputPromotionCode, callback: function(a) {
1274
+ t.inputPromotionCode = typeof a == "string" ? a.trim() : a;
1275
+ }, expression: "inputPromotionCode" } })], 1) : e("CButton", { staticStyle: { "text-decoration": "underline", "margin-right": "-1em" }, attrs: { disabled: t.isEditLock, type: "secondary", pattern: "tertiary", size: "small" }, on: { click: function(a) {
1276
+ t.promoInputVisible = !0;
1277
+ } } }, [t._v(" " + t._s(t.$t("promotion.add")) + " ")])], 1)], 2)]), e("div", { staticClass: "p-badge flex w-full items-center" }, [e("svg", { staticClass: "has-text-success", staticStyle: { "margin-right": "0.5em" }, attrs: { width: "17", height: "15", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512" } }, [e("path", { attrs: { fill: "currentColor", d: "M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z" } })]), t._v(" " + t._s(t.$t("highlights.securePayment")) + " ")]), e("div", { staticClass: "p-badge flex w-full items-center" }, [e("svg", { staticClass: "has-text-success", staticStyle: { "margin-right": "0.5em" }, attrs: { width: "17", height: "20", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" } }, [e("path", { attrs: { fill: "currentColor", d: "M512 256c0-37.7-23.7-69.9-57.1-82.4 14.7-32.4 8.8-71.9-17.9-98.6-26.7-26.7-66.2-32.6-98.6-17.9C325.9 23.7 293.7 0 256 0s-69.9 23.7-82.4 57.1c-32.4-14.7-72-8.8-98.6 17.9-26.7 26.7-32.6 66.2-17.9 98.6C23.7 186.1 0 218.3 0 256s23.7 69.9 57.1 82.4c-14.7 32.4-8.8 72 17.9 98.6 26.6 26.6 66.1 32.7 98.6 17.9 12.5 33.3 44.7 57.1 82.4 57.1s69.9-23.7 82.4-57.1c32.6 14.8 72 8.7 98.6-17.9 26.7-26.7 32.6-66.2 17.9-98.6 33.4-12.5 57.1-44.7 57.1-82.4zm-144.8-44.25L236.16 341.74c-4.31 4.28-11.28 4.25-15.55-.06l-75.72-76.33c-4.28-4.31-4.25-11.28.06-15.56l26.03-25.82c4.31-4.28 11.28-4.25 15.56.06l42.15 42.49 97.2-96.42c4.31-4.28 11.28-4.25 15.55.06l25.82 26.03c4.28 4.32 4.26 11.29-.06 15.56z" } })]), t._v(" " + t._s(t.$t("highlights.satisfiedCustomer")) + " ")]), t.hideExtraInfo ? t._e() : [e("div", { staticClass: "p-badge flex w-full items-center" }, [e("CIcon", { staticStyle: { opacity: "0.65", "margin-right": "0.5em" }, attrs: { size: 17, "stroke-width": "2", type: "question" } }), e("span", { staticStyle: { "text-decoration": "underline", opacity: "0.85", cursor: "pointer" }, domProps: { textContent: t._s(t.$t("reasonableUse.title")) }, on: { click: function(a) {
1278
+ return t.$modal.show("reasonableUse");
1279
+ } } })], 1), e("div", { staticClass: "p-badge flex w-full items-center" }, [e("CIcon", { staticStyle: { opacity: "0.65", "margin-right": "0.5em" }, attrs: { size: 17, "stroke-width": "2", type: "question" } }), e("span", { staticStyle: { "text-decoration": "underline", opacity: "0.85", cursor: "pointer" }, domProps: { textContent: t._s(t.$t("faq.title")) }, on: { click: function(a) {
1280
+ return t.$modal.show("faq");
1281
+ } } })], 1)]], 2), e("div", [e("div", { staticClass: "anim-block p-block", staticStyle: { "padding-bottom": "2em" } }, [e("div", { staticStyle: { "font-size": "18px", "font-weight": "600", "line-height": "1.5" } }, [e("span", { staticStyle: { opacity: "0.5" } }, [t._v(t._s(t.$t("formSteps")))]), e("br"), t._v(" " + t._s(t.$t("formTitle")) + " ")])]), e("div", { staticClass: "anim-block", staticStyle: { "font-size": "14px" } }, [t.disableQuantity ? t._e() : e("div", { staticClass: "p-block" }, [e("div", { staticClass: "p-block-title flex w-full items-center" }, [e("div", [t._v(" " + t._s(t.$t("quantity.label")) + " "), e("CIcon", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: t.$t("quantity.tooltip"), expression: "$t('quantity.tooltip')" }], staticClass: "text-gray-400", attrs: { type: "info", size: "16" } })], 1)]), e("div", { staticClass: "flex w-full" }, [e("div", { staticClass: "p-option-list", staticStyle: { flex: "1 1 auto" } }, [e("CField", { attrs: { validator: t.$v.quantity, messages: t.messages.quantity, expanded: "" } }, [e("CInput", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: t.uiPlan.accountType === "start" ? { content: t.$t("quantity.disabled") } : "", expression: `
2519
1282
  uiPlan.accountType === 'start'
2520
1283
  ? { content: $t('quantity.disabled') }
2521
1284
  : ''
2522
- ` }], attrs: { disabled: e.uiPlan.accountType === "start" || e.isEditLock, size: "medium", min: "1", filled: "", type: "number" }, model: { value: e.quantity, callback: function(a) {
2523
- e.quantity = e._n(a);
2524
- }, expression: "quantity" } })], 1)], 1), t("div", { staticClass: "p-option-list flex w-full items-center justify-center", staticStyle: { "margin-left": "calc(1 * var(--rem))", flex: "0 0" } }, [t("CButton", { staticStyle: { width: "calc(3.5 * var(--rem))" }, attrs: { disabled: 2 > e.quantity || e.uiPlan.accountType === "start" || e.isEditLock, type: "none", pattern: "tertiary", icon: "minus" }, on: { click: function(a) {
2525
- e.quantity--;
2526
- } } })], 1), t("div", { staticClass: "p-option-list flex w-full items-center justify-center", staticStyle: { "margin-left": "3px", flex: "0 0" } }, [t("CButton", { staticStyle: { width: "calc(3.5 * var(--rem))" }, attrs: { disabled: e.uiPlan.accountType === "start" || e.isEditLock, type: "none", pattern: "tertiary", icon: "plus" }, on: { click: function(a) {
2527
- e.quantity++;
2528
- } } })], 1)])]), e.useExistingCustomer ? t("div", { staticClass: "p-callout", staticStyle: { position: "relative", padding: "calc(1 * var(--rem))", "border-radius": "8px" } }, [t("CButton", { staticStyle: { position: "absolute", top: "calc(1 * var(--rem))", right: "calc(1 * var(--rem))" }, attrs: { size: "small", rounded: "" }, on: { click: function(a) {
2529
- e.useExistingCustomer = !1;
2530
- } } }, [e._v(" " + e._s(e.$t("_common:change")) + " ")]), t("div", { staticClass: "flex w-full items-center" }, [t("div", { domProps: { innerHTML: e._s(
2531
- e.cardBrands.get(e.customer.paymentMethodBrand, { width: 36 }).logo
2532
- ) } }), t("div", { staticStyle: { "margin-left": "calc(0.5 * var(--rem))" } }, [t("span", { staticStyle: { "margin-right": "5px" } }, [e._v(e._s(e.cardBrands.get(e.customer.paymentMethodBrand).name))]), e._v(" •••• " + e._s(e.customer.paymentMethodLast4 || "") + " ")])]), t("div", [e._v(e._s(e.customer.name))]), t("div", [e._v(e._s(e.customer.email))]), e.regions[e.customer.region] ? t("div", [e._v(" " + e._s(e.regions[e.customer.region].name) + " ")]) : e._e()], 1) : [t("div", { staticClass: "p-block" }, [e.useExistingCard ? e._e() : t("div", { staticClass: "p-block-title flex w-full items-center" }, [t("div", [e._v(e._s(e.$t("paymentInfoLabel")))])]), t("div", [e.useExistingCard && e.existingCardLast4 ? t("div", { staticClass: "p-block" }, [e._v(" " + e._s(e.$t("paymentInfoLabel")) + " "), t("CField", { attrs: { messages: e.messages.email, expanded: "" } }, [t("CInput", { attrs: { value: `•••• •••• •••• ${e.existingCardLast4}`, size: "medium", disabled: "", filled: "" } }, [t("CButton", { attrs: { slot: "suffix", type: "secondary", size: "small" }, on: { click: function(a) {
2533
- e.useExistingCard = !1;
2534
- } }, slot: "suffix" }, [e._v(" " + e._s(e.$t("_common:change")) + " ")])], 1)], 1)], 1) : e._e(), t("div", { directives: [{ name: "show", rawName: "v-show", value: !e.useExistingCard, expression: "!useExistingCard" }], staticClass: "bg-gray-100", staticStyle: { width: "400px", padding: "1em 1em", "border-radius": "0.5em", "min-height": "54px" }, attrs: { id: "card-element" } }), t("div", { directives: [{ name: "show", rawName: "v-show", value: e.elementsError && !e.useExistingCard, expression: "elementsError && !useExistingCard" }], staticClass: "pt-2 text-red-500", domProps: { textContent: e._s(e.elementsError) } })])]), t("div", { staticClass: "p-block" }, [e._v(" " + e._s(e.$t("name.label")) + " "), t("CInput", { attrs: { value: e.formCustomer.name, placeholder: e.$t("name.placeholder"), size: "medium", filled: "" }, on: { input: function(a) {
2535
- return e.$emit("input", { key: "customer.name", value: a });
2536
- } } })], 1), t("div", { staticClass: "p-block" }, [e._v(" " + e._s(e.$t("region.label")) + " "), t("CSelect", { attrs: { value: e.formCustomer.region, "select-class": "input is-filled", placeholder: e.$t("region.placeholder") }, on: { input: function(a) {
2537
- return e.$emit("input", { key: "customer.region", value: a });
2538
- } } }, e._l(e.sortedRegions, function({ key: a, title: r }) {
2539
- return t("option", { key: a, domProps: { value: a } }, [e._v(" " + e._s(r) + " ")]);
2540
- }), 0)], 1), t("div", { staticClass: "p-block" }, [e._v(" " + e._s(e.$t("email.label")) + " "), t("CField", { attrs: { validator: e.$v.formCustomer.email, messages: e.messages.email, expanded: "" } }, [t("CInput", { attrs: { value: e.formCustomer.email, placeholder: e.$t("email.placeholder"), size: "medium", filled: "" }, on: { input: function(a) {
2541
- return e.$emit("input", { key: "customer.email", value: a });
2542
- } } })], 1)], 1)]], 2), e.collectConsent ? t("div", { staticClass: "anim-block p-block" }, [t("CCheckbox", { attrs: { type: "secondary", size: "normal" }, model: { value: e.consent, callback: function(a) {
2543
- e.consent = a;
2544
- }, expression: "consent" } }, [t("div", { class: [
2545
- e.$v.consent.$invalid && e.$v.consent.$dirty ? "has-text-danger" : "has-text-grey-dark"
2546
- ] }, [e._v(" " + e._s(e.$t("consent.label", { brand: e.$t("_common:brand.name") })) + " "), t("a", { staticClass: "underline", attrs: { href: e.$t("_common:brand.termsOfService.url"), target: "_blank", rel: "noopener", tabindex: "-1" } }, [e._v(" " + e._s(e.$t("_common:terms.termsAndConditions")) + " ")]), e._v(" " + e._s(e.$t("_common:and")) + " "), t("a", { staticClass: "underline", attrs: { href: e.$t("_common:brand.privacyPolicy.url"), target: "_blank", rel: "noopener", tabindex: "-1" } }, [e._v(" " + e._s(e.$t("_common:terms.privacyPolicy")) + " ")])])])], 1) : e._e(), e.formError ? t("div", { staticClass: "c-flex-row c-align-middle" }, [t("CIcon", { attrs: { type: "warning", size: "14", stroke: "hsl(360, 100%, 60%)" } }), t("div", { staticStyle: { "margin-left": "0.5em" }, domProps: { textContent: e._s(e.formError) } })], 1) : e._e(), t("div", { staticClass: "anim-block p-block" }, [t("CButton", { staticStyle: { "margin-top": "calc(1 * var(--rem))" }, attrs: { loading: e.isPosting, type: "secondary", wide: "", size: "medium", "icon-right": "arrow-right" }, on: { click: e.submit } }, [e._v(" " + e._s(e.$t("submitButton", { plan: e.uiPlan.name })) + " ")])], 1)])]), t("modal", { staticClass: "primary overflow-visible", attrs: { adaptive: !0, scrollable: !0, "max-width": 400, height: "auto", width: "90%", classes: "primary overflow-visible", name: "faq" } }, [t("div", { staticStyle: { "background-color": "white", "border-radius": "calc(0.5 * var(--rem))", padding: "calc(1 * var(--rem))" } }, [t("div", { staticStyle: { "font-size": "calc(2 * var(--rem))", "font-weight": "600", "margin-bottom": "0.5em", padding: "calc(1 * var(--rem))" }, domProps: { textContent: e._s(e.$t("faq.title")) } }), e._l(6, function(a) {
2547
- return t("CAccordion", { key: a, attrs: { "default-open": null }, scopedSlots: e._u([{ key: "trigger", fn: function({ expanded: r }) {
2548
- return t("div", { staticClass: "list-button" }, [t("span", { domProps: { textContent: e._s(
2549
- e.$t(`faq.items.${a - 1}.title`, {
2550
- brand: e.$t("_common:brand.name")
1285
+ ` }], attrs: { disabled: t.uiPlan.accountType === "start" || t.isEditLock, size: "medium", min: "1", filled: "", type: "number" }, model: { value: t.quantity, callback: function(a) {
1286
+ t.quantity = t._n(a);
1287
+ }, expression: "quantity" } })], 1)], 1), e("div", { staticClass: "p-option-list flex w-full items-center justify-center", staticStyle: { "margin-left": "calc(1 * var(--rem))", flex: "0 0" } }, [e("CButton", { staticStyle: { width: "calc(3.5 * var(--rem))" }, attrs: { disabled: 2 > t.quantity || t.uiPlan.accountType === "start" || t.isEditLock, type: "none", pattern: "tertiary", icon: "minus" }, on: { click: function(a) {
1288
+ t.quantity--;
1289
+ } } })], 1), e("div", { staticClass: "p-option-list flex w-full items-center justify-center", staticStyle: { "margin-left": "3px", flex: "0 0" } }, [e("CButton", { staticStyle: { width: "calc(3.5 * var(--rem))" }, attrs: { disabled: t.uiPlan.accountType === "start" || t.isEditLock, type: "none", pattern: "tertiary", icon: "plus" }, on: { click: function(a) {
1290
+ t.quantity++;
1291
+ } } })], 1)])]), t.useExistingCustomer ? e("div", { staticClass: "p-callout", staticStyle: { position: "relative", padding: "calc(1 * var(--rem))", "border-radius": "8px" } }, [e("CButton", { staticStyle: { position: "absolute", top: "calc(1 * var(--rem))", right: "calc(1 * var(--rem))" }, attrs: { size: "small", rounded: "" }, on: { click: function(a) {
1292
+ t.useExistingCustomer = !1;
1293
+ } } }, [t._v(" " + t._s(t.$t("_common:change")) + " ")]), e("div", { staticClass: "flex w-full items-center" }, [e("div", { domProps: { innerHTML: t._s(
1294
+ t.cardBrands.get(t.customer.paymentMethodBrand, { width: 36 }).logo
1295
+ ) } }), e("div", { staticStyle: { "margin-left": "calc(0.5 * var(--rem))" } }, [e("span", { staticStyle: { "margin-right": "5px" } }, [t._v(t._s(t.cardBrands.get(t.customer.paymentMethodBrand).name))]), t._v(" •••• " + t._s(t.customer.paymentMethodLast4 || "") + " ")])]), e("div", [t._v(t._s(t.customer.name))]), e("div", [t._v(t._s(t.customer.email))]), t.regions[t.customer.region] ? e("div", [t._v(" " + t._s(t.regions[t.customer.region].name) + " ")]) : t._e()], 1) : [e("div", { staticClass: "p-block" }, [t.useExistingCard ? t._e() : e("div", { staticClass: "p-block-title flex w-full items-center" }, [e("div", [t._v(t._s(t.$t("paymentInfoLabel")))])]), e("div", [t.useExistingCard && t.existingCardLast4 ? e("div", { staticClass: "p-block" }, [t._v(" " + t._s(t.$t("paymentInfoLabel")) + " "), e("CField", { attrs: { messages: t.messages.email, expanded: "" } }, [e("CInput", { attrs: { value: `•••• •••• •••• ${t.existingCardLast4}`, size: "medium", disabled: "", filled: "" }, scopedSlots: t._u([{ key: "suffix", fn: function() {
1296
+ return [e("CButton", { attrs: { type: "secondary", size: "small" }, on: { click: function(a) {
1297
+ t.useExistingCard = !1;
1298
+ } } }, [t._v(" " + t._s(t.$t("_common:change")) + " ")])];
1299
+ }, proxy: !0 }], null, !1, 2236526164) })], 1)], 1) : t._e(), e("div", { directives: [{ name: "show", rawName: "v-show", value: !t.useExistingCard, expression: "!useExistingCard" }], staticClass: "bg-gray-100", staticStyle: { width: "400px", padding: "1em 1em", "border-radius": "0.5em", "min-height": "54px" }, attrs: { id: "card-element" } }), e("div", { directives: [{ name: "show", rawName: "v-show", value: t.elementsError && !t.useExistingCard, expression: "elementsError && !useExistingCard" }], staticClass: "pt-2 text-red-500", domProps: { textContent: t._s(t.elementsError) } })])]), e("div", { staticClass: "p-block" }, [t._v(" " + t._s(t.$t("name.label")) + " "), e("CInput", { attrs: { value: t.formCustomer.name, placeholder: t.$t("name.placeholder"), size: "medium", filled: "" }, on: { input: function(a) {
1300
+ return t.$emit("input", { key: "customer.name", value: a });
1301
+ } } })], 1), e("div", { staticClass: "p-block" }, [t._v(" " + t._s(t.$t("region.label")) + " "), e("CSelect", { attrs: { value: t.formCustomer.region, "select-class": "input is-filled", placeholder: t.$t("region.placeholder") }, on: { input: function(a) {
1302
+ return t.$emit("input", { key: "customer.region", value: a });
1303
+ } } }, t._l(t.sortedRegions, function({ key: a, title: n }) {
1304
+ return e("option", { key: a, domProps: { value: a } }, [t._v(" " + t._s(n) + " ")]);
1305
+ }), 0)], 1), e("div", { staticClass: "p-block" }, [t._v(" " + t._s(t.$t("email.label")) + " "), e("CField", { attrs: { validator: t.$v.formCustomer.email, messages: t.messages.email, expanded: "" } }, [e("CInput", { attrs: { value: t.formCustomer.email, placeholder: t.$t("email.placeholder"), size: "medium", filled: "" }, on: { input: function(a) {
1306
+ return t.$emit("input", { key: "customer.email", value: a });
1307
+ } } })], 1)], 1)]], 2), t.collectConsent ? e("div", { staticClass: "anim-block p-block" }, [e("CCheckbox", { attrs: { type: "secondary", size: "normal" }, model: { value: t.consent, callback: function(a) {
1308
+ t.consent = a;
1309
+ }, expression: "consent" } }, [e("div", { class: [
1310
+ t.$v.consent.$invalid && t.$v.consent.$dirty ? "has-text-danger" : "has-text-grey-dark"
1311
+ ] }, [t._v(" " + t._s(t.$t("consent.label", { brand: t.$t("_common:brand.name") })) + " "), e("a", { staticClass: "underline", attrs: { href: t.$t("_common:brand.termsOfService.url"), target: "_blank", rel: "noopener", tabindex: "-1" } }, [t._v(" " + t._s(t.$t("_common:terms.termsAndConditions")) + " ")]), t._v(" " + t._s(t.$t("_common:and")) + " "), e("a", { staticClass: "underline", attrs: { href: t.$t("_common:brand.privacyPolicy.url"), target: "_blank", rel: "noopener", tabindex: "-1" } }, [t._v(" " + t._s(t.$t("_common:terms.privacyPolicy")) + " ")])])])], 1) : t._e(), t.formError ? e("div", { staticClass: "c-flex-row c-align-middle" }, [e("CIcon", { attrs: { type: "warning", size: "14", stroke: "hsl(360, 100%, 60%)" } }), e("div", { staticStyle: { "margin-left": "0.5em" }, domProps: { textContent: t._s(t.formError) } })], 1) : t._e(), e("div", { staticClass: "anim-block p-block" }, [e("CButton", { staticStyle: { "margin-top": "calc(1 * var(--rem))" }, attrs: { loading: t.isPosting, type: "secondary", wide: "", size: "medium", "icon-right": "arrow-right" }, on: { click: t.submit } }, [t._v(" " + t._s(t.$t("submitButton", { plan: t.uiPlan.name })) + " ")])], 1)])]), e("modal", { staticClass: "primary overflow-visible", attrs: { adaptive: !0, scrollable: !0, "max-width": 400, height: "auto", width: "90%", classes: "primary overflow-visible", name: "faq" } }, [e("div", { staticStyle: { "background-color": "white", "border-radius": "calc(0.5 * var(--rem))", padding: "calc(1 * var(--rem))" } }, [e("div", { staticStyle: { "font-size": "calc(2 * var(--rem))", "font-weight": "600", "margin-bottom": "0.5em", padding: "calc(1 * var(--rem))" }, domProps: { textContent: t._s(t.$t("faq.title")) } }), t._l(6, function(a) {
1312
+ return e("CAccordion", { key: a, attrs: { "default-open": null }, scopedSlots: t._u([{ key: "trigger", fn: function({ expanded: n }) {
1313
+ return [e("div", { staticClass: "list-button" }, [e("span", { domProps: { textContent: t._s(
1314
+ t.$t(`faq.items.${a - 1}.title`, {
1315
+ brand: t.$t("_common:brand.name")
2551
1316
  })
2552
- ) } }), t("CIcon", { staticStyle: { transition: "200ms" }, style: { transform: `rotate(${r ? "0deg" : "180deg"})` }, attrs: { type: "chevron-down", size: "15" } })], 1);
2553
- } }], null, !0) }, [t("div", { staticStyle: { "font-size": "14px", opacity: "0.65", padding: "0 calc(0.5 * var(--rem)) calc(2 * var(--rem))" }, domProps: { textContent: e._s(
2554
- e.$t(`faq.items.${a - 1}.text`, { brand: e.$t("_common:brand.name") })
1317
+ ) } }), e("CIcon", { staticStyle: { transition: "200ms" }, style: {
1318
+ transform: `rotate(${n ? "0deg" : "180deg"})`
1319
+ }, attrs: { type: "chevron-down", size: "15" } })], 1)];
1320
+ } }], null, !0) }, [e("div", { staticStyle: { "font-size": "14px", opacity: "0.65", padding: "0 calc(0.5 * var(--rem)) calc(2 * var(--rem))" }, domProps: { textContent: t._s(
1321
+ t.$t(`faq.items.${a - 1}.text`, { brand: t.$t("_common:brand.name") })
2555
1322
  ) } })]);
2556
- })], 2)]), t("modal", { staticClass: "primary overflow-visible", attrs: { adaptive: !0, scrollable: !0, "max-width": 400, height: "auto", width: "90%", classes: "primary overflow-visible", name: "reasonableUse" } }, [t("div", { staticStyle: { "background-color": "white", "border-radius": "calc(0.5 * var(--rem))", padding: "calc(1 * var(--rem))" } }, [t("div", { staticStyle: { "font-size": "calc(1.5 * var(--rem))", "font-weight": "600", padding: "calc(1 * var(--rem))" }, domProps: { textContent: e._s(e.$t("reasonableUse.title")) } }), t("div", { staticStyle: { "font-size": "15px", opacity: "0.75", padding: "0 calc(1 * var(--rem)) calc(2 * var(--rem))" }, domProps: { textContent: e._s(e.$t("reasonableUse.text", { brand: e.$t("_common:brand.name") })) } }), t("div", { staticStyle: { padding: "0 calc(1 * var(--rem))" } }, e._l(e.reasonableUseQuotas, function(a, r) {
2557
- return t("div", { key: r, staticStyle: { "font-size": "14px", "margin-bottom": "calc(1 * var(--rem))" } }, [t("span", { staticStyle: { "font-weight": "500", "padding-right": "0.5ch" }, domProps: { textContent: e._s(e.$t(`reasonableUse.${a.type}`) + ":") } }), t("span", { staticStyle: { opacity: "0.75", "padding-right": "0.5ch" }, domProps: { textContent: e._s(e.$t("reasonableUse.quotaIncluded", { count: a.count })) } }), a.cost ? t("span", { staticStyle: { opacity: "0.75" }, domProps: { textContent: e._s(e.$t("reasonableUse.quotaExtra", { cost: a.cost })) } }) : e._e()]);
1323
+ })], 2)]), e("modal", { staticClass: "primary overflow-visible", attrs: { adaptive: !0, scrollable: !0, "max-width": 400, height: "auto", width: "90%", classes: "primary overflow-visible", name: "reasonableUse" } }, [e("div", { staticStyle: { "background-color": "white", "border-radius": "calc(0.5 * var(--rem))", padding: "calc(1 * var(--rem))" } }, [e("div", { staticStyle: { "font-size": "calc(1.5 * var(--rem))", "font-weight": "600", padding: "calc(1 * var(--rem))" }, domProps: { textContent: t._s(t.$t("reasonableUse.title")) } }), e("div", { staticStyle: { "font-size": "15px", opacity: "0.75", padding: "0 calc(1 * var(--rem)) calc(2 * var(--rem))" }, domProps: { textContent: t._s(t.$t("reasonableUse.text", { brand: t.$t("_common:brand.name") })) } }), e("div", { staticStyle: { padding: "0 calc(1 * var(--rem))" } }, t._l(t.reasonableUseQuotas, function(a, n) {
1324
+ return e("div", { key: n, staticStyle: { "font-size": "14px", "margin-bottom": "calc(1 * var(--rem))" } }, [e("span", { staticStyle: { "font-weight": "500", "padding-right": "0.5ch" }, domProps: { textContent: t._s(t.$t(`reasonableUse.${a.type}`) + ":") } }), e("span", { staticStyle: { opacity: "0.75", "padding-right": "0.5ch" }, domProps: { textContent: t._s(t.$t("reasonableUse.quotaIncluded", { count: a.count })) } }), a.cost ? e("span", { staticStyle: { opacity: "0.75" }, domProps: { textContent: t._s(t.$t("reasonableUse.quotaExtra", { cost: a.cost })) } }) : t._e()]);
2558
1325
  }), 0)])])], 1);
2559
- }, Oe = [], Ne = /* @__PURE__ */ d(
2560
- Ae,
2561
- Ve,
2562
- Oe,
1326
+ }, Zt = [], Nt = /* @__PURE__ */ d(
1327
+ qt,
1328
+ jt,
1329
+ Zt,
2563
1330
  !1,
2564
1331
  null,
2565
- "34e4bb3d"
1332
+ "99f68ee9"
2566
1333
  );
2567
- const ze = Ne.exports, qe = {
1334
+ const Yt = Nt.exports, Wt = {
2568
1335
  name: "PremiumStripeSelect",
2569
1336
  i18nOptions: {
2570
1337
  namespaces: "premiumStripeSelect",
@@ -2600,17 +1367,17 @@ const ze = Ne.exports, qe = {
2600
1367
  }
2601
1368
  },
2602
1369
  computed: {
2603
- ...v({
1370
+ ...C({
2604
1371
  currentPlan: "stripe/currentPlan",
2605
1372
  getPrice: "stripe/getPrice"
2606
1373
  }),
2607
1374
  currentAccountType() {
2608
- var n;
2609
- return ((n = this.currentPlan) == null ? void 0 : n.accountType) || "free";
1375
+ var r;
1376
+ return ((r = this.currentPlan) == null ? void 0 : r.accountType) || "free";
2610
1377
  },
2611
1378
  currentInterval() {
2612
- var n;
2613
- return (n = this.currentPlan) == null ? void 0 : n.interval;
1379
+ var r;
1380
+ return (r = this.currentPlan) == null ? void 0 : r.interval;
2614
1381
  }
2615
1382
  },
2616
1383
  created() {
@@ -2621,56 +1388,56 @@ const ze = Ne.exports, qe = {
2621
1388
  opacity: [0, 1],
2622
1389
  delay: u.stagger(80),
2623
1390
  easing: "spring(1, 70, 20, 9)",
2624
- complete: (n) => {
2625
- n.animatables.forEach(({ target: e }) => {
2626
- e.style.transform = "", this.$el.classList.remove("animating");
1391
+ complete: (r) => {
1392
+ r.animatables.forEach(({ target: t }) => {
1393
+ t.style.transform = "", this.$el.classList.remove("animating");
2627
1394
  });
2628
1395
  }
2629
1396
  });
2630
1397
  });
2631
1398
  },
2632
1399
  methods: {
2633
- getPriceFormatted(n) {
2634
- if (n.accountType === "free")
1400
+ getPriceFormatted(r) {
1401
+ if (r.accountType === "free")
2635
1402
  return "";
2636
- const { amount: e, currency: t } = this.getPrice(n.accountType, this.interval) || {};
2637
- if (typeof e > "u" || typeof t > "u")
1403
+ const { amount: t, currency: e } = this.getPrice(r.accountType, this.interval) || {};
1404
+ if (typeof t > "u" || typeof e > "u")
2638
1405
  return "";
2639
- const a = e / (this.interval === "month" ? 1 : 12);
2640
- return `${P(a, { currency: t })}/${this.$t(
1406
+ const a = t / (this.interval === "month" ? 1 : 12);
1407
+ return `${P(a, { currency: e })}/${this.$t(
2641
1408
  "_common:month"
2642
1409
  )}`;
2643
1410
  }
2644
1411
  }
2645
1412
  };
2646
- var Ge = function() {
2647
- var e = this, t = e._self._c;
2648
- return t("div", { staticClass: "animating flex w-full flex-col items-center", staticStyle: { "padding-top": "30px" } }, [t("div", { staticClass: "anim-block flex w-full flex-col items-center text-center", staticStyle: { "margin-bottom": "50px" } }, [t("div", { staticStyle: { "font-size": "22px", "font-weight": "600", "margin-bottom": "20px", "max-width": "20ch" }, domProps: { innerHTML: e._s(e.$t("title", { brand: e.$t("_common:brand.name") })) } }), t("div", { staticStyle: { position: "relative" } }, [t("div", { staticClass: "tgl-btn-group" }, e._l(["month", "year"], function(a) {
2649
- return t("div", { key: a, staticClass: "tgl-btn", class: {
2650
- selected: e.interval === a
2651
- }, domProps: { textContent: e._s(e.$t(`_common:paymentInterval.${a}`).capitalize()) }, on: { click: function(r) {
2652
- return e.$emit("update:interval", a);
1413
+ var Qt = function() {
1414
+ var t = this, e = t._self._c;
1415
+ return e("div", { staticClass: "animating flex w-full flex-col items-center", staticStyle: { "padding-top": "30px" } }, [e("div", { staticClass: "anim-block flex w-full flex-col items-center text-center", staticStyle: { "margin-bottom": "50px" } }, [e("div", { staticStyle: { "font-size": "22px", "font-weight": "600", "margin-bottom": "20px", "max-width": "20ch" }, domProps: { innerHTML: t._s(t.$t("title", { brand: t.$t("_common:brand.name") })) } }), e("div", { staticStyle: { position: "relative" } }, [e("div", { staticClass: "tgl-btn-group" }, t._l(["month", "year"], function(a) {
1416
+ return e("div", { key: a, staticClass: "tgl-btn", class: {
1417
+ selected: t.interval === a
1418
+ }, domProps: { textContent: t._s(t.$t(`_common:paymentInterval.${a}`).capitalize()) }, on: { click: function(n) {
1419
+ return t.$emit("update:interval", a);
2653
1420
  } } });
2654
- }), 0), t("div", { staticClass: "text-primary-600 absolute left-[88%] top-[112%] whitespace-nowrap text-[13px]" }, [t("svg", { attrs: { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" } }, [t("path", { attrs: { d: "M1.73255 11.5162L3.78467 5.87805L9.42282 7.93017", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" } }), t("path", { attrs: { d: "M3.78467 5.87805C4.42683 7.25608 8.24738 13.7995 10.2964 15.6909C13.8158 18.9395 19.2241 17.4113 22.0419 16.6886", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" } })]), t("span", { staticStyle: { "padding-left": "0.25em" }, domProps: { textContent: e._s(e.$t("saveYearly")) } })])])]), t("div", { staticClass: "PriceGrid" }, e._l(e.plans, function(a, r) {
2655
- return t("div", { key: r, staticClass: "PriceItem anim-block", class: {
2656
- selected: e.plan === a.accountType
1421
+ }), 0), e("div", { staticClass: "text-primary-600 absolute left-[88%] top-[112%] whitespace-nowrap text-[13px]" }, [e("svg", { attrs: { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" } }, [e("path", { attrs: { d: "M1.73255 11.5162L3.78467 5.87805L9.42282 7.93017", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" } }), e("path", { attrs: { d: "M3.78467 5.87805C4.42683 7.25608 8.24738 13.7995 10.2964 15.6909C13.8158 18.9395 19.2241 17.4113 22.0419 16.6886", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" } })]), e("span", { staticStyle: { "padding-left": "0.25em" }, domProps: { textContent: t._s(t.$t("saveYearly")) } })])])]), e("div", { staticClass: "PriceGrid" }, t._l(t.plans, function(a, n) {
1422
+ return e("div", { key: n, staticClass: "PriceItem anim-block", class: {
1423
+ selected: t.plan === a.accountType
2657
1424
  }, on: { click: function(i) {
2658
- return e.$emit("update:plan", a.accountType);
2659
- } } }, [t("div", [t("img", { staticStyle: { "box-shadow": "0 4px 6px rgba(240, 147, 234, 0.34)", "border-radius": "50%" }, attrs: { src: a.img, alt: a.name, width: "50", height: "50" } })]), t("div", { staticClass: "PriceItem__title" }, [t("span", { domProps: { textContent: e._s(a.name) } }), e._v("  ")]), e.currentAccountType === a.accountType ? t("svg", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.$t("currentPlan"), expression: "$t('currentPlan')" }], staticClass: "[.selected_&]:text-primary-500 absolute right-0 top-0 rounded-tr-lg text-gray-400", attrs: { width: "50", height: "50", viewBox: "0 0 70 70", fill: "none", xmlns: "http://www.w3.org/2000/svg" } }, [t("path", { attrs: { d: "M0 0H70V70L0 0Z", fill: "currentColor" } }), t("path", { attrs: { d: "M39.4203 23.5667L45 29.1464L57.0732 17.0732", stroke: "white", "stroke-width": "4" } })]) : e._e(), t("div", { staticClass: "PriceItem__cost" }, [t("span", { staticStyle: { display: "inline-block" }, domProps: { textContent: e._s(e.getPriceFormatted(a)) } }), e._v("   ")]), t("div", { staticStyle: { "font-size": "14px", "margin-bottom": "20px", color: "hsl(240, 8%, 45%)", "min-height": "2em" } }, [t("transition", { attrs: { name: "vertical-fader" } }, [e.interval === "year" && a.accountType !== "free" ? t("span", { staticStyle: { display: "inline-block" }, domProps: { textContent: e._s(e.$t("billedYearly")) } }) : e._e()])], 1), t("ul", { staticClass: "PriceItem__text" }, e._l(a.features, function(i) {
2660
- return t("li", { key: i }, [t("span", { domProps: { textContent: e._s(i) } })]);
1425
+ return t.$emit("update:plan", a.accountType);
1426
+ } } }, [e("div", [e("img", { staticStyle: { "box-shadow": "0 4px 6px rgba(240, 147, 234, 0.34)", "border-radius": "50%" }, attrs: { src: a.img, alt: a.name, width: "50", height: "50" } })]), e("div", { staticClass: "PriceItem__title" }, [e("span", { domProps: { textContent: t._s(a.name) } }), t._v("  ")]), t.currentAccountType === a.accountType ? e("svg", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: t.$t("currentPlan"), expression: "$t('currentPlan')" }], staticClass: "[.selected_&]:text-primary-500 absolute right-0 top-0 rounded-tr-lg text-gray-400", attrs: { width: "50", height: "50", viewBox: "0 0 70 70", fill: "none", xmlns: "http://www.w3.org/2000/svg" } }, [e("path", { attrs: { d: "M0 0H70V70L0 0Z", fill: "currentColor" } }), e("path", { attrs: { d: "M39.4203 23.5667L45 29.1464L57.0732 17.0732", stroke: "white", "stroke-width": "4" } })]) : t._e(), e("div", { staticClass: "PriceItem__cost" }, [e("span", { staticStyle: { display: "inline-block" }, domProps: { textContent: t._s(t.getPriceFormatted(a)) } }), t._v("   ")]), e("div", { staticStyle: { "font-size": "14px", "margin-bottom": "20px", color: "hsl(240, 8%, 45%)", "min-height": "2em" } }, [e("transition", { attrs: { name: "vertical-fader" } }, [t.interval === "year" && a.accountType !== "free" ? e("span", { staticStyle: { display: "inline-block" }, domProps: { textContent: t._s(t.$t("billedYearly")) } }) : t._e()])], 1), e("ul", { staticClass: "PriceItem__text" }, t._l(a.features, function(i) {
1427
+ return e("li", { key: i }, [e("span", { domProps: { textContent: t._s(i) } })]);
2661
1428
  }), 0)]);
2662
- }), 0), t("CButton", { staticClass: "anim-block sticky-btn", attrs: { disabled: e.currentAccountType === e.plan && e.currentInterval === e.interval || e.plan === "free", type: "secondary", "icon-right": "arrow-right" }, on: { click: function(a) {
2663
- return e.$emit("next");
2664
- } } }, [e._v(" " + e._s(e.$t("continueButton")) + " ")])], 1);
2665
- }, je = [], Ze = /* @__PURE__ */ d(
2666
- qe,
2667
- Ge,
2668
- je,
1429
+ }), 0), e("CButton", { staticClass: "anim-block sticky-btn", attrs: { disabled: t.currentAccountType === t.plan && t.currentInterval === t.interval || t.plan === "free", type: "secondary", "icon-right": "arrow-right" }, on: { click: function(a) {
1430
+ return t.$emit("next");
1431
+ } } }, [t._v(" " + t._s(t.$t("continueButton")) + " ")])], 1);
1432
+ }, Gt = [], Jt = /* @__PURE__ */ d(
1433
+ Wt,
1434
+ Qt,
1435
+ Gt,
2669
1436
  !1,
2670
1437
  null,
2671
- "711f5729"
1438
+ "51c5e4b2"
2672
1439
  );
2673
- const Ke = Ze.exports, Ye = {
1440
+ const Kt = Jt.exports, Xt = {
2674
1441
  sv: {
2675
1442
  premiumStripe: {
2676
1443
  "features.free": [
@@ -2713,7 +1480,7 @@ const Ke = Ze.exports, Ye = {
2713
1480
  title: 'Upgrade your plan. <span style="opacity: 0.5;">Get more out of Offerta.</span>'
2714
1481
  }
2715
1482
  }
2716
- }, We = {
1483
+ }, te = {
2717
1484
  name: "PremiumStripe",
2718
1485
  i18nOptions: {
2719
1486
  namespaces: "premiumStripe",
@@ -2849,9 +1616,9 @@ const Ke = Ze.exports, Ye = {
2849
1616
  }
2850
1617
  },
2851
1618
  components: {
2852
- Confetti: Fe,
2853
- PremiumStripeSelect: Ke,
2854
- PremiumStripeForm: ze
1619
+ Confetti: Ut,
1620
+ PremiumStripeSelect: Kt,
1621
+ PremiumStripeForm: Yt
2855
1622
  },
2856
1623
  props: {
2857
1624
  suggestedQuantity: {
@@ -2872,11 +1639,11 @@ const Ke = Ze.exports, Ye = {
2872
1639
  };
2873
1640
  },
2874
1641
  computed: {
2875
- ...me({
2876
- forceShowBase: (n) => n.route.query.base,
2877
- routeDeal: (n) => n.route.query.deal
1642
+ ...pt({
1643
+ forceShowBase: (r) => r.route.query.base,
1644
+ routeDeal: (r) => r.route.query.deal
2878
1645
  }),
2879
- ...v({
1646
+ ...C({
2880
1647
  accountConfigName: "application/accountConfigName",
2881
1648
  accountType: "application/companyAccountType",
2882
1649
  subscription: "application/subscription",
@@ -2890,66 +1657,66 @@ const Ke = Ze.exports, Ye = {
2890
1657
  }),
2891
1658
  quantity: {
2892
1659
  get() {
2893
- var n;
2894
- return (n = this.formPlan) == null ? void 0 : n.quantity;
1660
+ var r;
1661
+ return (r = this.formPlan) == null ? void 0 : r.quantity;
2895
1662
  },
2896
- set(n) {
2897
- this.setFormValue({ key: "plan.quantity", value: n });
1663
+ set(r) {
1664
+ this.setFormValue({ key: "plan.quantity", value: r });
2898
1665
  }
2899
1666
  },
2900
1667
  plan: {
2901
1668
  get() {
2902
- var n;
2903
- return (n = this.formPlan) == null ? void 0 : n.accountType;
1669
+ var r;
1670
+ return (r = this.formPlan) == null ? void 0 : r.accountType;
2904
1671
  },
2905
- set(n) {
2906
- this.setFormValue({ key: "plan.accountType", value: n });
1672
+ set(r) {
1673
+ this.setFormValue({ key: "plan.accountType", value: r });
2907
1674
  }
2908
1675
  },
2909
1676
  interval: {
2910
1677
  get() {
2911
- var n;
2912
- return (n = this.formPlan) == null ? void 0 : n.interval;
1678
+ var r;
1679
+ return (r = this.formPlan) == null ? void 0 : r.interval;
2913
1680
  },
2914
- set(n) {
2915
- this.setFormValue({ key: "plan.interval", value: n });
1681
+ set(r) {
1682
+ this.setFormValue({ key: "plan.interval", value: r });
2916
1683
  }
2917
1684
  },
2918
1685
  dealSource: {
2919
1686
  get() {
2920
1687
  return this.formDealSource;
2921
1688
  },
2922
- set(n) {
2923
- this.setFormValue({ key: "dealSource", value: n });
1689
+ set(r) {
1690
+ this.setFormValue({ key: "dealSource", value: r });
2924
1691
  }
2925
1692
  },
2926
1693
  prettyPlans() {
2927
- const n = [], e = this.getPrice("start", "month") || this.getPrice("start", "year"), t = this.getPrice("base", "month") || this.getPrice("base", "year"), a = e && (this.subscription.maxProjectManagers === 1 && this.subscription.mrr < 4e4 || !["base", "pro"].includes(this.accountType)), r = () => {
1694
+ const r = [], t = this.getPrice("start", "month") || this.getPrice("start", "year"), e = this.getPrice("base", "month") || this.getPrice("base", "year"), a = t && (this.subscription.maxProjectManagers === 1 && this.subscription.mrr < 4e4 || !["base", "pro"].includes(this.accountType)), n = () => {
2928
1695
  const i = this.subscription.isStripeLegacy || this.subscription.paymentMethod === "invoice", s = this.subscription.billingCycleInterval === "month" && this.subscription.mrr < 45e3 || this.subscription.billingCycleInterval === "year" && this.subscription.mrr < 38e3;
2929
- return t && (i && !this.forceShowBase ? s : !0);
1696
+ return e && (i && !this.forceShowBase ? s : !0);
2930
1697
  };
2931
- return this.isOfferta && n.push({
1698
+ return this.isOfferta && r.push({
2932
1699
  name: "Free",
2933
1700
  accountType: "free",
2934
- img: k("/account/subscription/bg-start.png"),
1701
+ img: x("/account/subscription/bg-start.png"),
2935
1702
  // TODO: same img as base
2936
1703
  features: this.$t("features.free")
2937
- }), a && n.push({
1704
+ }), a && r.push({
2938
1705
  name: "Start",
2939
1706
  accountType: "start",
2940
- img: k("/account/subscription/bg-start.png"),
1707
+ img: x("/account/subscription/bg-start.png"),
2941
1708
  features: this.$t("features.start")
2942
- }), r() && n.push({
1709
+ }), n() && r.push({
2943
1710
  name: "Base",
2944
1711
  accountType: "base",
2945
- img: k("/account/subscription/bg-base.png"),
1712
+ img: x("/account/subscription/bg-base.png"),
2946
1713
  features: this.$t("features.base")
2947
- }), n.push({
1714
+ }), r.push({
2948
1715
  name: "Pro",
2949
1716
  accountType: "pro",
2950
- img: k("/account/subscription/bg-pro.png"),
1717
+ img: x("/account/subscription/bg-pro.png"),
2951
1718
  features: this.$t("features.pro")
2952
- }), n;
1719
+ }), r;
2953
1720
  },
2954
1721
  calloutMode() {
2955
1722
  return this.subscription.showCalloutConvertStripe ? "invoice" : this.subscription.isStripeLegacy ? "legacy" : null;
@@ -2958,14 +1725,14 @@ const Ke = Ze.exports, Ye = {
2958
1725
  return this.accountConfigName === "offerta";
2959
1726
  },
2960
1727
  disableQuantity() {
2961
- return this.isOfferta && this.$view === "widget";
1728
+ return this.isOfferta && it.value === "widget";
2962
1729
  }
2963
1730
  },
2964
1731
  beforeCreate() {
2965
- this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", j);
1732
+ this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", N);
2966
1733
  },
2967
1734
  async created() {
2968
- this.isOfferta && ie(Ye), this.resetStripeForm(), await this.loadPrices(), await this.suggestQuantity(), await this.handlePossibleDeal(), this.isEdit = !!this.subscriptions.length;
1735
+ this.isOfferta && st(Xt), this.resetStripeForm(), await this.loadPrices(), await this.suggestQuantity(), await this.handlePossibleDeal(), this.isEdit = !!this.subscriptions.length;
2969
1736
  },
2970
1737
  methods: {
2971
1738
  ...$({
@@ -2982,8 +1749,8 @@ const Ke = Ze.exports, Ye = {
2982
1749
  this.quantity = this.suggestedQuantity;
2983
1750
  return;
2984
1751
  }
2985
- const { data: n } = await se();
2986
- this.quantity = n;
1752
+ const { data: r } = await ot();
1753
+ this.quantity = r;
2987
1754
  },
2988
1755
  onReset() {
2989
1756
  this.view = "select", this.resetStripeForm();
@@ -3009,78 +1776,78 @@ const Ke = Ze.exports, Ye = {
3009
1776
  },
3010
1777
  removePossibleDealToken() {
3011
1778
  if (this.routeDeal) {
3012
- const n = { ...this.$route.query };
3013
- delete n.deal, this.$router.replace({ ...this.$route, query: n });
1779
+ const r = { ...this.$route.query };
1780
+ delete r.deal, this.$router.replace({ ...this.$route, query: r });
3014
1781
  } else
3015
1782
  this.stripeCustomDealToken && this.updateSettings({
3016
1783
  key: "company",
3017
1784
  settings: { stripeCustomDealToken: null }
3018
1785
  });
3019
1786
  },
3020
- setFromDealToken(n) {
3021
- if (n)
1787
+ setFromDealToken(r) {
1788
+ if (r)
3022
1789
  try {
3023
- const e = oe(n);
3024
- if (e.accountType && (this.plan = e.accountType), e.accountTypeInterval && (this.interval = e.accountTypeInterval), e.accountQuantity && (this.quantity = e.accountQuantity), e.dealSource && (this.dealSource = e.dealSource), e.items) {
3025
- const t = [];
3026
- Object.keys(e.items).forEach((a) => {
3027
- const r = this.getProductByPriceId(a);
3028
- r && t.push({
3029
- ...r,
3030
- quantity: e.items[a]
1790
+ const t = lt(r);
1791
+ if (t.accountType && (this.plan = t.accountType), t.accountTypeInterval && (this.interval = t.accountTypeInterval), t.accountQuantity && (this.quantity = t.accountQuantity), t.dealSource && (this.dealSource = t.dealSource), t.items) {
1792
+ const e = [];
1793
+ Object.keys(t.items).forEach((a) => {
1794
+ const n = this.getProductByPriceId(a);
1795
+ n && e.push({
1796
+ ...n,
1797
+ quantity: t.items[a]
3031
1798
  });
3032
- }), t.length && this.setFormValue({
1799
+ }), e.length && this.setFormValue({
3033
1800
  key: "products",
3034
1801
  value: [
3035
1802
  // ...this.formProducts,
3036
- ...t
1803
+ ...e
3037
1804
  ]
3038
1805
  });
3039
1806
  }
3040
1807
  this.view = "form";
3041
- } catch (e) {
3042
- console.error(e);
1808
+ } catch (t) {
1809
+ console.error(t);
3043
1810
  }
3044
1811
  }
3045
1812
  }
3046
1813
  };
3047
- var Xe = function() {
3048
- var e = this, t = e._self._c;
3049
- return t("div", { staticClass: "font-inter anime-payment-modal font-base relative grid h-full place-items-center overflow-auto bg-white px-12 py-8" }, [t("div", { staticStyle: { position: "absolute", left: "1em", top: "0.5em", display: "inline-flex", "z-index": "10" } }, [t("CButton", { attrs: { "icon-props": { size: 20 }, pattern: "tertiary", type: "none", circle: "", icon: "x" }, on: { click: function(a) {
3050
- return e.$emit("close");
3051
- } } }), e.view === "form" ? t("CButton", { staticStyle: { "margin-left": "2px" }, attrs: { "icon-props": { size: 20 }, pattern: "tertiary", type: "none", circle: "", icon: "arrow-left" }, on: { click: e.onReset } }) : e._e()], 1), e.calloutMode ? t("div", { staticClass: "bg-primary-100 border-primary-300 relative inline-block rounded-lg border-2 py-4 pl-12 pr-4", staticStyle: { "max-width": "calc(55 * var(--rem))" } }, [t("CIcon", { staticClass: "text-primary-800 absolute left-4 top-5", attrs: { type: "info", size: "20" } }), t("div", { staticClass: "text-primary-800 font-semibold", domProps: { textContent: e._s(e.$t(`callout.${e.calloutMode}.title`)) } }), t("div", { staticClass: "text-sm opacity-70", domProps: { innerHTML: e._s(e.$t(`callout.${e.calloutMode}.text`)) } })], 1) : e._e(), t("div", [e.view === "select" ? t("PremiumStripeSelect", { attrs: { plan: e.plan, interval: e.interval, plans: e.prettyPlans }, on: { "update:plan": function(a) {
3052
- e.plan = a;
1814
+ var ee = function() {
1815
+ var t = this, e = t._self._c;
1816
+ return e("div", { staticClass: "font-inter anime-payment-modal font-base relative grid h-full place-items-center overflow-auto bg-white px-12 py-8" }, [e("div", { staticStyle: { position: "absolute", left: "1em", top: "0.5em", display: "inline-flex", "z-index": "10" } }, [e("CButton", { attrs: { "icon-props": { size: 20 }, pattern: "tertiary", type: "none", circle: "", icon: "x" }, on: { click: function(a) {
1817
+ return t.$emit("close");
1818
+ } } }), t.view === "form" ? e("CButton", { staticStyle: { "margin-left": "2px" }, attrs: { "icon-props": { size: 20 }, pattern: "tertiary", type: "none", circle: "", icon: "arrow-left" }, on: { click: t.onReset } }) : t._e()], 1), t.calloutMode ? e("div", { staticClass: "bg-primary-100 border-primary-300 relative inline-block rounded-lg border-2 py-4 pl-12 pr-4", staticStyle: { "max-width": "calc(55 * var(--rem))" } }, [e("CIcon", { staticClass: "text-primary-800 absolute left-4 top-5", attrs: { type: "info", size: "20" } }), e("div", { staticClass: "text-primary-800 font-semibold", domProps: { textContent: t._s(t.$t(`callout.${t.calloutMode}.title`)) } }), e("div", { staticClass: "text-sm opacity-70", domProps: { innerHTML: t._s(t.$t(`callout.${t.calloutMode}.text`)) } })], 1) : t._e(), e("div", [t.view === "select" ? e("PremiumStripeSelect", { attrs: { plan: t.plan, interval: t.interval, plans: t.prettyPlans }, on: { "update:plan": function(a) {
1819
+ t.plan = a;
3053
1820
  }, "update:interval": function(a) {
3054
- e.interval = a;
1821
+ t.interval = a;
3055
1822
  }, next: function(a) {
3056
- e.view = "form";
3057
- } } }) : e.view === "form" ? t("PremiumStripeForm", { attrs: { "ui-plan": e.prettyPlans.find((a) => a.accountType === e.plan), "form-plan": e.formPlan, "disable-quantity": e.disableQuantity, "hide-extra-info": e.isOfferta, "collect-consent": e.isOfferta }, on: { "update:interval": function(a) {
3058
- e.interval = a;
3059
- }, input: e.setFormValue, success: e.goToSuccess } }) : e.view === "success" ? t("div", { staticClass: "flex h-full w-full flex-col items-center justify-center text-center" }, [t("Confetti", { attrs: { animate: e.animateConfetti } }), e.isEdit ? e._e() : t("div", { staticClass: "success-block", staticStyle: { "font-size": "calc(18px + 2vw)", "font-weight": "800" } }, [e._v(" " + e._s(e.$t("success.title")) + " ")]), t("div", { staticClass: "success-block", staticStyle: { "font-size": "20px", opacity: "0.7" } }, [e._v(" " + e._s(e.isEdit ? e.$t("success.subTitleEdit") : e.$t("success.subTitle")) + " ")]), t("CButton", { staticClass: "success-block", staticStyle: { "margin-top": "3em" }, attrs: { type: "secondary", size: "medium", rounded: "" }, on: { click: function(a) {
3060
- return e.closeAndContinue();
3061
- } } }, [e._v(" " + e._s(e.$t("success.closeButton")) + " ")])], 1) : e._e()], 1)]);
3062
- }, Qe = [], Je = /* @__PURE__ */ d(
3063
- We,
3064
- Xe,
3065
- Qe,
1823
+ t.view = "form";
1824
+ } } }) : t.view === "form" ? e("PremiumStripeForm", { attrs: { "ui-plan": t.prettyPlans.find((a) => a.accountType === t.plan), "form-plan": t.formPlan, "disable-quantity": t.disableQuantity, "hide-extra-info": t.isOfferta, "collect-consent": t.isOfferta }, on: { "update:interval": function(a) {
1825
+ t.interval = a;
1826
+ }, input: t.setFormValue, success: t.goToSuccess } }) : t.view === "success" ? e("div", { staticClass: "flex h-full w-full flex-col items-center justify-center text-center" }, [e("Confetti", { attrs: { animate: t.animateConfetti } }), t.isEdit ? t._e() : e("div", { staticClass: "success-block", staticStyle: { "font-size": "calc(18px + 2vw)", "font-weight": "800" } }, [t._v(" " + t._s(t.$t("success.title")) + " ")]), e("div", { staticClass: "success-block", staticStyle: { "font-size": "20px", opacity: "0.7" } }, [t._v(" " + t._s(t.isEdit ? t.$t("success.subTitleEdit") : t.$t("success.subTitle")) + " ")]), e("CButton", { staticClass: "success-block", staticStyle: { "margin-top": "3em" }, attrs: { type: "secondary", size: "medium", rounded: "" }, on: { click: function(a) {
1827
+ return t.closeAndContinue();
1828
+ } } }, [t._v(" " + t._s(t.$t("success.closeButton")) + " ")])], 1) : t._e()], 1)]);
1829
+ }, re = [], ae = /* @__PURE__ */ d(
1830
+ te,
1831
+ ee,
1832
+ re,
3066
1833
  !1,
3067
1834
  null,
3068
1835
  null
3069
1836
  );
3070
- const K = Je.exports, et = {
1837
+ const W = ae.exports, ne = {
3071
1838
  name: "IsPremium",
3072
1839
  computed: {
3073
- ...v({
1840
+ ...C({
3074
1841
  feature: "application/feature",
3075
1842
  subscription: "application/subscription",
3076
1843
  companyAccount: "application/companyAccount",
3077
1844
  stripeCustomDealToken: "settings/stripeCustomDealToken"
3078
1845
  }),
3079
1846
  isPremium() {
3080
- return H.includes(this.subscription.type);
1847
+ return D.includes(this.subscription.type);
3081
1848
  },
3082
1849
  isPremiumLike() {
3083
- return ["trial", ...H].includes(this.subscription.type);
1850
+ return ["trial", ...D].includes(this.subscription.type);
3084
1851
  },
3085
1852
  isProLike() {
3086
1853
  return ["pro", "trial"].includes(this.subscription.type);
@@ -3090,7 +1857,7 @@ const K = Je.exports, et = {
3090
1857
  },
3091
1858
  canCreateDocument() {
3092
1859
  return this.subscription.freeDocumentsLeft > 0 || // Has free quota left
3093
- C(this.companyAccount, "documentQuota.priceExtra.value") !== null;
1860
+ v(this.companyAccount, "documentQuota.priceExtra.value") !== null;
3094
1861
  },
3095
1862
  canCreateTemplate() {
3096
1863
  return this.feature("createDocTemplate");
@@ -3111,8 +1878,8 @@ const K = Je.exports, et = {
3111
1878
  },
3112
1879
  created() {
3113
1880
  if (this.openSubscription) {
3114
- const n = { ...this.$route.query };
3115
- delete n.openSubscription, this.$router.replace({ ...this.$route, query: n }), this.openUpgradeModal();
1881
+ const r = { ...this.$route.query };
1882
+ delete r.openSubscription, this.$router.replace({ ...this.$route, query: r }), this.openUpgradeModal();
3116
1883
  } else
3117
1884
  this.stripeCustomDealToken && this.openUpgradeModal();
3118
1885
  },
@@ -3125,15 +1892,15 @@ const K = Je.exports, et = {
3125
1892
  * @param {Function} obj.onClosed Optional callback to run after Stripe modal is closed
3126
1893
  */
3127
1894
  openUpgradeModal({
3128
- suggestedQuantity: n = null,
3129
- callback: e = null,
3130
- onClosed: t = null
1895
+ suggestedQuantity: r = null,
1896
+ callback: t = null,
1897
+ onClosed: e = null
3131
1898
  } = {}) {
3132
- let a = () => null, r = () => null;
3133
- typeof e == "function" && (a = e), typeof t == "function" && (r = t), this.$modal.show(
3134
- K,
1899
+ let a = () => null, n = () => null;
1900
+ typeof t == "function" && (a = t), typeof e == "function" && (n = e), this.$modal.show(
1901
+ W,
3135
1902
  {
3136
- suggestedQuantity: n,
1903
+ suggestedQuantity: r,
3137
1904
  onUpgrade: a
3138
1905
  },
3139
1906
  {
@@ -3144,7 +1911,7 @@ const K = Je.exports, et = {
3144
1911
  },
3145
1912
  {
3146
1913
  closed: () => {
3147
- typeof r == "function" && r();
1914
+ typeof n == "function" && n();
3148
1915
  }
3149
1916
  }
3150
1917
  );
@@ -3171,16 +1938,16 @@ const K = Je.exports, et = {
3171
1938
  canUseSms: this.canUseSms
3172
1939
  }) : {};
3173
1940
  }
3174
- }, tt = null, nt = null;
3175
- var at = /* @__PURE__ */ d(
3176
- et,
3177
- tt,
3178
- nt,
1941
+ }, ie = null, se = null;
1942
+ var oe = /* @__PURE__ */ d(
1943
+ ne,
1944
+ ie,
1945
+ se,
3179
1946
  !1,
3180
1947
  null,
3181
1948
  null
3182
1949
  );
3183
- const Y = at.exports, rt = {
1950
+ const Q = oe.exports, le = {
3184
1951
  i18nOptions: {
3185
1952
  namespaces: "components",
3186
1953
  messages: {
@@ -3204,14 +1971,14 @@ const Y = at.exports, rt = {
3204
1971
  },
3205
1972
  name: "PremiumRestrictedBase",
3206
1973
  components: {
3207
- IsPremium: Y,
3208
- CalloutLegacy: G
1974
+ IsPremium: Q,
1975
+ CalloutLegacy: Z
3209
1976
  },
3210
1977
  props: {
3211
1978
  plan: {
3212
1979
  type: String,
3213
1980
  default: "pro",
3214
- validator: (n) => ["pro", "premium"].includes(n)
1981
+ validator: (r) => ["pro", "premium"].includes(r)
3215
1982
  },
3216
1983
  title: {
3217
1984
  type: String,
@@ -3240,37 +2007,37 @@ const Y = at.exports, rt = {
3240
2007
  };
3241
2008
  },
3242
2009
  methods: {
3243
- async onActionClick(n) {
2010
+ async onActionClick(r) {
3244
2011
  try {
3245
- this.isLoading = !0, await n({ callback: this.onUpgrade }), this.$parent.$emit("close");
2012
+ this.isLoading = !0, await r({ callback: this.onUpgrade }), this.$parent.$emit("close");
3246
2013
  } finally {
3247
2014
  this.isLoading = !1;
3248
2015
  }
3249
2016
  }
3250
2017
  }
3251
2018
  };
3252
- var it = function() {
3253
- var e = this, t = e._self._c;
3254
- return t("div", { staticClass: "root font-inter" }, [t("div", { staticClass: "lock-wrapper has-text-white" }, [t("CIcon", { attrs: { type: "lock", size: "24" } })], 1), t("div", { staticStyle: { width: "100%" } }, [t("div", { staticClass: "flex items-center justify-center" }, [t("div", { staticClass: "badge-premium" }, [e._v(e._s(e.$t(`badge.${e.plan}`)))])]), t("div", { staticStyle: { "text-align": "center" } }, [e._t("default", function() {
3255
- return [e._t("image"), t("div", { staticClass: "title" }, [e._v(e._s(e.title))]), t("div", { staticClass: "sub-title" }, [e._v(e._s(e.subTitle))])];
3256
- }), e.$slots.content ? t("div", { staticStyle: { "margin-top": "calc(2 * var(--rem))" } }, [e._t("content")], 2) : e._e()], 2), t("div", { staticStyle: { "margin-top": "calc(2 * var(--rem))" } }, [t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ openUpgradeModal: a, isLegacy: r, showCalloutConvertStripe: i }) {
3257
- return [t("div", [r || i ? t("CalloutLegacy", { attrs: { mode: r ? "legacy" : "invoice" } }) : e._e(), t("CButton", { attrs: { loading: e.isLoading, disabled: r || i, type: "secondary", wide: "" }, on: { click: function(s) {
3258
- return e.onActionClick(e.actionFunction || a);
3259
- } } }, [e._t("actionText", function() {
3260
- return [e._v(e._s(e.$t("upgradeButton")))];
2019
+ var ce = function() {
2020
+ var t = this, e = t._self._c;
2021
+ return e("div", { staticClass: "root font-inter" }, [e("div", { staticClass: "lock-wrapper has-text-white" }, [e("CIcon", { attrs: { type: "lock", size: "24" } })], 1), e("div", { staticStyle: { width: "100%" } }, [e("div", { staticClass: "flex items-center justify-center" }, [e("div", { staticClass: "badge-premium" }, [t._v(t._s(t.$t(`badge.${t.plan}`)))])]), e("div", { staticStyle: { "text-align": "center" } }, [t._t("default", function() {
2022
+ return [t._t("image"), e("div", { staticClass: "title" }, [t._v(t._s(t.title))]), e("div", { staticClass: "sub-title" }, [t._v(t._s(t.subTitle))])];
2023
+ }), t.$slots.content ? e("div", { staticStyle: { "margin-top": "calc(2 * var(--rem))" } }, [t._t("content")], 2) : t._e()], 2), e("div", { staticStyle: { "margin-top": "calc(2 * var(--rem))" } }, [e("IsPremium", { scopedSlots: t._u([{ key: "default", fn: function({ openUpgradeModal: a, isLegacy: n, showCalloutConvertStripe: i }) {
2024
+ return [e("div", [n || i ? e("CalloutLegacy", { attrs: { mode: n ? "legacy" : "invoice" } }) : t._e(), e("CButton", { attrs: { loading: t.isLoading, disabled: n || i, type: "secondary", wide: "" }, on: { click: function(s) {
2025
+ return t.onActionClick(t.actionFunction || a);
2026
+ } } }, [t._t("actionText", function() {
2027
+ return [t._v(t._s(t.$t("upgradeButton")))];
3261
2028
  })], 2)], 1)];
3262
- } }], null, !0) }), t("div", { staticStyle: { "margin-top": "5px" } }, [t("CButton", { attrs: { type: "none", pattern: "tertiary", wide: "" }, on: { click: function(a) {
3263
- return e.$parent.$emit("close");
3264
- } } }, [e._v(" " + e._s(e.$t("cancelButton")) + " ")])], 1)], 1)])]);
3265
- }, st = [], ot = /* @__PURE__ */ d(
3266
- rt,
3267
- it,
3268
- st,
2029
+ } }], null, !0) }), e("div", { staticStyle: { "margin-top": "5px" } }, [e("CButton", { attrs: { type: "none", pattern: "tertiary", wide: "" }, on: { click: function(a) {
2030
+ return t.$parent.$emit("close");
2031
+ } } }, [t._v(" " + t._s(t.$t("cancelButton")) + " ")])], 1)], 1)])]);
2032
+ }, ue = [], de = /* @__PURE__ */ d(
2033
+ le,
2034
+ ce,
2035
+ ue,
3269
2036
  !1,
3270
2037
  null,
3271
- "d154238a"
2038
+ "dad02d78"
3272
2039
  );
3273
- const f = ot.exports, ct = {
2040
+ const g = de.exports, me = {
3274
2041
  i18nOptions: {
3275
2042
  namespaces: "PremiumRestrictedBankIdAndSms",
3276
2043
  messages: {
@@ -3288,7 +2055,7 @@ const f = ot.exports, ct = {
3288
2055
  },
3289
2056
  name: "PremiumRestrictedBankIdAndSms",
3290
2057
  components: {
3291
- PremiumRestrictedBase: f
2058
+ PremiumRestrictedBase: g
3292
2059
  },
3293
2060
  props: {
3294
2061
  onUpgrade: {
@@ -3297,27 +2064,29 @@ const f = ot.exports, ct = {
3297
2064
  }
3298
2065
  },
3299
2066
  computed: {
3300
- ...v({
2067
+ ...C({
3301
2068
  feature: "application/feature"
3302
2069
  })
3303
2070
  }
3304
2071
  };
3305
- var lt = function() {
3306
- var e = this, t = e._self._c;
3307
- return t("PremiumRestrictedBase", { attrs: { title: e.$t("title", {
3308
- bankIdText: e.feature("bankId") ? "BankID " + e.$t("_common:and") : ""
3309
- }), "sub-title": e.$t("subTitle", {
3310
- bankIdText: e.feature("bankId") ? "BankID " + e.$t("_common:or") : ""
3311
- }), "on-upgrade": e.onUpgrade, plan: "pro" } }, [t("template", { slot: "actionText" }, [e._v(" " + e._s(e.$t("actionText")) + " ")])], 2);
3312
- }, ut = [], dt = /* @__PURE__ */ d(
3313
- ct,
3314
- lt,
3315
- ut,
2072
+ var pe = function() {
2073
+ var t = this, e = t._self._c;
2074
+ return e("PremiumRestrictedBase", { attrs: { title: t.$t("title", {
2075
+ bankIdText: t.feature("bankId") ? "BankID " + t.$t("_common:and") : ""
2076
+ }), "sub-title": t.$t("subTitle", {
2077
+ bankIdText: t.feature("bankId") ? "BankID " + t.$t("_common:or") : ""
2078
+ }), "on-upgrade": t.onUpgrade, plan: "pro" }, scopedSlots: t._u([{ key: "actionText", fn: function() {
2079
+ return [t._v(" " + t._s(t.$t("actionText")) + " ")];
2080
+ }, proxy: !0 }]) });
2081
+ }, fe = [], he = /* @__PURE__ */ d(
2082
+ me,
2083
+ pe,
2084
+ fe,
3316
2085
  !1,
3317
2086
  null,
3318
2087
  null
3319
2088
  );
3320
- const mt = dt.exports, pt = {
2089
+ const ge = he.exports, ye = {
3321
2090
  i18nOptions: {
3322
2091
  namespaces: "licenses",
3323
2092
  messages: {
@@ -3335,7 +2104,7 @@ const mt = dt.exports, pt = {
3335
2104
  },
3336
2105
  name: "PremiumRestrictedCreators",
3337
2106
  components: {
3338
- PremiumRestrictedBase: f
2107
+ PremiumRestrictedBase: g
3339
2108
  },
3340
2109
  props: {
3341
2110
  onUpgrade: {
@@ -3344,18 +2113,20 @@ const mt = dt.exports, pt = {
3344
2113
  }
3345
2114
  }
3346
2115
  };
3347
- var gt = function() {
3348
- var e = this, t = e._self._c;
3349
- return t("PremiumRestrictedBase", { attrs: { title: e.$t("title"), "sub-title": e.$t("subTitle"), "action-function": e.onUpgrade, plan: "premium" } }, [t("template", { slot: "actionText" }, [e._v(" " + e._s(e.$t("actionText")) + " ")])], 2);
3350
- }, ht = [], ft = /* @__PURE__ */ d(
3351
- pt,
3352
- gt,
3353
- ht,
2116
+ var ve = function() {
2117
+ var t = this, e = t._self._c;
2118
+ return e("PremiumRestrictedBase", { attrs: { title: t.$t("title"), "sub-title": t.$t("subTitle"), "action-function": t.onUpgrade, plan: "premium" }, scopedSlots: t._u([{ key: "actionText", fn: function() {
2119
+ return [t._v(" " + t._s(t.$t("actionText")) + " ")];
2120
+ }, proxy: !0 }]) });
2121
+ }, Ce = [], be = /* @__PURE__ */ d(
2122
+ ye,
2123
+ ve,
2124
+ Ce,
3354
2125
  !1,
3355
2126
  null,
3356
2127
  null
3357
2128
  );
3358
- const yt = ft.exports, Ct = {
2129
+ const _e = be.exports, Pe = {
3359
2130
  i18nOptions: {
3360
2131
  namespaces: "stats",
3361
2132
  messages: {
@@ -3373,7 +2144,7 @@ const yt = ft.exports, Ct = {
3373
2144
  },
3374
2145
  name: "PremiumRestrictedDocumentBlocks",
3375
2146
  components: {
3376
- PremiumRestrictedBase: f
2147
+ PremiumRestrictedBase: g
3377
2148
  },
3378
2149
  props: {
3379
2150
  onUpgrade: {
@@ -3382,18 +2153,20 @@ const yt = ft.exports, Ct = {
3382
2153
  }
3383
2154
  }
3384
2155
  };
3385
- var vt = function() {
3386
- var e = this, t = e._self._c;
3387
- return t("PremiumRestrictedBase", { attrs: { title: e.$t("title"), "sub-title": e.$t("subTitle"), "on-upgrade": e.onUpgrade, plan: "pro" } }, [t("template", { slot: "actionText" }, [e._v(" " + e._s(e.$t("actionText")) + " ")])], 2);
3388
- }, bt = [], _t = /* @__PURE__ */ d(
3389
- Ct,
3390
- vt,
3391
- bt,
2156
+ var ke = function() {
2157
+ var t = this, e = t._self._c;
2158
+ return e("PremiumRestrictedBase", { attrs: { title: t.$t("title"), "sub-title": t.$t("subTitle"), "on-upgrade": t.onUpgrade, plan: "pro" }, scopedSlots: t._u([{ key: "actionText", fn: function() {
2159
+ return [t._v(" " + t._s(t.$t("actionText")) + " ")];
2160
+ }, proxy: !0 }]) });
2161
+ }, xe = [], Se = /* @__PURE__ */ d(
2162
+ Pe,
2163
+ ke,
2164
+ xe,
3392
2165
  !1,
3393
2166
  null,
3394
2167
  null
3395
2168
  );
3396
- const Pt = _t.exports, St = {
2169
+ const we = Se.exports, $e = {
3397
2170
  i18nOptions: {
3398
2171
  namespaces: "PremiumRestrictedDocuments",
3399
2172
  messages: {
@@ -3417,7 +2190,7 @@ const Pt = _t.exports, St = {
3417
2190
  },
3418
2191
  name: "PremiumRestrictedDocuments",
3419
2192
  components: {
3420
- PremiumRestrictedBase: f
2193
+ PremiumRestrictedBase: g
3421
2194
  },
3422
2195
  props: {
3423
2196
  onUpgrade: {
@@ -3434,7 +2207,7 @@ const Pt = _t.exports, St = {
3434
2207
  };
3435
2208
  },
3436
2209
  computed: {
3437
- ...v({
2210
+ ...C({
3438
2211
  getCompanyUserSetting: "settings/getCompanyUserSetting",
3439
2212
  user: "application/user",
3440
2213
  account: "application/companyAccount"
@@ -3442,9 +2215,9 @@ const Pt = _t.exports, St = {
3442
2215
  },
3443
2216
  created() {
3444
2217
  try {
3445
- ce("/documentLimitReached", {});
3446
- } catch (n) {
3447
- L(n, { showMessage: !1 });
2218
+ ct("/documentLimitReached", {});
2219
+ } catch (r) {
2220
+ H(r, { showMessage: !1 });
3448
2221
  }
3449
2222
  },
3450
2223
  async mounted() {
@@ -3455,17 +2228,17 @@ const Pt = _t.exports, St = {
3455
2228
  loadCurrentCompany: m.DO_LOAD_CURRENT_COMPANY
3456
2229
  }),
3457
2230
  async checkFreeDocVoucher() {
3458
- var e, t;
3459
- if (this.canUseFreeDocVoucher = !1, ((e = this.account) == null ? void 0 : e.accountType) !== "free")
2231
+ var t, e;
2232
+ if (this.canUseFreeDocVoucher = !1, ((t = this.account) == null ? void 0 : t.accountType) !== "free")
3460
2233
  return;
3461
- const n = JSON.parse(
2234
+ const r = JSON.parse(
3462
2235
  E.getItem("voucher-freeUserDocs-company-id")
3463
2236
  );
3464
- ((t = this.account) == null ? void 0 : t.CompanyId) !== n && (this.canUseFreeDocVoucher = await this.canUseVoucher());
2237
+ ((e = this.account) == null ? void 0 : e.CompanyId) !== r && (this.canUseFreeDocVoucher = await this.canUseVoucher());
3465
2238
  },
3466
2239
  async canUseVoucher() {
3467
2240
  try {
3468
- return await B.canUse("freeUserDocs"), !0;
2241
+ return await R.canUse("freeUserDocs"), !0;
3469
2242
  } catch {
3470
2243
  return E.setItem(
3471
2244
  "voucher-freeUserDocs-company-id",
@@ -3476,33 +2249,35 @@ const Pt = _t.exports, St = {
3476
2249
  async useFreeDocsVoucher() {
3477
2250
  this.isLoading = !0;
3478
2251
  try {
3479
- await B.post({ code: "freeUserDocs" }), E.setItem(
2252
+ await R.post({ code: "freeUserDocs" }), E.setItem(
3480
2253
  "voucher-freeUserDocs-company-id",
3481
2254
  this.account.CompanyId
3482
- ), await this.loadCurrentCompany(), le(
2255
+ ), await this.loadCurrentCompany(), ut(
3483
2256
  "success",
3484
2257
  this.$t("voucherSuccessMessage", { count: this.voucherDocCount })
3485
2258
  ), this.onUpgrade && typeof this.onUpgrade == "function" && this.onUpgrade(), this.$emit("close");
3486
- } catch (n) {
3487
- L(n);
2259
+ } catch (r) {
2260
+ H(r);
3488
2261
  } finally {
3489
2262
  this.isLoading = !1;
3490
2263
  }
3491
2264
  }
3492
2265
  }
3493
2266
  };
3494
- var kt = function() {
3495
- var e = this, t = e._self._c;
3496
- return t("PremiumRestrictedBase", { attrs: { title: e.$t("title"), "sub-title": e.$t("subTitle"), "on-upgrade": e.onUpgrade } }, [e.canUseFreeDocVoucher ? t("div", { staticStyle: { background: "hsl(33, 100%, 84%)", padding: "1em", "font-size": "15px", "border-radius": "0.5em" }, attrs: { slot: "content" }, slot: "content" }, [t("div", { staticStyle: { "font-size": "16px", "font-weight": "500" } }, [t("span", { staticStyle: { "margin-right": "4px" } }, [e._v("🎁")]), e._v(" " + e._s(e.$t("voucherTitle")) + " ")]), t("div", { staticStyle: { opacity: "0.75" }, domProps: { textContent: e._s(e.$t("voucherText", { count: e.voucherDocCount })) } }), t("div", { staticClass: "flex w-full justify-center", staticStyle: { "margin-top": "calc(1 * var(--rem))" } }, [t("CButton", { staticStyle: { border: "none", background: "hsl(33, 100%, 95%)", color: "hsl(33, 88%, 36%)", "box-shadow": "0 3px 6px -2px rgb(0, 0, 0, 0.3)" }, attrs: { loading: e.isLoading, transparent: "", "icon-left": "heart" }, on: { click: e.useFreeDocsVoucher } }, [e._v(" " + e._s(e.$t("voucherButton", { count: e.voucherDocCount })) + " ")])], 1)]) : e._e()]);
3497
- }, xt = [], wt = /* @__PURE__ */ d(
3498
- St,
3499
- kt,
3500
- xt,
2267
+ var Te = function() {
2268
+ var t = this, e = t._self._c;
2269
+ return e("PremiumRestrictedBase", { attrs: { title: t.$t("title"), "sub-title": t.$t("subTitle"), "on-upgrade": t.onUpgrade }, scopedSlots: t._u([{ key: "content", fn: function() {
2270
+ return [t.canUseFreeDocVoucher ? e("div", { staticStyle: { background: "hsl(33, 100%, 84%)", padding: "1em", "font-size": "15px", "border-radius": "0.5em" } }, [e("div", { staticStyle: { "font-size": "16px", "font-weight": "500" } }, [e("span", { staticStyle: { "margin-right": "4px" } }, [t._v("🎁")]), t._v(" " + t._s(t.$t("voucherTitle")) + " ")]), e("div", { staticStyle: { opacity: "0.75" }, domProps: { textContent: t._s(t.$t("voucherText", { count: t.voucherDocCount })) } }), e("div", { staticClass: "flex w-full justify-center", staticStyle: { "margin-top": "calc(1 * var(--rem))" } }, [e("CButton", { staticStyle: { border: "none", background: "hsl(33, 100%, 95%)", color: "hsl(33, 88%, 36%)", "box-shadow": "0 3px 6px -2px rgb(0, 0, 0, 0.3)" }, attrs: { loading: t.isLoading, transparent: "", "icon-left": "heart" }, on: { click: t.useFreeDocsVoucher } }, [t._v(" " + t._s(t.$t("voucherButton", { count: t.voucherDocCount })) + " ")])], 1)]) : t._e()];
2271
+ }, proxy: !0 }]) });
2272
+ }, Ie = [], Ee = /* @__PURE__ */ d(
2273
+ $e,
2274
+ Te,
2275
+ Ie,
3501
2276
  !1,
3502
2277
  null,
3503
2278
  null
3504
2279
  );
3505
- const $t = wt.exports, Tt = {
2280
+ const Me = Ee.exports, Le = {
3506
2281
  i18nOptions: {
3507
2282
  namespaces: "licenses",
3508
2283
  messages: {
@@ -3526,7 +2301,7 @@ const $t = wt.exports, Tt = {
3526
2301
  },
3527
2302
  name: "PremiumRestrictedLicenses",
3528
2303
  components: {
3529
- PremiumRestrictedBase: f
2304
+ PremiumRestrictedBase: g
3530
2305
  },
3531
2306
  props: {
3532
2307
  onUpgrade: {
@@ -3535,7 +2310,7 @@ const $t = wt.exports, Tt = {
3535
2310
  }
3536
2311
  },
3537
2312
  computed: {
3538
- ...v({
2313
+ ...C({
3539
2314
  subscription: "application/subscription",
3540
2315
  currentPlan: "stripe/currentPlan",
3541
2316
  formPlan: "stripe/formPlan"
@@ -3545,7 +2320,7 @@ const $t = wt.exports, Tt = {
3545
2320
  }
3546
2321
  },
3547
2322
  beforeCreate() {
3548
- this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", j);
2323
+ this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", N);
3549
2324
  },
3550
2325
  created() {
3551
2326
  this.initLicense();
@@ -3565,47 +2340,51 @@ const $t = wt.exports, Tt = {
3565
2340
  supportChatMessage() {
3566
2341
  this.$supportChat.showNewMessage(this.$t("chatMessageStarter")), this.$emit("close");
3567
2342
  },
3568
- async doUpgrade({ callback: n }) {
3569
- let e = !1;
2343
+ async doUpgrade({ callback: r }) {
2344
+ let t = !1;
3570
2345
  try {
3571
2346
  if (this.subscription.paymentMethod === "stripe")
3572
- e = await this.addStripeLicense();
2347
+ t = await this.addStripeLicense();
3573
2348
  else if (this.subscription.paymentMethod === "invoice")
3574
- await this.addInvoiceLicense(), e = !0;
2349
+ await this.addInvoiceLicense(), t = !0;
3575
2350
  else
3576
2351
  throw new Error(
3577
2352
  "Cannot upgrade license as current paymentMethod is not valid"
3578
2353
  );
3579
- } catch (t) {
3580
- L(t);
2354
+ } catch (e) {
2355
+ H(e);
3581
2356
  }
3582
- e && await n();
2357
+ t && await r();
3583
2358
  },
3584
2359
  async addStripeLicense() {
3585
2360
  this.updateFormValue({
3586
2361
  key: "plan.quantity",
3587
2362
  value: this.currentPlan.quantity + 1
3588
2363
  });
3589
- const n = await this.submitPlan({});
3590
- return await this.loadCurrentCompany(), n;
2364
+ const r = await this.submitPlan({});
2365
+ return await this.loadCurrentCompany(), r;
3591
2366
  },
3592
2367
  async addInvoiceLicense() {
3593
- await ue(), await this.loadCurrentCompany();
2368
+ await dt(), await this.loadCurrentCompany();
3594
2369
  }
3595
2370
  }
3596
2371
  };
3597
- var Mt = function() {
3598
- var e = this, t = e._self._c;
3599
- return t("PremiumRestrictedBase", { attrs: { title: e.$t("title"), "sub-title": e.$t("subTitle"), "on-upgrade": e.onUpgrade, "action-function": e.doUpgrade } }, [t("template", { slot: "actionText" }, [e._v(" " + e._s(e.$t("actionText")) + " ")]), e.extraPrice && e.extraPrice.amount && e.extraPrice.currency && e.extraPrice.interval ? t("div", { staticClass: "flex w-full justify-between", staticStyle: { "background-color": "hsl(var(--gray-color-100) / 1)", padding: "0.5em 1em", "border-radius": "0.5em" }, attrs: { slot: "content" }, slot: "content" }, [t("div", { staticStyle: { "text-align": "left" } }, [t("div", { staticStyle: { "font-weight": "500" }, domProps: { textContent: e._s(e.$t("productTitle")) } }), t("div", { staticStyle: { opacity: "0.75", "font-size": "13px" }, domProps: { textContent: e._s(e.$t("productCost")) } })]), t("div", { staticStyle: { "text-align": "right" } }, [t("div", [e._v(" +" + e._s(e.priceFormat(e.extraPrice.amount, { currency: e.extraPrice.currency })) + " ")]), t("div", { staticStyle: { "font-size": "13px", opacity: "0.7" } }, [e._v(" per " + e._s(e.$t(`_common:${e.extraPrice.interval}`)) + " ")])])]) : e._e()], 2);
3600
- }, Et = [], It = /* @__PURE__ */ d(
3601
- Tt,
3602
- Mt,
3603
- Et,
2372
+ var He = function() {
2373
+ var t = this, e = t._self._c;
2374
+ return e("PremiumRestrictedBase", { attrs: { title: t.$t("title"), "sub-title": t.$t("subTitle"), "on-upgrade": t.onUpgrade, "action-function": t.doUpgrade }, scopedSlots: t._u([{ key: "actionText", fn: function() {
2375
+ return [t._v(" " + t._s(t.$t("actionText")) + " ")];
2376
+ }, proxy: !0 }, { key: "content", fn: function() {
2377
+ return [t.extraPrice && t.extraPrice.amount && t.extraPrice.currency && t.extraPrice.interval ? e("div", { staticClass: "flex w-full justify-between", staticStyle: { "background-color": "hsl(var(--gray-color-100) / 1)", padding: "0.5em 1em", "border-radius": "0.5em" } }, [e("div", { staticStyle: { "text-align": "left" } }, [e("div", { staticStyle: { "font-weight": "500" }, domProps: { textContent: t._s(t.$t("productTitle")) } }), e("div", { staticStyle: { opacity: "0.75", "font-size": "13px" }, domProps: { textContent: t._s(t.$t("productCost")) } })]), e("div", { staticStyle: { "text-align": "right" } }, [e("div", [t._v(" +" + t._s(t.priceFormat(t.extraPrice.amount, { currency: t.extraPrice.currency })) + " ")]), e("div", { staticStyle: { "font-size": "13px", opacity: "0.7" } }, [t._v(" per " + t._s(t.$t(`_common:${t.extraPrice.interval}`)) + " ")])])]) : t._e()];
2378
+ }, proxy: !0 }]) });
2379
+ }, Ve = [], Fe = /* @__PURE__ */ d(
2380
+ Le,
2381
+ He,
2382
+ Ve,
3604
2383
  !1,
3605
2384
  null,
3606
2385
  null
3607
2386
  );
3608
- const Dt = It.exports, Lt = {
2387
+ const Be = Fe.exports, De = {
3609
2388
  i18nOptions: {
3610
2389
  namespaces: "personalMessage",
3611
2390
  messages: {
@@ -3621,7 +2400,7 @@ const Dt = It.exports, Lt = {
3621
2400
  },
3622
2401
  name: "PremiumRestrictedPersonalMessage",
3623
2402
  components: {
3624
- PremiumRestrictedBase: f
2403
+ PremiumRestrictedBase: g
3625
2404
  },
3626
2405
  props: {
3627
2406
  onUpgrade: {
@@ -3630,18 +2409,18 @@ const Dt = It.exports, Lt = {
3630
2409
  }
3631
2410
  }
3632
2411
  };
3633
- var Rt = function() {
3634
- var e = this, t = e._self._c;
3635
- return t("PremiumRestrictedBase", { attrs: { title: e.$t("title"), "sub-title": e.$t("subTitle"), "on-upgrade": e.onUpgrade } });
3636
- }, Ft = [], Ut = /* @__PURE__ */ d(
3637
- Lt,
3638
- Rt,
3639
- Ft,
2412
+ var Re = function() {
2413
+ var t = this, e = t._self._c;
2414
+ return e("PremiumRestrictedBase", { attrs: { title: t.$t("title"), "sub-title": t.$t("subTitle"), "on-upgrade": t.onUpgrade } });
2415
+ }, Ue = [], Ae = /* @__PURE__ */ d(
2416
+ De,
2417
+ Re,
2418
+ Ue,
3640
2419
  !1,
3641
2420
  null,
3642
2421
  null
3643
2422
  );
3644
- const Ht = Ut.exports, Bt = {
2423
+ const Oe = Ae.exports, ze = {
3645
2424
  i18nOptions: {
3646
2425
  namespaces: "PremiumRestrictedEditDocumentLayout",
3647
2426
  messages: {
@@ -3659,7 +2438,7 @@ const Ht = Ut.exports, Bt = {
3659
2438
  },
3660
2439
  name: "PremiumRestrictedSaveDocTemplate",
3661
2440
  components: {
3662
- PremiumRestrictedBase: f
2441
+ PremiumRestrictedBase: g
3663
2442
  },
3664
2443
  props: {
3665
2444
  onUpgrade: {
@@ -3668,18 +2447,20 @@ const Ht = Ut.exports, Bt = {
3668
2447
  }
3669
2448
  }
3670
2449
  };
3671
- var At = function() {
3672
- var e = this, t = e._self._c;
3673
- return t("PremiumRestrictedBase", { attrs: { title: e.$t("title"), "sub-title": e.$t("subTitle"), "on-upgrade": e.onUpgrade, plan: "pro" } }, [t("template", { slot: "actionText" }, [e._v(" " + e._s(e.$t("actionText")) + " ")])], 2);
3674
- }, Vt = [], Ot = /* @__PURE__ */ d(
3675
- Bt,
3676
- At,
3677
- Vt,
2450
+ var qe = function() {
2451
+ var t = this, e = t._self._c;
2452
+ return e("PremiumRestrictedBase", { attrs: { title: t.$t("title"), "sub-title": t.$t("subTitle"), "on-upgrade": t.onUpgrade, plan: "pro" }, scopedSlots: t._u([{ key: "actionText", fn: function() {
2453
+ return [t._v(" " + t._s(t.$t("actionText")) + " ")];
2454
+ }, proxy: !0 }]) });
2455
+ }, je = [], Ze = /* @__PURE__ */ d(
2456
+ ze,
2457
+ qe,
2458
+ je,
3678
2459
  !1,
3679
2460
  null,
3680
2461
  null
3681
2462
  );
3682
- const Nt = Ot.exports, zt = {
2463
+ const Ne = Ze.exports, Ye = {
3683
2464
  i18nOptions: {
3684
2465
  namespaces: "stats",
3685
2466
  messages: {
@@ -3697,7 +2478,7 @@ const Nt = Ot.exports, zt = {
3697
2478
  },
3698
2479
  name: "PremiumRestrictedStats",
3699
2480
  components: {
3700
- PremiumRestrictedBase: f
2481
+ PremiumRestrictedBase: g
3701
2482
  },
3702
2483
  props: {
3703
2484
  onUpgrade: {
@@ -3706,18 +2487,20 @@ const Nt = Ot.exports, zt = {
3706
2487
  }
3707
2488
  }
3708
2489
  };
3709
- var qt = function() {
3710
- var e = this, t = e._self._c;
3711
- return t("PremiumRestrictedBase", { attrs: { title: e.$t("title"), "sub-title": e.$t("subTitle"), "on-upgrade": e.onUpgrade, plan: "pro" } }, [t("template", { slot: "actionText" }, [e._v(" " + e._s(e.$t("actionText")) + " ")])], 2);
3712
- }, Gt = [], jt = /* @__PURE__ */ d(
3713
- zt,
3714
- qt,
3715
- Gt,
2490
+ var We = function() {
2491
+ var t = this, e = t._self._c;
2492
+ return e("PremiumRestrictedBase", { attrs: { title: t.$t("title"), "sub-title": t.$t("subTitle"), "on-upgrade": t.onUpgrade, plan: "pro" }, scopedSlots: t._u([{ key: "actionText", fn: function() {
2493
+ return [t._v(" " + t._s(t.$t("actionText")) + " ")];
2494
+ }, proxy: !0 }]) });
2495
+ }, Qe = [], Ge = /* @__PURE__ */ d(
2496
+ Ye,
2497
+ We,
2498
+ Qe,
3716
2499
  !1,
3717
2500
  null,
3718
2501
  null
3719
2502
  );
3720
- const Zt = jt.exports, Kt = {
2503
+ const Je = Ge.exports, Ke = {
3721
2504
  i18nOptions: {
3722
2505
  namespaces: "subTemplates",
3723
2506
  messages: {
@@ -3733,7 +2516,7 @@ const Zt = jt.exports, Kt = {
3733
2516
  },
3734
2517
  name: "PremiumRestrictedTemplates",
3735
2518
  components: {
3736
- PremiumRestrictedBase: f
2519
+ PremiumRestrictedBase: g
3737
2520
  },
3738
2521
  props: {
3739
2522
  onUpgrade: {
@@ -3742,18 +2525,18 @@ const Zt = jt.exports, Kt = {
3742
2525
  }
3743
2526
  }
3744
2527
  };
3745
- var Yt = function() {
3746
- var e = this, t = e._self._c;
3747
- return t("PremiumRestrictedBase", { attrs: { title: e.$t("title"), "sub-title": e.$t("subTitle"), "on-upgrade": e.onUpgrade } });
3748
- }, Wt = [], Xt = /* @__PURE__ */ d(
3749
- Kt,
3750
- Yt,
3751
- Wt,
2528
+ var Xe = function() {
2529
+ var t = this, e = t._self._c;
2530
+ return e("PremiumRestrictedBase", { attrs: { title: t.$t("title"), "sub-title": t.$t("subTitle"), "on-upgrade": t.onUpgrade } });
2531
+ }, tr = [], er = /* @__PURE__ */ d(
2532
+ Ke,
2533
+ Xe,
2534
+ tr,
3752
2535
  !1,
3753
2536
  null,
3754
2537
  null
3755
2538
  );
3756
- const Qt = Xt.exports, Jt = {
2539
+ const rr = er.exports, ar = {
3757
2540
  i18nOptions: {
3758
2541
  namespaces: "PremiumRestrictedUseDocTemplates",
3759
2542
  messages: {
@@ -3771,7 +2554,7 @@ const Qt = Xt.exports, Jt = {
3771
2554
  },
3772
2555
  name: "PremiumRestrictedUseDocTemplates",
3773
2556
  components: {
3774
- PremiumRestrictedBase: f
2557
+ PremiumRestrictedBase: g
3775
2558
  },
3776
2559
  props: {
3777
2560
  onUpgrade: {
@@ -3780,18 +2563,20 @@ const Qt = Xt.exports, Jt = {
3780
2563
  }
3781
2564
  }
3782
2565
  };
3783
- var en = function() {
3784
- var e = this, t = e._self._c;
3785
- return t("PremiumRestrictedBase", { attrs: { title: e.$t("title"), "sub-title": e.$t("subTitle"), "on-upgrade": e.onUpgrade, plan: "pro" } }, [t("template", { slot: "actionText" }, [e._v(" " + e._s(e.$t("actionText")) + " ")])], 2);
3786
- }, tn = [], nn = /* @__PURE__ */ d(
3787
- Jt,
3788
- en,
3789
- tn,
2566
+ var nr = function() {
2567
+ var t = this, e = t._self._c;
2568
+ return e("PremiumRestrictedBase", { attrs: { title: t.$t("title"), "sub-title": t.$t("subTitle"), "on-upgrade": t.onUpgrade, plan: "pro" }, scopedSlots: t._u([{ key: "actionText", fn: function() {
2569
+ return [t._v(" " + t._s(t.$t("actionText")) + " ")];
2570
+ }, proxy: !0 }]) });
2571
+ }, ir = [], sr = /* @__PURE__ */ d(
2572
+ ar,
2573
+ nr,
2574
+ ir,
3790
2575
  !1,
3791
2576
  null,
3792
2577
  null
3793
2578
  );
3794
- const an = nn.exports, rn = {
2579
+ const or = sr.exports, lr = {
3795
2580
  i18nOptions: {
3796
2581
  namespaces: "winProfile",
3797
2582
  keyPrefix: "account.subscription.winProfile",
@@ -3810,7 +2595,7 @@ const an = nn.exports, rn = {
3810
2595
  },
3811
2596
  name: "PremiumRestrictedWinProfile",
3812
2597
  components: {
3813
- PremiumRestrictedBase: f
2598
+ PremiumRestrictedBase: g
3814
2599
  },
3815
2600
  props: {
3816
2601
  onUpgrade: {
@@ -3819,30 +2604,30 @@ const an = nn.exports, rn = {
3819
2604
  }
3820
2605
  }
3821
2606
  };
3822
- var sn = function() {
3823
- var e = this, t = e._self._c;
3824
- return t("PremiumRestrictedBase", { attrs: { title: e.$t("title"), "sub-title": e.$t("subTitle"), "on-upgrade": e.onUpgrade } });
3825
- }, on = [], cn = /* @__PURE__ */ d(
3826
- rn,
3827
- sn,
3828
- on,
2607
+ var cr = function() {
2608
+ var t = this, e = t._self._c;
2609
+ return e("PremiumRestrictedBase", { attrs: { title: t.$t("title"), "sub-title": t.$t("subTitle"), "on-upgrade": t.onUpgrade } });
2610
+ }, ur = [], dr = /* @__PURE__ */ d(
2611
+ lr,
2612
+ cr,
2613
+ ur,
3829
2614
  !1,
3830
2615
  null,
3831
2616
  null
3832
2617
  );
3833
- const ln = cn.exports, I = {
3834
- winProfile: ln,
3835
- templates: Qt,
3836
- documents: $t,
3837
- personalMessage: Ht,
3838
- licenses: Dt,
3839
- inviteCreators: yt,
3840
- stats: Zt,
3841
- documentBlocks: Pt,
3842
- bankIdAndSms: mt,
3843
- useDocTemplate: an,
3844
- saveDocTemplate: Nt
3845
- }, un = {
2618
+ const mr = dr.exports, M = {
2619
+ winProfile: mr,
2620
+ templates: rr,
2621
+ documents: Me,
2622
+ personalMessage: Oe,
2623
+ licenses: Be,
2624
+ inviteCreators: _e,
2625
+ stats: Je,
2626
+ documentBlocks: we,
2627
+ bankIdAndSms: ge,
2628
+ useDocTemplate: or,
2629
+ saveDocTemplate: Ne
2630
+ }, pr = {
3846
2631
  name: "IsPremiumPreStep",
3847
2632
  inject: {
3848
2633
  onUpgradeRequired: {
@@ -3854,24 +2639,24 @@ const ln = cn.exports, I = {
3854
2639
  feature: {
3855
2640
  type: String,
3856
2641
  required: !0,
3857
- validator: (n) => Object.keys(I).includes(n)
2642
+ validator: (r) => Object.keys(M).includes(r)
3858
2643
  }
3859
2644
  },
3860
2645
  computed: {
3861
2646
  modalName() {
3862
- return I[this.feature] ? I[this.feature] : (de.error("Missing IsPremiumPreStep component name"), null);
2647
+ return M[this.feature] ? M[this.feature] : (mt.error("Missing IsPremiumPreStep component name"), null);
3863
2648
  }
3864
2649
  },
3865
2650
  methods: {
3866
- onClick({ callback: n = null, data: e } = {}) {
2651
+ onClick({ callback: r = null, data: t } = {}) {
3867
2652
  if (typeof this.onUpgradeRequired == "function") {
3868
- this.onUpgradeRequired({ feature: this.feature, data: e });
2653
+ this.onUpgradeRequired({ feature: this.feature, data: t });
3869
2654
  return;
3870
2655
  }
3871
2656
  this.$modal.show(
3872
2657
  this.modalName,
3873
2658
  {
3874
- ...n && { onUpgrade: n }
2659
+ ...r && { onUpgrade: r }
3875
2660
  },
3876
2661
  {
3877
2662
  adaptive: !0,
@@ -3889,28 +2674,27 @@ const ln = cn.exports, I = {
3889
2674
  onClick: this.onClick
3890
2675
  }) : {};
3891
2676
  }
3892
- }, dn = null, mn = null;
3893
- var pn = /* @__PURE__ */ d(
3894
- un,
3895
- dn,
3896
- mn,
2677
+ }, fr = null, hr = null;
2678
+ var gr = /* @__PURE__ */ d(
2679
+ pr,
2680
+ fr,
2681
+ hr,
3897
2682
  !1,
3898
2683
  null,
3899
2684
  null
3900
2685
  );
3901
- const gn = pn.exports, _n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2686
+ const yr = gr.exports, Tr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3902
2687
  __proto__: null,
3903
- CalloutLegacy: G,
3904
- Checkout: K,
3905
- IsPremium: Y,
3906
- IsPremiumPreStep: gn,
3907
- stripeMixin: Z
2688
+ CalloutLegacy: Z,
2689
+ Checkout: W,
2690
+ IsPremium: Q,
2691
+ IsPremiumPreStep: yr,
2692
+ stripeMixin: Y
3908
2693
  }, Symbol.toStringTag, { value: "Module" }));
3909
2694
  export {
3910
- Ce as C,
3911
- gn as I,
3912
- Y as a,
3913
- _n as i,
3914
- x as r,
3915
- j as s
2695
+ Pt as C,
2696
+ yr as I,
2697
+ Q as a,
2698
+ Tr as i,
2699
+ N as s
3916
2700
  };