@cling-se/widget 0.15.3 → 0.15.6
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.
- package/README.md +43 -43
- package/dist/{AddClientCallout-8s5a1_CZ.js → AddClientCallout-BpWCvb7A.js} +15 -13
- package/dist/{AnswerModal-Cnp43tGo.js → AnswerModal-0JXov7oA.js} +71 -71
- package/dist/{AttachmentItem-BP85gcjP.js → AttachmentItem-C93ndWhI.js} +17 -12
- package/dist/{BaseDatePicker-C27CsTzy.js → BaseDatePicker-BaUxrKlN.js} +2 -2
- package/dist/{BaseUpload-DnhS3hGx.js → BaseUpload-CACi6tYY.js} +3 -3
- package/dist/{BlockMedia-D4nhek2s.js → BlockMedia-Dlv23tgo.js} +2 -2
- package/dist/{CCallout-CQjRcxpC.js → CCallout-jnIpJu5U.js} +4 -5
- package/dist/{CCurrencyDropdown-BT01qBGg.js → CCurrencyDropdown-BQLDbp9J.js} +4 -4
- package/dist/{CDropdownItem-BSPNul90.js → CDropdownItem-CNUf29O4.js} +139 -37
- package/dist/{CFormField-Cz_jNazS.js → CFormField-qy_STCgm.js} +3 -4
- package/dist/{CPhoneFormat-C017AoM0.js → CPhoneFormat-BZd_xftN.js} +1 -1
- package/dist/CPhoneInput-j4Zuah8p.js +138 -0
- package/dist/{CPriceInput-jktMjvwx.js → CPriceInput-CXGw4w0R.js} +2 -2
- package/dist/CSelect-CSwTYXae.js +91 -0
- package/dist/CSkeleton-B5J9cKAm.js +55 -0
- package/dist/ClientAutocomplete-CjaUEuHJ.js +438 -0
- package/dist/{ClientModal-DLtFhJya.js → ClientModal-Cn40dzh3.js} +77 -42
- package/dist/{ColorPicker-MQmVGbvm.js → ColorPicker-wUW8hJ8i.js} +2 -2
- package/dist/{CompanyModal-Qx5xMku0.js → CompanyModal-CbcusrDu.js} +25 -19
- package/dist/{ContentWrapper-B9NQqp2q.js → ContentWrapper-Bad8dXOX.js} +11 -11
- package/dist/CoverBlockSettings-DX390gBU.js +659 -0
- package/dist/{DocAnswer-BlxFv_Gc.js → DocAnswer-BESzyKCO.js} +2 -2
- package/dist/{DocDetails-dGcYGJpp.js → DocDetails-1rMbwwY3.js} +10 -10
- package/dist/{DocForm-C6o_XBcW.js → DocForm-B3IxEK4j.js} +512 -498
- package/dist/{DocFormSend-_prtxNIf.js → DocFormSend-sm8Hu8Be.js} +14 -15
- package/dist/{DocLinks-Dp495SCS.js → DocLinks-CyXFaNcq.js} +2 -2
- package/dist/{DocModalBase-B0wYq3ft.js → DocModalBase-CSh4Lkzq.js} +2 -2
- package/dist/{DocPrint-CURxofeU.js → DocPrint-BQ-M-3OC.js} +3 -3
- package/dist/{DocReceipt-DgGcBRVH.js → DocReceipt-OoEOv4bh.js} +25 -20
- package/dist/{DocSendReminder-CPty4svi.js → DocSendReminder-dQcAFIdw.js} +19 -16
- package/dist/{DocTextEditor-BYsXFRLg.js → DocTextEditor-Ckfx6Hj5.js} +13 -15
- package/dist/{DocTimeline-CHg1QykR.js → DocTimeline-DDaN8k9R.js} +36 -34
- package/dist/{DocumentClient-CZ6N73pQ.js → DocumentClient-DBA3AQQG.js} +5 -5
- package/dist/{DocumentLayout-CiszuoQc.js → DocumentLayout-D42e3G51.js} +1503 -1539
- package/dist/{DocumentLogotype-BgFCWcwC.js → DocumentLogotype-ngySb8g4.js} +18 -15
- package/dist/{DocumentVoided-DT2hhHk2.js → DocumentVoided-Dtj2XpOI.js} +1 -1
- package/dist/{EmbedInput-aLmvzK1I.js → EmbedInput-CxqpXi4D.js} +25 -21
- package/dist/{EmbedSettings-BZipciy9.js → EmbedSettings-B4ejIQIJ.js} +13 -11
- package/dist/{ErrorCallout-CNxSDsr_.js → ErrorCallout-BiCmogrM.js} +6 -6
- package/dist/{FilePreviewModal-DxdksQiy.js → FilePreviewModal-CpSfuR9V.js} +3 -3
- package/dist/Flag-B9CEVlmX.js +46 -0
- package/dist/{HeaderSettings-DeoSRi6O.js → HeaderSettings-CowCzINW.js} +155 -110
- package/dist/{ImageSelectModal-DvQz2VPi.js → ImageSelectModal-DdzcxIMp.js} +6 -6
- package/dist/{ImageUploadWrapper-CNQRdHF9.js → ImageUploadWrapper-CWCF8Dlc.js} +3 -3
- package/dist/{Index-CPjAXBMU.js → Index-07hqDjA-.js} +5 -5
- package/dist/{Index-CDKq7Fx6.js → Index-4_K-mW5b.js} +4 -4
- package/dist/Index-B4PLiPUX.js +28 -0
- package/dist/{Index-CjfCyQlB.js → Index-B4imH9tr.js} +5 -5
- package/dist/{Index-CJeSVpRh.js → Index-BGXkhXYw.js} +2 -2
- package/dist/{Index-BjdxeF4C.js → Index-BLK2yfMF.js} +2 -2
- package/dist/{Index-w5DWfGOc.js → Index-BS2bqI3s.js} +4 -4
- package/dist/{Index-CWj2vDHc.js → Index-BXm5pjk3.js} +49 -44
- package/dist/{Index-B3Q09phm.js → Index-BY9jJJk1.js} +4 -4
- package/dist/{Index-BEpKb8IR.js → Index-BeAySORd.js} +4 -4
- package/dist/{Index-BIv8flFB.js → Index-BguXp1xd.js} +9 -9
- package/dist/{Index-CTqdaykO.js → Index-CEQgPBnH.js} +18 -12
- package/dist/{Index-q04Dwxrr.js → Index-CWRkkwfa.js} +7 -7
- package/dist/{Index-3bD76d9q.js → Index-CaRFixxe.js} +7 -7
- package/dist/{Index-D-l3i9vY.js → Index-ClP8s9kZ.js} +3 -3
- package/dist/{Index-BDCgilFk.js → Index-Cmu_M3TM.js} +2 -2
- package/dist/{Index-BglKAnNq.js → Index-Cnyk_-IC.js} +7 -7
- package/dist/{Index-CvRNeJ4U.js → Index-CpLsMmCx.js} +124 -123
- package/dist/{Index-CXibuEkU.js → Index-D7WQe9WH.js} +15 -15
- package/dist/{Index-CTk6Nh-I.js → Index-DAsAy5JF.js} +7 -7
- package/dist/{Index-BiVwDgqW.js → Index-DEcCSixa.js} +2 -2
- package/dist/{Index-PUFeH_1z.js → Index-DMy3kJ7T.js} +4 -4
- package/dist/{Index-Cfc0Q0AG.js → Index-DWC0ggkj.js} +6 -6
- package/dist/{Index-B0n1UOOA.js → Index-DZ59IAyR.js} +6 -6
- package/dist/{Index-S3LqU0A0.js → Index-DdJbi1AO.js} +12 -10
- package/dist/{Index-B9_POjpY.js → Index-Df9ct4wb.js} +23 -21
- package/dist/{Index-D1NwTUs-.js → Index-DhrjL3IY.js} +5 -5
- package/dist/{Index-FC1UsElU.js → Index-Dm0Fzc6C.js} +7 -7
- package/dist/{Index-Ch5j2tqD.js → Index-DqSikIZB.js} +2 -2
- package/dist/{Index-BeMeWDIf.js → Index-DtSf7JJt.js} +6 -6
- package/dist/{Index-BNJ2KHKc.js → Index-FfBNBm3w.js} +3 -3
- package/dist/{Index-jIIHHGh3.js → Index-SN7H4PM1.js} +489 -471
- package/dist/{Index-CePHdKi2.js → Index-U_PvsI4Y.js} +5 -5
- package/dist/{Index-C-CE21WK.js → Index-sFiPn5zO.js} +5 -5
- package/dist/{InputToggleRow-CvHvRdsn.js → InputToggleRow-CRC8ievQ.js} +2 -2
- package/dist/{ManualPopover-DxE-6-Sp.js → ManualPopover-15SKAS2F.js} +1 -1
- package/dist/{MediaWrapper-DNi80fbw.js → MediaWrapper-CihDdp6P.js} +3 -3
- package/dist/{NotBindingText-D2rYFVxr.js → NotBindingText-nUBihSic.js} +2 -2
- package/dist/{PackageGroup-6ar8HjPo.js → PackageGroup-Bk0UeRqr.js} +26 -20
- package/dist/PdfTerms-Cy2kB_Zo.js +31 -0
- package/dist/{PdfViewer-B5qbLLtd.js → PdfViewer-BMcMfsRH.js} +5 -5
- package/dist/{PlainHtml-CIMtcn2F.js → PlainHtml-BDvPNe17.js} +1 -1
- package/dist/{PriceHeader-BSpj_-5M.js → PriceHeader-DzvUaY9O.js} +15 -15
- package/dist/{SearchApi-Cwgf52EV.js → SearchApi-BPJpYWWz.js} +2 -2
- package/dist/SendForm-DWVu8jq8.js +1023 -0
- package/dist/{Setup-CRmiH9lD.js → Setup-DjxGq4d9.js} +1 -1
- package/dist/{SmartList-D6AvxfSL.js → SmartList-Bh10ojB0.js} +1 -1
- package/dist/{TermsSettings-DEO1O460.js → TermsSettings-Cg8TYiLL.js} +17 -12
- package/dist/{ThemeColorRow-Cy1NKEIG.js → ThemeColorRow-BeNhoFSI.js} +4 -4
- package/dist/{ToggleBinding-BvIUt1Jx.js → ToggleBinding-KmMUK5gz.js} +12 -10
- package/dist/{UploadModal-C1j-GeMD.js → UploadModal-DTmPPCz3.js} +6 -6
- package/dist/{VideoPlayerInput-BmbrquN6.js → VideoPlayerInput-Z5j6JzLW.js} +15 -11
- package/dist/{VideoPlayerSettings-B7HpBoWX.js → VideoPlayerSettings-C7GjuMAw.js} +3 -3
- package/dist/{VideoSelectModal-CeaG2tME.js → VideoSelectModal-DMIdcoOE.js} +4 -4
- package/dist/{answerDocumentMixin-AcDG8Byi.js → answerDocumentMixin-DulmofDA.js} +3 -3
- package/dist/{debounce-HJoaSvIY.js → debounce-nohaKn7u.js} +16 -16
- package/dist/{focusDrawerMixin-CBYjpEGL.js → focusDrawerMixin-BsYcC4qG.js} +1 -1
- package/dist/{formDrawerState-DYSBcjo4.js → formDrawerState-Bpcaq429.js} +1 -1
- package/dist/{formValidationMixin-Dqlhg0R2.js → formValidationMixin-DYGNCEbq.js} +1 -1
- package/dist/{index-CLOsPxCh.js → index-BUGMJTF2.js} +35 -33
- package/dist/{index-CKZmpLr6.js → index-BVOHCIHl.js} +781 -2021
- package/dist/{index-CFe1BJZJ.js → index-CtA6LmXt.js} +1 -1
- package/dist/{index-zzCfHTf8.js → index-CxitjuY3.js} +2 -2
- package/dist/{index-CFx0cpeM.js → index-CySeSzas.js} +1 -1
- package/dist/{index-CFwLDxbi.js → index-zBWldKKX.js} +18 -17
- package/dist/index.es.js +10 -10
- package/dist/index.umd.js +177 -173
- package/dist/{main-BIwKzAN8.js → main-CfSVOXu-.js} +12995 -11349
- package/dist/{mapFormMixin-e2PJ431T.js → mapFormMixin-BTZaIaQ8.js} +1 -1
- package/dist/omit-DIEW6Th9.js +31 -0
- package/dist/{publicSenderState-D-_7UwjT.js → publicSenderState-B4TdI-yD.js} +1 -1
- package/dist/regions-BdZt9Srn.js +1250 -0
- package/dist/simplebar.min-BZ0EEeAp.js +71 -0
- package/dist/style.css +2 -2
- package/dist/{throttle-B2yMLA5N.js → throttle-JENEyCY1.js} +2 -2
- package/dist/{tinycolor-vIxz4Xgi.js → tinycolor-79beE8BV.js} +1 -1
- package/dist/{tippy.esm-DiOYviyf.js → tippy.esm-CR28gOMM.js} +208 -206
- package/dist/{utils-CFXqaEy7.js → utils-CD2k1yv3.js} +1 -1
- package/dist/{vuedraggable.umd-DDT8qZBI.js → vuedraggable.umd-IXGjMCUG.js} +1 -1
- package/package.json +2 -11
- package/dist/CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js +0 -1
- package/dist/CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js +0 -1
- package/dist/ClientAutocomplete-B3z6RPXr.js +0 -82
- package/dist/CoverBlockSettings-Bcz_W5I3.js +0 -275
- package/dist/Flag-3OyFDPsP.js +0 -114
- package/dist/Index-Cr6DlYGN.js +0 -21
- package/dist/PdfTerms-B-lbU_6H.js +0 -36
- package/dist/formComponentsInstall-DMoWrprH.js +0 -2505
- package/dist/omit-CpamclWf.js +0 -31
|
@@ -1,1255 +1,13 @@
|
|
|
1
|
-
import { n as d,
|
|
2
|
-
import { m as
|
|
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-CfSVOXu-.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 {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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-qy_STCgm.js";
|
|
5
|
+
import { C as ht } from "./CSelect-CSwTYXae.js";
|
|
6
|
+
import { b as gt } from "./CDropdownItem-CNUf29O4.js";
|
|
7
|
+
import { r as S } from "./regions-BdZt9Srn.js";
|
|
8
|
+
import { v as _ } from "./index-CySeSzas.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(
|
|
1283
|
-
this.value === null ? this.internalExpanded =
|
|
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(
|
|
1295
|
-
this.setWrapperHeightTo(this.getContentHeight(),
|
|
52
|
+
onEnter(r) {
|
|
53
|
+
this.setWrapperHeightTo(this.getContentHeight(), r);
|
|
1296
54
|
},
|
|
1297
|
-
onAfterEnter(
|
|
1298
|
-
this.setWrapperHeightTo("auto",
|
|
55
|
+
onAfterEnter(r) {
|
|
56
|
+
this.setWrapperHeightTo("auto", r);
|
|
1299
57
|
},
|
|
1300
|
-
onBeforeLeave(
|
|
1301
|
-
this.setWrapperHeightTo(this.getContentHeight(),
|
|
58
|
+
onBeforeLeave(r) {
|
|
59
|
+
this.setWrapperHeightTo(this.getContentHeight(), r);
|
|
1302
60
|
},
|
|
1303
|
-
onLeave(
|
|
1304
|
-
|
|
61
|
+
onLeave(r) {
|
|
62
|
+
r.scrollHeight, this.setWrapperHeightTo(0, r);
|
|
1305
63
|
},
|
|
1306
64
|
getContentHeight() {
|
|
1307
|
-
const { inner:
|
|
1308
|
-
return
|
|
65
|
+
const { inner: r } = this.$refs;
|
|
66
|
+
return r.getBoundingClientRect().height;
|
|
1309
67
|
},
|
|
1310
|
-
setWrapperHeightTo(
|
|
1311
|
-
|
|
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
|
|
1316
|
-
var
|
|
1317
|
-
return
|
|
1318
|
-
|
|
1319
|
-
} } }, [
|
|
1320
|
-
},
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
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
|
|
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: (
|
|
132
|
+
validator: (r) => ["legacy", "invoice"].includes(r)
|
|
1375
133
|
}
|
|
1376
134
|
}
|
|
1377
135
|
};
|
|
1378
|
-
var
|
|
1379
|
-
var
|
|
1380
|
-
return
|
|
1381
|
-
},
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
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
|
|
1390
|
-
LOAD_PRICES:
|
|
1391
|
-
RESET_STRIPE_FORM:
|
|
1392
|
-
SET_STRIPE_FORM_VALUE:
|
|
1393
|
-
SET_FORM_PROMOTION:
|
|
1394
|
-
SUBMIT_PROMOTION_CODE:
|
|
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:
|
|
1397
|
-
REMOVE_SUBSCRIPTION_ITEM:
|
|
1398
|
-
CONFIRM_PAYMENT:
|
|
154
|
+
SUBMIT_FORM_PLAN: Lt,
|
|
155
|
+
REMOVE_SUBSCRIPTION_ITEM: Ht,
|
|
156
|
+
CONFIRM_PAYMENT: z,
|
|
1399
157
|
SUBMIT_FORM_PAYMENT: w,
|
|
1400
|
-
SUBMIT_FORM_PRODUCTS:
|
|
1401
|
-
} =
|
|
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(
|
|
185
|
+
form: F(q)
|
|
1428
186
|
},
|
|
1429
187
|
getters: {
|
|
1430
|
-
isPosting: ({ isPosting:
|
|
1431
|
-
subscriptions: (
|
|
1432
|
-
subscriptionItems: (
|
|
1433
|
-
const
|
|
1434
|
-
return
|
|
1435
|
-
Array.isArray(a) && a.forEach((
|
|
1436
|
-
|
|
1437
|
-
quantity:
|
|
1438
|
-
stripePriceStripeId:
|
|
1439
|
-
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
|
-
|
|
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[
|
|
1460
|
-
throw new Error(`Invalid product: ${
|
|
1461
|
-
return Object.values(
|
|
1462
|
-
(
|
|
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: (
|
|
1466
|
-
if (!
|
|
223
|
+
getProductByPriceId: (r, t) => (e) => {
|
|
224
|
+
if (!e)
|
|
1467
225
|
throw new Error("Missing parameter stripeId");
|
|
1468
|
-
const a =
|
|
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: (
|
|
1476
|
-
if (!
|
|
233
|
+
getMeteredProduct: (r, t) => (e) => {
|
|
234
|
+
if (!e)
|
|
1477
235
|
throw new Error("Missing parameter meteredType");
|
|
1478
|
-
const a =
|
|
1479
|
-
(i) =>
|
|
236
|
+
const a = t.products, n = Object.keys(a).find(
|
|
237
|
+
(i) => v(a[i], "metadata.meteredType") === e
|
|
1480
238
|
);
|
|
1481
|
-
return a[
|
|
1482
|
-
},
|
|
1483
|
-
formPromotion: (
|
|
1484
|
-
formCustomer: (
|
|
1485
|
-
formDealSource: (
|
|
1486
|
-
formError: (
|
|
1487
|
-
formPlan: (
|
|
1488
|
-
const { accountType:
|
|
1489
|
-
if (!
|
|
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 (
|
|
1492
|
-
return { accountType:
|
|
1493
|
-
const i =
|
|
249
|
+
if (e === "free")
|
|
250
|
+
return { accountType: e, interval: a, quantity: n };
|
|
251
|
+
const i = t.getPrice(e, a);
|
|
1494
252
|
return {
|
|
1495
|
-
quantity:
|
|
1496
|
-
accountType:
|
|
253
|
+
quantity: n,
|
|
254
|
+
accountType: e,
|
|
1497
255
|
interval: a,
|
|
1498
256
|
...i
|
|
1499
257
|
};
|
|
1500
258
|
},
|
|
1501
|
-
currentPlan: (
|
|
1502
|
-
const { subscriptionItems:
|
|
1503
|
-
if (!
|
|
259
|
+
currentPlan: (r, t) => {
|
|
260
|
+
const { subscriptionItems: e } = t;
|
|
261
|
+
if (!e || !e.length)
|
|
1504
262
|
return null;
|
|
1505
|
-
const a =
|
|
1506
|
-
(i) =>
|
|
1507
|
-
|
|
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
|
|
271
|
+
const n = r.prices[a.stripePriceStripeId];
|
|
1514
272
|
return {
|
|
1515
|
-
...
|
|
273
|
+
...n,
|
|
1516
274
|
quantity: a.quantity,
|
|
1517
|
-
accountType:
|
|
275
|
+
accountType: n.StripeProduct.metadata.accountType
|
|
1518
276
|
};
|
|
1519
277
|
},
|
|
1520
|
-
priceById: (
|
|
1521
|
-
getPrice: (
|
|
1522
|
-
const { currentPlan:
|
|
1523
|
-
return
|
|
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: (
|
|
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: (
|
|
1531
|
-
function
|
|
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(
|
|
1540
|
-
Array.isArray(c
|
|
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:
|
|
303
|
+
currency: t.formPlan.currency
|
|
1546
304
|
};
|
|
1547
|
-
function
|
|
1548
|
-
const i = (
|
|
305
|
+
function n() {
|
|
306
|
+
const i = (t.formPlan.amount || 0) * t.formPlan.quantity;
|
|
1549
307
|
let s = i;
|
|
1550
|
-
|
|
1551
|
-
const
|
|
1552
|
-
a =
|
|
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:
|
|
313
|
+
vatAmount: l,
|
|
1556
314
|
totalAmount: o,
|
|
1557
315
|
items: [
|
|
1558
316
|
{
|
|
1559
|
-
name:
|
|
317
|
+
name: t.formPlan.accountType,
|
|
1560
318
|
amount: i,
|
|
1561
|
-
quantity:
|
|
319
|
+
quantity: t.formPlan.quantity
|
|
1562
320
|
}
|
|
1563
321
|
]
|
|
1564
322
|
});
|
|
1565
323
|
}
|
|
1566
|
-
return
|
|
1567
|
-
const s =
|
|
324
|
+
return n(), t.formProducts.forEach((i) => {
|
|
325
|
+
const s = t.priceById(i.stripePriceStripeId);
|
|
1568
326
|
if (s) {
|
|
1569
|
-
let
|
|
1570
|
-
s.usageType === "one_time" && (
|
|
327
|
+
let l = s.interval;
|
|
328
|
+
s.usageType === "one_time" && (l = "oneOff");
|
|
1571
329
|
const o = s.amount * i.quantity;
|
|
1572
|
-
let
|
|
1573
|
-
|
|
1574
|
-
const p =
|
|
1575
|
-
a =
|
|
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:
|
|
335
|
+
subTotal: c,
|
|
1578
336
|
vatAmount: p,
|
|
1579
|
-
totalAmount:
|
|
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 [
|
|
351
|
+
async [U]({ commit: r }) {
|
|
1594
352
|
try {
|
|
1595
|
-
|
|
1596
|
-
const { data:
|
|
1597
|
-
|
|
1598
|
-
} catch (
|
|
1599
|
-
this.handleError(
|
|
1600
|
-
action: `${
|
|
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
|
-
|
|
362
|
+
r("setFetching", !1);
|
|
1605
363
|
}
|
|
1606
364
|
},
|
|
1607
|
-
async [
|
|
1608
|
-
|
|
365
|
+
async [It]({ commit: r }) {
|
|
366
|
+
r("setForm", F(q));
|
|
1609
367
|
},
|
|
1610
|
-
async [
|
|
1611
|
-
|
|
368
|
+
async [Et]({ commit: r }, { key: t, value: e }) {
|
|
369
|
+
r("setFormValue", { key: t, value: e });
|
|
1612
370
|
},
|
|
1613
|
-
[
|
|
1614
|
-
if (!
|
|
371
|
+
[A]({ commit: r, getters: t }, { promotionDetails: e, code: a = null } = {}) {
|
|
372
|
+
if (!e)
|
|
1615
373
|
return !1;
|
|
1616
|
-
const { appliesToStripeProductIds:
|
|
1617
|
-
return Array.isArray(
|
|
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: { ...
|
|
377
|
+
value: { ...e, code: a }
|
|
1620
378
|
}), !0);
|
|
1621
379
|
},
|
|
1622
|
-
async [
|
|
380
|
+
async [Mt]({ commit: r, getters: t, dispatch: e }, a) {
|
|
1623
381
|
try {
|
|
1624
|
-
if (
|
|
382
|
+
if (t.isPosting || !a)
|
|
1625
383
|
return !1;
|
|
1626
|
-
|
|
1627
|
-
const { data:
|
|
1628
|
-
return
|
|
1629
|
-
promotionDetails:
|
|
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
|
-
|
|
393
|
+
r("setPosting", !1);
|
|
1636
394
|
}
|
|
1637
395
|
},
|
|
1638
396
|
// Submit payment method to Stripe
|
|
1639
|
-
async [O]({ commit:
|
|
1640
|
-
const
|
|
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
|
-
|
|
1647
|
-
const { paymentMethod: a = {}, error:
|
|
1648
|
-
if (
|
|
1649
|
-
throw new Error(
|
|
1650
|
-
const { id: i } = a, { last4: s, brand:
|
|
1651
|
-
return { id: i, last4: s, brand:
|
|
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
|
-
|
|
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:
|
|
424
|
+
async [w]({ commit: r, getters: t, dispatch: e }, { form: a, stripe: { cardElement: n } = {}, removeUnusedItems: i = !0 } = {}) {
|
|
1667
425
|
try {
|
|
1668
|
-
|
|
1669
|
-
const { items: s } = a, { formCustomer:
|
|
1670
|
-
let
|
|
1671
|
-
|
|
1672
|
-
const
|
|
1673
|
-
|
|
1674
|
-
const { data:
|
|
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 } =
|
|
1677
|
-
return T && T.length &&
|
|
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:
|
|
437
|
+
paymentMethodId: V
|
|
1680
438
|
}) : !0;
|
|
1681
439
|
} catch (s) {
|
|
1682
440
|
this.handleError(s);
|
|
1683
|
-
const
|
|
1684
|
-
return
|
|
441
|
+
const l = (s.errorCode ? $t(s.errorCode) : "") || s.message;
|
|
442
|
+
return r("setFormValue", {
|
|
1685
443
|
key: "error",
|
|
1686
|
-
value:
|
|
444
|
+
value: l || "Submit Form Payment Error"
|
|
1687
445
|
}), !1;
|
|
1688
446
|
} finally {
|
|
1689
|
-
|
|
447
|
+
r("setPosting", !1);
|
|
1690
448
|
}
|
|
1691
449
|
},
|
|
1692
|
-
async [
|
|
450
|
+
async [Lt]({ commit: r, dispatch: t, getters: e }, { cardElement: a } = {}) {
|
|
1693
451
|
try {
|
|
1694
|
-
const { formPlan:
|
|
1695
|
-
if (!
|
|
452
|
+
const { formPlan: n, formProducts: i, products: s, subscriptionItems: l } = e;
|
|
453
|
+
if (!n)
|
|
1696
454
|
return !1;
|
|
1697
|
-
const o = [...
|
|
1698
|
-
(p) =>
|
|
455
|
+
const o = [...l], c = o.findIndex(
|
|
456
|
+
(p) => v(s[p.stripeProductStripeId], "metadata.accountType")
|
|
1699
457
|
);
|
|
1700
|
-
return
|
|
1701
|
-
stripePriceStripeId:
|
|
1702
|
-
stripeProductStripeId:
|
|
1703
|
-
quantity:
|
|
1704
|
-
}), o.push(...i), await
|
|
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 (
|
|
1709
|
-
return this.handleError(
|
|
466
|
+
} catch (n) {
|
|
467
|
+
return this.handleError(n), r("setFormValue", {
|
|
1710
468
|
key: "error",
|
|
1711
|
-
value:
|
|
469
|
+
value: n.message || "Submit Plan Error"
|
|
1712
470
|
}), !1;
|
|
1713
471
|
}
|
|
1714
472
|
},
|
|
1715
|
-
async [
|
|
473
|
+
async [Vt]({ commit: r, dispatch: t, getters: e }, { cardElement: a, removeUnusedItems: n = !0 } = {}) {
|
|
1716
474
|
try {
|
|
1717
|
-
const { formProducts: i } =
|
|
1718
|
-
return s.length ? await
|
|
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:
|
|
479
|
+
removeUnusedItems: n
|
|
1722
480
|
}) : !1;
|
|
1723
481
|
} catch (i) {
|
|
1724
|
-
return this.handleError(i),
|
|
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 [
|
|
497
|
+
async [z]({ commit: r }, { clientSecrets: t = [], paymentMethodId: e }) {
|
|
1740
498
|
const a = window.$stripe;
|
|
1741
499
|
try {
|
|
1742
|
-
if (!
|
|
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(
|
|
504
|
+
if (!Array.isArray(t))
|
|
1747
505
|
throw new Error("Param clientSecrets needs to be an array");
|
|
1748
|
-
return await
|
|
506
|
+
return await t.reduce(async (i, s) => {
|
|
1749
507
|
await i;
|
|
1750
|
-
const { paymentIntent:
|
|
1751
|
-
payment_method:
|
|
508
|
+
const { paymentIntent: l, error: o } = await a.confirmCardPayment(s, {
|
|
509
|
+
payment_method: e
|
|
1752
510
|
});
|
|
1753
|
-
return o ? (o.message &&
|
|
511
|
+
return o ? (o.message && r("setFormValue", {
|
|
1754
512
|
key: "error",
|
|
1755
513
|
value: o.message
|
|
1756
|
-
}), await
|
|
514
|
+
}), await I.cancelAll({
|
|
1757
515
|
immediately: !0,
|
|
1758
516
|
status: "incomplete"
|
|
1759
|
-
}), !1) :
|
|
517
|
+
}), !1) : l && l.status === "succeeded";
|
|
1760
518
|
}, Promise.resolve());
|
|
1761
|
-
} catch (
|
|
1762
|
-
return this.handleError(
|
|
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 [
|
|
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
|
-
|
|
1778
|
-
const { subscriptionItems:
|
|
1779
|
-
let i = [...
|
|
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
|
|
1783
|
-
} catch (
|
|
1784
|
-
return this.handleError(
|
|
540
|
+
), await t(w, { form: { items: i } });
|
|
541
|
+
} catch (n) {
|
|
542
|
+
return this.handleError(n), !1;
|
|
1785
543
|
} finally {
|
|
1786
|
-
|
|
544
|
+
r("setPosting", !1);
|
|
1787
545
|
}
|
|
1788
546
|
}
|
|
1789
547
|
},
|
|
1790
548
|
mutations: {
|
|
1791
|
-
setFetching: (
|
|
1792
|
-
|
|
549
|
+
setFetching: (r, t) => {
|
|
550
|
+
r.isFetching = t;
|
|
1793
551
|
},
|
|
1794
|
-
setPosting: (
|
|
1795
|
-
|
|
552
|
+
setPosting: (r, t) => {
|
|
553
|
+
r.isPosting = t;
|
|
1796
554
|
},
|
|
1797
|
-
setPostingPaymentMethod: (
|
|
1798
|
-
|
|
555
|
+
setPostingPaymentMethod: (r, t) => {
|
|
556
|
+
r.isPostingPaymentMethod = t;
|
|
1799
557
|
},
|
|
1800
558
|
// --- Prices ---
|
|
1801
|
-
setPrices: (
|
|
1802
|
-
if (typeof
|
|
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
|
|
1805
|
-
|
|
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:
|
|
1808
|
-
const a =
|
|
1809
|
-
|
|
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: (
|
|
1813
|
-
|
|
570
|
+
setForm: (r, t) => {
|
|
571
|
+
B.set(r, "form", t);
|
|
1814
572
|
},
|
|
1815
|
-
setFormValue: (
|
|
1816
|
-
const { root: a, prop:
|
|
1817
|
-
|
|
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
|
-
},
|
|
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(
|
|
1856
|
-
this.pointerX =
|
|
613
|
+
updateCoords(r) {
|
|
614
|
+
this.pointerX = r.clientX || r.touches[0].clientX, this.pointerY = r.clientY || r.touches[0].clientY;
|
|
1857
615
|
},
|
|
1858
|
-
setParticleDirection(
|
|
1859
|
-
const
|
|
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:
|
|
1862
|
-
y:
|
|
619
|
+
x: r.x + a * Math.cos(t),
|
|
620
|
+
y: r.y + a * Math.sin(t)
|
|
1863
621
|
};
|
|
1864
622
|
},
|
|
1865
|
-
createParticle(
|
|
1866
|
-
const
|
|
1867
|
-
return
|
|
1868
|
-
this.ctx.beginPath(), this.ctx.arc(
|
|
1869
|
-
},
|
|
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(
|
|
1872
|
-
const
|
|
1873
|
-
return
|
|
1874
|
-
this.ctx.globalAlpha =
|
|
1875
|
-
},
|
|
1876
|
-
},
|
|
1877
|
-
renderParticle(
|
|
1878
|
-
for (let
|
|
1879
|
-
|
|
1880
|
-
},
|
|
1881
|
-
animateParticles(
|
|
1882
|
-
const
|
|
1883
|
-
for (let
|
|
1884
|
-
a.push(this.createParticle(
|
|
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(
|
|
1888
|
-
return
|
|
645
|
+
x(n) {
|
|
646
|
+
return n.endPos.x;
|
|
1889
647
|
},
|
|
1890
|
-
y(
|
|
1891
|
-
return
|
|
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:
|
|
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
|
|
671
|
+
const r = window.innerWidth / 2, t = window.innerHeight / 2;
|
|
1914
672
|
this.animate && (this.animateParticles(
|
|
1915
|
-
u.random(
|
|
673
|
+
u.random(r - 50, r + 50),
|
|
1916
674
|
// 50 as constant
|
|
1917
|
-
u.random(
|
|
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
|
|
1923
|
-
const
|
|
1924
|
-
return (
|
|
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
|
|
1929
|
-
var
|
|
1930
|
-
return
|
|
1931
|
-
},
|
|
1932
|
-
var
|
|
1933
|
-
return
|
|
1934
|
-
}],
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
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
|
-
"
|
|
698
|
+
"87d7774b"
|
|
1941
699
|
);
|
|
1942
|
-
const
|
|
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(
|
|
1976
|
-
const a = this[
|
|
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
|
-
},
|
|
740
|
+
}, Ot = (r) => {
|
|
1983
741
|
if (document.getElementById("stripe-js"))
|
|
1984
|
-
return
|
|
1985
|
-
const
|
|
1986
|
-
return
|
|
1987
|
-
},
|
|
1988
|
-
window.$stripe = Stripe(
|
|
1989
|
-
locale:
|
|
1990
|
-
}), typeof
|
|
1991
|
-
}),
|
|
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(() => {
|
|
746
|
+
window.$stripe = Stripe(h.stripe.publishableKey, {
|
|
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
|
-
|
|
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
|
|
2022
|
-
this.copyInputStyle(
|
|
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
|
|
2028
|
-
this.stripeCardElementId && this.callCard("unmount", this.stripeCardElementId), this.card && (this.card = null), this.isShadowParent() && ((
|
|
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(
|
|
2031
|
-
this.card && typeof this.card[
|
|
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(
|
|
2038
|
-
if (!
|
|
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
|
|
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:
|
|
2056
|
-
const { error:
|
|
2057
|
-
|
|
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
|
|
2062
|
-
const
|
|
2063
|
-
return (
|
|
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
|
|
2067
|
-
return this.isShadowParent() ? (
|
|
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:
|
|
2070
|
-
const { x:
|
|
2071
|
-
|
|
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(
|
|
831
|
+
copyInputStyle(r) {
|
|
2074
832
|
var i;
|
|
2075
|
-
const
|
|
2076
|
-
|
|
2077
|
-
const
|
|
2078
|
-
this.repositionStripeEl({ original:
|
|
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
|
-
|
|
838
|
+
e.addEventListener("scroll", a, {
|
|
2081
839
|
passive: !0
|
|
2082
840
|
}), window.addEventListener("resize", a), this.removeEventListeners = () => {
|
|
2083
|
-
|
|
841
|
+
e.removeEventListener("scroll", a, {
|
|
2084
842
|
passive: !0
|
|
2085
843
|
}), window.removeEventListener("resize", a);
|
|
2086
|
-
}, this.repositionStripeEl({ original:
|
|
2087
|
-
const
|
|
2088
|
-
window.getComputedStyle(
|
|
844
|
+
}, this.repositionStripeEl({ original: r, clone: t });
|
|
845
|
+
const n = Number(
|
|
846
|
+
window.getComputedStyle(r).getPropertyValue("--app-z-index")
|
|
2089
847
|
);
|
|
2090
|
-
|
|
848
|
+
t.style.zIndex = n + 1e4, document.body.appendChild(t);
|
|
2091
849
|
}
|
|
2092
850
|
}
|
|
2093
|
-
},
|
|
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:
|
|
2286
|
-
CCheckbox:
|
|
1043
|
+
CAccordion: Pt,
|
|
1044
|
+
CCheckbox: at,
|
|
1045
|
+
CField: ft,
|
|
1046
|
+
CSelect: ht,
|
|
1047
|
+
CSwitch: gt
|
|
2287
1048
|
},
|
|
2288
|
-
mixins: [
|
|
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:
|
|
2314
|
-
cardBrands:
|
|
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((
|
|
2339
|
-
sameAs: _.sameAs((
|
|
1099
|
+
required: _.requiredIf((t) => t.collectConsent),
|
|
1100
|
+
sameAs: _.sameAs((t) => t.collectConsent)
|
|
2340
1101
|
}
|
|
2341
1102
|
};
|
|
2342
1103
|
},
|
|
2343
1104
|
computed: {
|
|
2344
|
-
...
|
|
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(
|
|
2371
|
-
this.$emit("input", { key: "plan.quantity", value:
|
|
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
|
|
2380
|
-
return (
|
|
1140
|
+
var r;
|
|
1141
|
+
return (r = this.customer) == null ? void 0 : r.paymentMethodLast4;
|
|
2381
1142
|
},
|
|
2382
1143
|
sortedRegions() {
|
|
2383
|
-
return (Object.keys(
|
|
2384
|
-
key:
|
|
2385
|
-
title: `${
|
|
2386
|
-
callingCode:
|
|
2387
|
-
})).sort((
|
|
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
|
|
2394
|
-
const { amountOff:
|
|
2395
|
-
return
|
|
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
|
|
2400
|
-
if (!
|
|
1160
|
+
const r = {}, t = (i = this.formPlan) == null ? void 0 : i.StripeProduct;
|
|
1161
|
+
if (!t)
|
|
2401
1162
|
return [];
|
|
2402
|
-
const { quotas:
|
|
2403
|
-
return Object.keys(
|
|
2404
|
-
s === "bankId" && y[
|
|
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:
|
|
1167
|
+
count: n[s] || 0,
|
|
2407
1168
|
cost: null
|
|
2408
1169
|
});
|
|
2409
1170
|
}), a.forEach((s) => {
|
|
2410
|
-
if (s === "bankId" && y[
|
|
1171
|
+
if (s === "bankId" && y[h.brand].defaultRegion === "US")
|
|
2411
1172
|
return;
|
|
2412
|
-
const
|
|
2413
|
-
if (!
|
|
1173
|
+
const l = this.getMeteredProduct(s);
|
|
1174
|
+
if (!l)
|
|
2414
1175
|
return;
|
|
2415
|
-
const o =
|
|
1176
|
+
const o = l.prices.find(
|
|
2416
1177
|
(p) => {
|
|
2417
|
-
var
|
|
2418
|
-
return p.active && ((
|
|
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
|
|
1184
|
+
const c = P(o.amount, {
|
|
2424
1185
|
currency: o.currency,
|
|
2425
1186
|
decimals: 2,
|
|
2426
1187
|
hideZeroDecimals: !0
|
|
2427
1188
|
});
|
|
2428
|
-
|
|
2429
|
-
}), Object.keys(
|
|
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(
|
|
1194
|
+
useExistingCard(r) {
|
|
2434
1195
|
this.$nextTick(() => {
|
|
2435
|
-
|
|
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
|
|
2450
|
-
this.useExistingCard =
|
|
2451
|
-
this.customer[
|
|
2452
|
-
key: `customer.${
|
|
2453
|
-
value: this.customer[
|
|
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:
|
|
2457
|
-
this.setPromotion({ promotionDetails:
|
|
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(
|
|
2469
|
-
return
|
|
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,98 +1240,98 @@ const Fe = Re.exports, Ue = {
|
|
|
2479
1240
|
...!this.useExistingCard && { cardElement: this.card }
|
|
2480
1241
|
}) && this.$emit("success");
|
|
2481
1242
|
},
|
|
2482
|
-
async verifyPromotionCode(
|
|
2483
|
-
if (!
|
|
1243
|
+
async verifyPromotionCode(r) {
|
|
1244
|
+
if (!r) {
|
|
2484
1245
|
this.promoInputVisible = !1;
|
|
2485
1246
|
return;
|
|
2486
1247
|
}
|
|
2487
|
-
this.isInvalidPromotionCode = !1, await this.usePromotionCode(
|
|
1248
|
+
this.isInvalidPromotionCode = !1, await this.usePromotionCode(r) ? (this.promoInputVisible = !1, this.inputPromotionCode = "") : this.isInvalidPromotionCode = !0;
|
|
2488
1249
|
}
|
|
2489
1250
|
}
|
|
2490
1251
|
};
|
|
2491
|
-
var
|
|
2492
|
-
var
|
|
2493
|
-
return
|
|
2494
|
-
return
|
|
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
|
-
|
|
1257
|
+
t.formPlan.interval === "year" ? "month" : "year"
|
|
2497
1258
|
);
|
|
2498
|
-
} } })], 1),
|
|
2499
|
-
return
|
|
2500
|
-
return
|
|
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
|
-
}),
|
|
2503
|
-
return
|
|
2504
|
-
} } }),
|
|
2505
|
-
return
|
|
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") &&
|
|
2508
|
-
} }, scopedSlots:
|
|
2509
|
-
return [
|
|
2510
|
-
return
|
|
2511
|
-
} } }, [
|
|
2512
|
-
}, proxy: !0 }]), model: { value:
|
|
2513
|
-
|
|
2514
|
-
}, expression: "inputPromotionCode" } })], 1) :
|
|
2515
|
-
|
|
2516
|
-
} } }, [
|
|
2517
|
-
return
|
|
2518
|
-
} } })], 1),
|
|
2519
|
-
return
|
|
2520
|
-
} } })], 1)]], 2),
|
|
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: `
|
|
2521
1282
|
uiPlan.accountType === 'start'
|
|
2522
1283
|
? { content: $t('quantity.disabled') }
|
|
2523
1284
|
: ''
|
|
2524
|
-
` }], attrs: { disabled:
|
|
2525
|
-
|
|
2526
|
-
}, expression: "quantity" } })], 1)], 1),
|
|
2527
|
-
|
|
2528
|
-
} } })], 1),
|
|
2529
|
-
|
|
2530
|
-
} } })], 1)])]),
|
|
2531
|
-
|
|
2532
|
-
} } }, [
|
|
2533
|
-
|
|
2534
|
-
) } }),
|
|
2535
|
-
return [
|
|
2536
|
-
|
|
2537
|
-
} } }, [
|
|
2538
|
-
}, proxy: !0 }], null, !1, 2236526164) })], 1)], 1) :
|
|
2539
|
-
return
|
|
2540
|
-
} } })], 1),
|
|
2541
|
-
return
|
|
2542
|
-
} } },
|
|
2543
|
-
return
|
|
2544
|
-
}), 0)], 1),
|
|
2545
|
-
return
|
|
2546
|
-
} } })], 1)], 1)]], 2),
|
|
2547
|
-
|
|
2548
|
-
}, expression: "consent" } }, [
|
|
2549
|
-
|
|
2550
|
-
] }, [
|
|
2551
|
-
return
|
|
2552
|
-
return [
|
|
2553
|
-
|
|
2554
|
-
brand:
|
|
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")
|
|
2555
1316
|
})
|
|
2556
|
-
) } }),
|
|
2557
|
-
transform: `rotate(${
|
|
1317
|
+
) } }), e("CIcon", { staticStyle: { transition: "200ms" }, style: {
|
|
1318
|
+
transform: `rotate(${n ? "0deg" : "180deg"})`
|
|
2558
1319
|
}, attrs: { type: "chevron-down", size: "15" } })], 1)];
|
|
2559
|
-
} }], null, !0) }, [
|
|
2560
|
-
|
|
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") })
|
|
2561
1322
|
) } })]);
|
|
2562
|
-
})], 2)]),
|
|
2563
|
-
return
|
|
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()]);
|
|
2564
1325
|
}), 0)])])], 1);
|
|
2565
|
-
},
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
1326
|
+
}, Zt = [], Nt = /* @__PURE__ */ d(
|
|
1327
|
+
qt,
|
|
1328
|
+
jt,
|
|
1329
|
+
Zt,
|
|
2569
1330
|
!1,
|
|
2570
1331
|
null,
|
|
2571
|
-
"
|
|
1332
|
+
"99f68ee9"
|
|
2572
1333
|
);
|
|
2573
|
-
const
|
|
1334
|
+
const Yt = Nt.exports, Wt = {
|
|
2574
1335
|
name: "PremiumStripeSelect",
|
|
2575
1336
|
i18nOptions: {
|
|
2576
1337
|
namespaces: "premiumStripeSelect",
|
|
@@ -2606,17 +1367,17 @@ const ze = Ne.exports, qe = {
|
|
|
2606
1367
|
}
|
|
2607
1368
|
},
|
|
2608
1369
|
computed: {
|
|
2609
|
-
...
|
|
1370
|
+
...C({
|
|
2610
1371
|
currentPlan: "stripe/currentPlan",
|
|
2611
1372
|
getPrice: "stripe/getPrice"
|
|
2612
1373
|
}),
|
|
2613
1374
|
currentAccountType() {
|
|
2614
|
-
var
|
|
2615
|
-
return ((
|
|
1375
|
+
var r;
|
|
1376
|
+
return ((r = this.currentPlan) == null ? void 0 : r.accountType) || "free";
|
|
2616
1377
|
},
|
|
2617
1378
|
currentInterval() {
|
|
2618
|
-
var
|
|
2619
|
-
return (
|
|
1379
|
+
var r;
|
|
1380
|
+
return (r = this.currentPlan) == null ? void 0 : r.interval;
|
|
2620
1381
|
}
|
|
2621
1382
|
},
|
|
2622
1383
|
created() {
|
|
@@ -2627,56 +1388,56 @@ const ze = Ne.exports, qe = {
|
|
|
2627
1388
|
opacity: [0, 1],
|
|
2628
1389
|
delay: u.stagger(80),
|
|
2629
1390
|
easing: "spring(1, 70, 20, 9)",
|
|
2630
|
-
complete: (
|
|
2631
|
-
|
|
2632
|
-
|
|
1391
|
+
complete: (r) => {
|
|
1392
|
+
r.animatables.forEach(({ target: t }) => {
|
|
1393
|
+
t.style.transform = "", this.$el.classList.remove("animating");
|
|
2633
1394
|
});
|
|
2634
1395
|
}
|
|
2635
1396
|
});
|
|
2636
1397
|
});
|
|
2637
1398
|
},
|
|
2638
1399
|
methods: {
|
|
2639
|
-
getPriceFormatted(
|
|
2640
|
-
if (
|
|
1400
|
+
getPriceFormatted(r) {
|
|
1401
|
+
if (r.accountType === "free")
|
|
2641
1402
|
return "";
|
|
2642
|
-
const { amount:
|
|
2643
|
-
if (typeof
|
|
1403
|
+
const { amount: t, currency: e } = this.getPrice(r.accountType, this.interval) || {};
|
|
1404
|
+
if (typeof t > "u" || typeof e > "u")
|
|
2644
1405
|
return "";
|
|
2645
|
-
const a =
|
|
2646
|
-
return `${P(a, { currency:
|
|
1406
|
+
const a = t / (this.interval === "month" ? 1 : 12);
|
|
1407
|
+
return `${P(a, { currency: e })}/${this.$t(
|
|
2647
1408
|
"_common:month"
|
|
2648
1409
|
)}`;
|
|
2649
1410
|
}
|
|
2650
1411
|
}
|
|
2651
1412
|
};
|
|
2652
|
-
var
|
|
2653
|
-
var
|
|
2654
|
-
return
|
|
2655
|
-
return
|
|
2656
|
-
selected:
|
|
2657
|
-
}, domProps: { textContent:
|
|
2658
|
-
return
|
|
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);
|
|
2659
1420
|
} } });
|
|
2660
|
-
}), 0),
|
|
2661
|
-
return
|
|
2662
|
-
selected:
|
|
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
|
|
2663
1424
|
}, on: { click: function(i) {
|
|
2664
|
-
return
|
|
2665
|
-
} } }, [
|
|
2666
|
-
return
|
|
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) } })]);
|
|
2667
1428
|
}), 0)]);
|
|
2668
|
-
}), 0),
|
|
2669
|
-
return
|
|
2670
|
-
} } }, [
|
|
2671
|
-
},
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
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,
|
|
2675
1436
|
!1,
|
|
2676
1437
|
null,
|
|
2677
|
-
"
|
|
1438
|
+
"51c5e4b2"
|
|
2678
1439
|
);
|
|
2679
|
-
const
|
|
1440
|
+
const Kt = Jt.exports, Xt = {
|
|
2680
1441
|
sv: {
|
|
2681
1442
|
premiumStripe: {
|
|
2682
1443
|
"features.free": [
|
|
@@ -2719,7 +1480,7 @@ const Ke = Ze.exports, Ye = {
|
|
|
2719
1480
|
title: 'Upgrade your plan. <span style="opacity: 0.5;">Get more out of Offerta.</span>'
|
|
2720
1481
|
}
|
|
2721
1482
|
}
|
|
2722
|
-
},
|
|
1483
|
+
}, te = {
|
|
2723
1484
|
name: "PremiumStripe",
|
|
2724
1485
|
i18nOptions: {
|
|
2725
1486
|
namespaces: "premiumStripe",
|
|
@@ -2743,7 +1504,7 @@ const Ke = Ze.exports, Ye = {
|
|
|
2743
1504
|
`
|
|
2744
1505
|
},
|
|
2745
1506
|
widget: {
|
|
2746
|
-
text: `Service provided by ${y[
|
|
1507
|
+
text: `Service provided by ${y[h.brand].name}. <a href="${y[h.brand].termsOfService.url}" target="_blank" class="font-semibold underline">Terms</a> for ${y[h.brand].name}.`
|
|
2747
1508
|
}
|
|
2748
1509
|
},
|
|
2749
1510
|
features: {
|
|
@@ -2777,7 +1538,7 @@ const Ke = Ze.exports, Ye = {
|
|
|
2777
1538
|
"Custom email address",
|
|
2778
1539
|
"Version control",
|
|
2779
1540
|
...b.checkFeature("bankId") ? ["BankID"] : [],
|
|
2780
|
-
`Hide ${y[
|
|
1541
|
+
`Hide ${y[h.brand].name}-logo`,
|
|
2781
1542
|
"CRM integrations"
|
|
2782
1543
|
]
|
|
2783
1544
|
},
|
|
@@ -2807,7 +1568,7 @@ const Ke = Ze.exports, Ye = {
|
|
|
2807
1568
|
`
|
|
2808
1569
|
},
|
|
2809
1570
|
widget: {
|
|
2810
|
-
text: `Tjänsten tillhandahålls via ${y[
|
|
1571
|
+
text: `Tjänsten tillhandahålls via ${y[h.brand].name}. <a href="${y[h.brand].termsOfService.url}" target="_blank" class="font-semibold underline">Villkor</a> för ${y[h.brand].name}.`
|
|
2811
1572
|
}
|
|
2812
1573
|
},
|
|
2813
1574
|
features: {
|
|
@@ -2841,7 +1602,7 @@ const Ke = Ze.exports, Ye = {
|
|
|
2841
1602
|
"Egen e-postdomän",
|
|
2842
1603
|
"Versionshantering",
|
|
2843
1604
|
...b.checkFeature("bankId") ? ["BankID"] : [],
|
|
2844
|
-
`Göm ${y[
|
|
1605
|
+
`Göm ${y[h.brand].name}-logo`,
|
|
2845
1606
|
"CRM-Integrationer"
|
|
2846
1607
|
]
|
|
2847
1608
|
},
|
|
@@ -2855,9 +1616,9 @@ const Ke = Ze.exports, Ye = {
|
|
|
2855
1616
|
}
|
|
2856
1617
|
},
|
|
2857
1618
|
components: {
|
|
2858
|
-
Confetti:
|
|
2859
|
-
PremiumStripeSelect:
|
|
2860
|
-
PremiumStripeForm:
|
|
1619
|
+
Confetti: Ut,
|
|
1620
|
+
PremiumStripeSelect: Kt,
|
|
1621
|
+
PremiumStripeForm: Yt
|
|
2861
1622
|
},
|
|
2862
1623
|
props: {
|
|
2863
1624
|
suggestedQuantity: {
|
|
@@ -2878,11 +1639,11 @@ const Ke = Ze.exports, Ye = {
|
|
|
2878
1639
|
};
|
|
2879
1640
|
},
|
|
2880
1641
|
computed: {
|
|
2881
|
-
...
|
|
2882
|
-
forceShowBase: (
|
|
2883
|
-
routeDeal: (
|
|
1642
|
+
...pt({
|
|
1643
|
+
forceShowBase: (r) => r.route.query.base,
|
|
1644
|
+
routeDeal: (r) => r.route.query.deal
|
|
2884
1645
|
}),
|
|
2885
|
-
...
|
|
1646
|
+
...C({
|
|
2886
1647
|
accountConfigName: "application/accountConfigName",
|
|
2887
1648
|
accountType: "application/companyAccountType",
|
|
2888
1649
|
subscription: "application/subscription",
|
|
@@ -2896,66 +1657,66 @@ const Ke = Ze.exports, Ye = {
|
|
|
2896
1657
|
}),
|
|
2897
1658
|
quantity: {
|
|
2898
1659
|
get() {
|
|
2899
|
-
var
|
|
2900
|
-
return (
|
|
1660
|
+
var r;
|
|
1661
|
+
return (r = this.formPlan) == null ? void 0 : r.quantity;
|
|
2901
1662
|
},
|
|
2902
|
-
set(
|
|
2903
|
-
this.setFormValue({ key: "plan.quantity", value:
|
|
1663
|
+
set(r) {
|
|
1664
|
+
this.setFormValue({ key: "plan.quantity", value: r });
|
|
2904
1665
|
}
|
|
2905
1666
|
},
|
|
2906
1667
|
plan: {
|
|
2907
1668
|
get() {
|
|
2908
|
-
var
|
|
2909
|
-
return (
|
|
1669
|
+
var r;
|
|
1670
|
+
return (r = this.formPlan) == null ? void 0 : r.accountType;
|
|
2910
1671
|
},
|
|
2911
|
-
set(
|
|
2912
|
-
this.setFormValue({ key: "plan.accountType", value:
|
|
1672
|
+
set(r) {
|
|
1673
|
+
this.setFormValue({ key: "plan.accountType", value: r });
|
|
2913
1674
|
}
|
|
2914
1675
|
},
|
|
2915
1676
|
interval: {
|
|
2916
1677
|
get() {
|
|
2917
|
-
var
|
|
2918
|
-
return (
|
|
1678
|
+
var r;
|
|
1679
|
+
return (r = this.formPlan) == null ? void 0 : r.interval;
|
|
2919
1680
|
},
|
|
2920
|
-
set(
|
|
2921
|
-
this.setFormValue({ key: "plan.interval", value:
|
|
1681
|
+
set(r) {
|
|
1682
|
+
this.setFormValue({ key: "plan.interval", value: r });
|
|
2922
1683
|
}
|
|
2923
1684
|
},
|
|
2924
1685
|
dealSource: {
|
|
2925
1686
|
get() {
|
|
2926
1687
|
return this.formDealSource;
|
|
2927
1688
|
},
|
|
2928
|
-
set(
|
|
2929
|
-
this.setFormValue({ key: "dealSource", value:
|
|
1689
|
+
set(r) {
|
|
1690
|
+
this.setFormValue({ key: "dealSource", value: r });
|
|
2930
1691
|
}
|
|
2931
1692
|
},
|
|
2932
1693
|
prettyPlans() {
|
|
2933
|
-
const
|
|
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 = () => {
|
|
2934
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;
|
|
2935
|
-
return
|
|
1696
|
+
return e && (i && !this.forceShowBase ? s : !0);
|
|
2936
1697
|
};
|
|
2937
|
-
return this.isOfferta &&
|
|
1698
|
+
return this.isOfferta && r.push({
|
|
2938
1699
|
name: "Free",
|
|
2939
1700
|
accountType: "free",
|
|
2940
|
-
img:
|
|
1701
|
+
img: x("/account/subscription/bg-start.png"),
|
|
2941
1702
|
// TODO: same img as base
|
|
2942
1703
|
features: this.$t("features.free")
|
|
2943
|
-
}), a &&
|
|
1704
|
+
}), a && r.push({
|
|
2944
1705
|
name: "Start",
|
|
2945
1706
|
accountType: "start",
|
|
2946
|
-
img:
|
|
1707
|
+
img: x("/account/subscription/bg-start.png"),
|
|
2947
1708
|
features: this.$t("features.start")
|
|
2948
|
-
}),
|
|
1709
|
+
}), n() && r.push({
|
|
2949
1710
|
name: "Base",
|
|
2950
1711
|
accountType: "base",
|
|
2951
|
-
img:
|
|
1712
|
+
img: x("/account/subscription/bg-base.png"),
|
|
2952
1713
|
features: this.$t("features.base")
|
|
2953
|
-
}),
|
|
1714
|
+
}), r.push({
|
|
2954
1715
|
name: "Pro",
|
|
2955
1716
|
accountType: "pro",
|
|
2956
|
-
img:
|
|
1717
|
+
img: x("/account/subscription/bg-pro.png"),
|
|
2957
1718
|
features: this.$t("features.pro")
|
|
2958
|
-
}),
|
|
1719
|
+
}), r;
|
|
2959
1720
|
},
|
|
2960
1721
|
calloutMode() {
|
|
2961
1722
|
return this.subscription.showCalloutConvertStripe ? "invoice" : this.subscription.isStripeLegacy ? "legacy" : null;
|
|
@@ -2964,14 +1725,14 @@ const Ke = Ze.exports, Ye = {
|
|
|
2964
1725
|
return this.accountConfigName === "offerta";
|
|
2965
1726
|
},
|
|
2966
1727
|
disableQuantity() {
|
|
2967
|
-
return this.isOfferta &&
|
|
1728
|
+
return this.isOfferta && it.value === "widget";
|
|
2968
1729
|
}
|
|
2969
1730
|
},
|
|
2970
1731
|
beforeCreate() {
|
|
2971
|
-
this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe",
|
|
1732
|
+
this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", N);
|
|
2972
1733
|
},
|
|
2973
1734
|
async created() {
|
|
2974
|
-
this.isOfferta &&
|
|
1735
|
+
this.isOfferta && st(Xt), this.resetStripeForm(), await this.loadPrices(), await this.suggestQuantity(), await this.handlePossibleDeal(), this.isEdit = !!this.subscriptions.length;
|
|
2975
1736
|
},
|
|
2976
1737
|
methods: {
|
|
2977
1738
|
...$({
|
|
@@ -2988,8 +1749,8 @@ const Ke = Ze.exports, Ye = {
|
|
|
2988
1749
|
this.quantity = this.suggestedQuantity;
|
|
2989
1750
|
return;
|
|
2990
1751
|
}
|
|
2991
|
-
const { data:
|
|
2992
|
-
this.quantity =
|
|
1752
|
+
const { data: r } = await ot();
|
|
1753
|
+
this.quantity = r;
|
|
2993
1754
|
},
|
|
2994
1755
|
onReset() {
|
|
2995
1756
|
this.view = "select", this.resetStripeForm();
|
|
@@ -3015,78 +1776,78 @@ const Ke = Ze.exports, Ye = {
|
|
|
3015
1776
|
},
|
|
3016
1777
|
removePossibleDealToken() {
|
|
3017
1778
|
if (this.routeDeal) {
|
|
3018
|
-
const
|
|
3019
|
-
delete
|
|
1779
|
+
const r = { ...this.$route.query };
|
|
1780
|
+
delete r.deal, this.$router.replace({ ...this.$route, query: r });
|
|
3020
1781
|
} else
|
|
3021
1782
|
this.stripeCustomDealToken && this.updateSettings({
|
|
3022
1783
|
key: "company",
|
|
3023
1784
|
settings: { stripeCustomDealToken: null }
|
|
3024
1785
|
});
|
|
3025
1786
|
},
|
|
3026
|
-
setFromDealToken(
|
|
3027
|
-
if (
|
|
1787
|
+
setFromDealToken(r) {
|
|
1788
|
+
if (r)
|
|
3028
1789
|
try {
|
|
3029
|
-
const
|
|
3030
|
-
if (
|
|
3031
|
-
const
|
|
3032
|
-
Object.keys(
|
|
3033
|
-
const
|
|
3034
|
-
|
|
3035
|
-
...
|
|
3036
|
-
quantity:
|
|
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]
|
|
3037
1798
|
});
|
|
3038
|
-
}),
|
|
1799
|
+
}), e.length && this.setFormValue({
|
|
3039
1800
|
key: "products",
|
|
3040
1801
|
value: [
|
|
3041
1802
|
// ...this.formProducts,
|
|
3042
|
-
...
|
|
1803
|
+
...e
|
|
3043
1804
|
]
|
|
3044
1805
|
});
|
|
3045
1806
|
}
|
|
3046
1807
|
this.view = "form";
|
|
3047
|
-
} catch (
|
|
3048
|
-
console.error(
|
|
1808
|
+
} catch (t) {
|
|
1809
|
+
console.error(t);
|
|
3049
1810
|
}
|
|
3050
1811
|
}
|
|
3051
1812
|
}
|
|
3052
1813
|
};
|
|
3053
|
-
var
|
|
3054
|
-
var
|
|
3055
|
-
return
|
|
3056
|
-
return
|
|
3057
|
-
} } }),
|
|
3058
|
-
|
|
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;
|
|
3059
1820
|
}, "update:interval": function(a) {
|
|
3060
|
-
|
|
1821
|
+
t.interval = a;
|
|
3061
1822
|
}, next: function(a) {
|
|
3062
|
-
|
|
3063
|
-
} } }) :
|
|
3064
|
-
|
|
3065
|
-
}, input:
|
|
3066
|
-
return
|
|
3067
|
-
} } }, [
|
|
3068
|
-
},
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
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,
|
|
3072
1833
|
!1,
|
|
3073
1834
|
null,
|
|
3074
1835
|
null
|
|
3075
1836
|
);
|
|
3076
|
-
const
|
|
1837
|
+
const W = ae.exports, ne = {
|
|
3077
1838
|
name: "IsPremium",
|
|
3078
1839
|
computed: {
|
|
3079
|
-
...
|
|
1840
|
+
...C({
|
|
3080
1841
|
feature: "application/feature",
|
|
3081
1842
|
subscription: "application/subscription",
|
|
3082
1843
|
companyAccount: "application/companyAccount",
|
|
3083
1844
|
stripeCustomDealToken: "settings/stripeCustomDealToken"
|
|
3084
1845
|
}),
|
|
3085
1846
|
isPremium() {
|
|
3086
|
-
return
|
|
1847
|
+
return D.includes(this.subscription.type);
|
|
3087
1848
|
},
|
|
3088
1849
|
isPremiumLike() {
|
|
3089
|
-
return ["trial", ...
|
|
1850
|
+
return ["trial", ...D].includes(this.subscription.type);
|
|
3090
1851
|
},
|
|
3091
1852
|
isProLike() {
|
|
3092
1853
|
return ["pro", "trial"].includes(this.subscription.type);
|
|
@@ -3096,7 +1857,7 @@ const K = Je.exports, et = {
|
|
|
3096
1857
|
},
|
|
3097
1858
|
canCreateDocument() {
|
|
3098
1859
|
return this.subscription.freeDocumentsLeft > 0 || // Has free quota left
|
|
3099
|
-
|
|
1860
|
+
v(this.companyAccount, "documentQuota.priceExtra.value") !== null;
|
|
3100
1861
|
},
|
|
3101
1862
|
canCreateTemplate() {
|
|
3102
1863
|
return this.feature("createDocTemplate");
|
|
@@ -3117,8 +1878,8 @@ const K = Je.exports, et = {
|
|
|
3117
1878
|
},
|
|
3118
1879
|
created() {
|
|
3119
1880
|
if (this.openSubscription) {
|
|
3120
|
-
const
|
|
3121
|
-
delete
|
|
1881
|
+
const r = { ...this.$route.query };
|
|
1882
|
+
delete r.openSubscription, this.$router.replace({ ...this.$route, query: r }), this.openUpgradeModal();
|
|
3122
1883
|
} else
|
|
3123
1884
|
this.stripeCustomDealToken && this.openUpgradeModal();
|
|
3124
1885
|
},
|
|
@@ -3131,15 +1892,15 @@ const K = Je.exports, et = {
|
|
|
3131
1892
|
* @param {Function} obj.onClosed Optional callback to run after Stripe modal is closed
|
|
3132
1893
|
*/
|
|
3133
1894
|
openUpgradeModal({
|
|
3134
|
-
suggestedQuantity:
|
|
3135
|
-
callback:
|
|
3136
|
-
onClosed:
|
|
1895
|
+
suggestedQuantity: r = null,
|
|
1896
|
+
callback: t = null,
|
|
1897
|
+
onClosed: e = null
|
|
3137
1898
|
} = {}) {
|
|
3138
|
-
let a = () => null,
|
|
3139
|
-
typeof
|
|
3140
|
-
|
|
1899
|
+
let a = () => null, n = () => null;
|
|
1900
|
+
typeof t == "function" && (a = t), typeof e == "function" && (n = e), this.$modal.show(
|
|
1901
|
+
W,
|
|
3141
1902
|
{
|
|
3142
|
-
suggestedQuantity:
|
|
1903
|
+
suggestedQuantity: r,
|
|
3143
1904
|
onUpgrade: a
|
|
3144
1905
|
},
|
|
3145
1906
|
{
|
|
@@ -3150,7 +1911,7 @@ const K = Je.exports, et = {
|
|
|
3150
1911
|
},
|
|
3151
1912
|
{
|
|
3152
1913
|
closed: () => {
|
|
3153
|
-
typeof
|
|
1914
|
+
typeof n == "function" && n();
|
|
3154
1915
|
}
|
|
3155
1916
|
}
|
|
3156
1917
|
);
|
|
@@ -3177,16 +1938,16 @@ const K = Je.exports, et = {
|
|
|
3177
1938
|
canUseSms: this.canUseSms
|
|
3178
1939
|
}) : {};
|
|
3179
1940
|
}
|
|
3180
|
-
},
|
|
3181
|
-
var
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
1941
|
+
}, ie = null, se = null;
|
|
1942
|
+
var oe = /* @__PURE__ */ d(
|
|
1943
|
+
ne,
|
|
1944
|
+
ie,
|
|
1945
|
+
se,
|
|
3185
1946
|
!1,
|
|
3186
1947
|
null,
|
|
3187
1948
|
null
|
|
3188
1949
|
);
|
|
3189
|
-
const
|
|
1950
|
+
const Q = oe.exports, le = {
|
|
3190
1951
|
i18nOptions: {
|
|
3191
1952
|
namespaces: "components",
|
|
3192
1953
|
messages: {
|
|
@@ -3210,14 +1971,14 @@ const Y = at.exports, rt = {
|
|
|
3210
1971
|
},
|
|
3211
1972
|
name: "PremiumRestrictedBase",
|
|
3212
1973
|
components: {
|
|
3213
|
-
IsPremium:
|
|
3214
|
-
CalloutLegacy:
|
|
1974
|
+
IsPremium: Q,
|
|
1975
|
+
CalloutLegacy: Z
|
|
3215
1976
|
},
|
|
3216
1977
|
props: {
|
|
3217
1978
|
plan: {
|
|
3218
1979
|
type: String,
|
|
3219
1980
|
default: "pro",
|
|
3220
|
-
validator: (
|
|
1981
|
+
validator: (r) => ["pro", "premium"].includes(r)
|
|
3221
1982
|
},
|
|
3222
1983
|
title: {
|
|
3223
1984
|
type: String,
|
|
@@ -3246,37 +2007,37 @@ const Y = at.exports, rt = {
|
|
|
3246
2007
|
};
|
|
3247
2008
|
},
|
|
3248
2009
|
methods: {
|
|
3249
|
-
async onActionClick(
|
|
2010
|
+
async onActionClick(r) {
|
|
3250
2011
|
try {
|
|
3251
|
-
this.isLoading = !0, await
|
|
2012
|
+
this.isLoading = !0, await r({ callback: this.onUpgrade }), this.$parent.$emit("close");
|
|
3252
2013
|
} finally {
|
|
3253
2014
|
this.isLoading = !1;
|
|
3254
2015
|
}
|
|
3255
2016
|
}
|
|
3256
2017
|
}
|
|
3257
2018
|
};
|
|
3258
|
-
var
|
|
3259
|
-
var
|
|
3260
|
-
return
|
|
3261
|
-
return [
|
|
3262
|
-
}),
|
|
3263
|
-
return [
|
|
3264
|
-
return
|
|
3265
|
-
} } }, [
|
|
3266
|
-
return [
|
|
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")))];
|
|
3267
2028
|
})], 2)], 1)];
|
|
3268
|
-
} }], null, !0) }),
|
|
3269
|
-
return
|
|
3270
|
-
} } }, [
|
|
3271
|
-
},
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
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,
|
|
3275
2036
|
!1,
|
|
3276
2037
|
null,
|
|
3277
|
-
"
|
|
2038
|
+
"dad02d78"
|
|
3278
2039
|
);
|
|
3279
|
-
const
|
|
2040
|
+
const g = de.exports, me = {
|
|
3280
2041
|
i18nOptions: {
|
|
3281
2042
|
namespaces: "PremiumRestrictedBankIdAndSms",
|
|
3282
2043
|
messages: {
|
|
@@ -3294,7 +2055,7 @@ const h = ot.exports, ct = {
|
|
|
3294
2055
|
},
|
|
3295
2056
|
name: "PremiumRestrictedBankIdAndSms",
|
|
3296
2057
|
components: {
|
|
3297
|
-
PremiumRestrictedBase:
|
|
2058
|
+
PremiumRestrictedBase: g
|
|
3298
2059
|
},
|
|
3299
2060
|
props: {
|
|
3300
2061
|
onUpgrade: {
|
|
@@ -3303,29 +2064,29 @@ const h = ot.exports, ct = {
|
|
|
3303
2064
|
}
|
|
3304
2065
|
},
|
|
3305
2066
|
computed: {
|
|
3306
|
-
...
|
|
2067
|
+
...C({
|
|
3307
2068
|
feature: "application/feature"
|
|
3308
2069
|
})
|
|
3309
2070
|
}
|
|
3310
2071
|
};
|
|
3311
|
-
var
|
|
3312
|
-
var
|
|
3313
|
-
return
|
|
3314
|
-
bankIdText:
|
|
3315
|
-
}), "sub-title":
|
|
3316
|
-
bankIdText:
|
|
3317
|
-
}), "on-upgrade":
|
|
3318
|
-
return [
|
|
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")) + " ")];
|
|
3319
2080
|
}, proxy: !0 }]) });
|
|
3320
|
-
},
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
2081
|
+
}, fe = [], he = /* @__PURE__ */ d(
|
|
2082
|
+
me,
|
|
2083
|
+
pe,
|
|
2084
|
+
fe,
|
|
3324
2085
|
!1,
|
|
3325
2086
|
null,
|
|
3326
2087
|
null
|
|
3327
2088
|
);
|
|
3328
|
-
const
|
|
2089
|
+
const ge = he.exports, ye = {
|
|
3329
2090
|
i18nOptions: {
|
|
3330
2091
|
namespaces: "licenses",
|
|
3331
2092
|
messages: {
|
|
@@ -3343,7 +2104,7 @@ const mt = dt.exports, pt = {
|
|
|
3343
2104
|
},
|
|
3344
2105
|
name: "PremiumRestrictedCreators",
|
|
3345
2106
|
components: {
|
|
3346
|
-
PremiumRestrictedBase:
|
|
2107
|
+
PremiumRestrictedBase: g
|
|
3347
2108
|
},
|
|
3348
2109
|
props: {
|
|
3349
2110
|
onUpgrade: {
|
|
@@ -3352,20 +2113,20 @@ const mt = dt.exports, pt = {
|
|
|
3352
2113
|
}
|
|
3353
2114
|
}
|
|
3354
2115
|
};
|
|
3355
|
-
var
|
|
3356
|
-
var
|
|
3357
|
-
return
|
|
3358
|
-
return [
|
|
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")) + " ")];
|
|
3359
2120
|
}, proxy: !0 }]) });
|
|
3360
|
-
},
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
2121
|
+
}, Ce = [], be = /* @__PURE__ */ d(
|
|
2122
|
+
ye,
|
|
2123
|
+
ve,
|
|
2124
|
+
Ce,
|
|
3364
2125
|
!1,
|
|
3365
2126
|
null,
|
|
3366
2127
|
null
|
|
3367
2128
|
);
|
|
3368
|
-
const
|
|
2129
|
+
const _e = be.exports, Pe = {
|
|
3369
2130
|
i18nOptions: {
|
|
3370
2131
|
namespaces: "stats",
|
|
3371
2132
|
messages: {
|
|
@@ -3383,7 +2144,7 @@ const yt = ht.exports, Ct = {
|
|
|
3383
2144
|
},
|
|
3384
2145
|
name: "PremiumRestrictedDocumentBlocks",
|
|
3385
2146
|
components: {
|
|
3386
|
-
PremiumRestrictedBase:
|
|
2147
|
+
PremiumRestrictedBase: g
|
|
3387
2148
|
},
|
|
3388
2149
|
props: {
|
|
3389
2150
|
onUpgrade: {
|
|
@@ -3392,20 +2153,20 @@ const yt = ht.exports, Ct = {
|
|
|
3392
2153
|
}
|
|
3393
2154
|
}
|
|
3394
2155
|
};
|
|
3395
|
-
var
|
|
3396
|
-
var
|
|
3397
|
-
return
|
|
3398
|
-
return [
|
|
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")) + " ")];
|
|
3399
2160
|
}, proxy: !0 }]) });
|
|
3400
|
-
},
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
2161
|
+
}, xe = [], Se = /* @__PURE__ */ d(
|
|
2162
|
+
Pe,
|
|
2163
|
+
ke,
|
|
2164
|
+
xe,
|
|
3404
2165
|
!1,
|
|
3405
2166
|
null,
|
|
3406
2167
|
null
|
|
3407
2168
|
);
|
|
3408
|
-
const
|
|
2169
|
+
const we = Se.exports, $e = {
|
|
3409
2170
|
i18nOptions: {
|
|
3410
2171
|
namespaces: "PremiumRestrictedDocuments",
|
|
3411
2172
|
messages: {
|
|
@@ -3429,7 +2190,7 @@ const Pt = _t.exports, St = {
|
|
|
3429
2190
|
},
|
|
3430
2191
|
name: "PremiumRestrictedDocuments",
|
|
3431
2192
|
components: {
|
|
3432
|
-
PremiumRestrictedBase:
|
|
2193
|
+
PremiumRestrictedBase: g
|
|
3433
2194
|
},
|
|
3434
2195
|
props: {
|
|
3435
2196
|
onUpgrade: {
|
|
@@ -3446,7 +2207,7 @@ const Pt = _t.exports, St = {
|
|
|
3446
2207
|
};
|
|
3447
2208
|
},
|
|
3448
2209
|
computed: {
|
|
3449
|
-
...
|
|
2210
|
+
...C({
|
|
3450
2211
|
getCompanyUserSetting: "settings/getCompanyUserSetting",
|
|
3451
2212
|
user: "application/user",
|
|
3452
2213
|
account: "application/companyAccount"
|
|
@@ -3454,9 +2215,9 @@ const Pt = _t.exports, St = {
|
|
|
3454
2215
|
},
|
|
3455
2216
|
created() {
|
|
3456
2217
|
try {
|
|
3457
|
-
|
|
3458
|
-
} catch (
|
|
3459
|
-
|
|
2218
|
+
ct("/documentLimitReached", {});
|
|
2219
|
+
} catch (r) {
|
|
2220
|
+
H(r, { showMessage: !1 });
|
|
3460
2221
|
}
|
|
3461
2222
|
},
|
|
3462
2223
|
async mounted() {
|
|
@@ -3467,17 +2228,17 @@ const Pt = _t.exports, St = {
|
|
|
3467
2228
|
loadCurrentCompany: m.DO_LOAD_CURRENT_COMPANY
|
|
3468
2229
|
}),
|
|
3469
2230
|
async checkFreeDocVoucher() {
|
|
3470
|
-
var
|
|
3471
|
-
if (this.canUseFreeDocVoucher = !1, ((
|
|
2231
|
+
var t, e;
|
|
2232
|
+
if (this.canUseFreeDocVoucher = !1, ((t = this.account) == null ? void 0 : t.accountType) !== "free")
|
|
3472
2233
|
return;
|
|
3473
|
-
const
|
|
2234
|
+
const r = JSON.parse(
|
|
3474
2235
|
E.getItem("voucher-freeUserDocs-company-id")
|
|
3475
2236
|
);
|
|
3476
|
-
((
|
|
2237
|
+
((e = this.account) == null ? void 0 : e.CompanyId) !== r && (this.canUseFreeDocVoucher = await this.canUseVoucher());
|
|
3477
2238
|
},
|
|
3478
2239
|
async canUseVoucher() {
|
|
3479
2240
|
try {
|
|
3480
|
-
return await
|
|
2241
|
+
return await R.canUse("freeUserDocs"), !0;
|
|
3481
2242
|
} catch {
|
|
3482
2243
|
return E.setItem(
|
|
3483
2244
|
"voucher-freeUserDocs-company-id",
|
|
@@ -3488,35 +2249,35 @@ const Pt = _t.exports, St = {
|
|
|
3488
2249
|
async useFreeDocsVoucher() {
|
|
3489
2250
|
this.isLoading = !0;
|
|
3490
2251
|
try {
|
|
3491
|
-
await
|
|
2252
|
+
await R.post({ code: "freeUserDocs" }), E.setItem(
|
|
3492
2253
|
"voucher-freeUserDocs-company-id",
|
|
3493
2254
|
this.account.CompanyId
|
|
3494
|
-
), await this.loadCurrentCompany(),
|
|
2255
|
+
), await this.loadCurrentCompany(), ut(
|
|
3495
2256
|
"success",
|
|
3496
2257
|
this.$t("voucherSuccessMessage", { count: this.voucherDocCount })
|
|
3497
2258
|
), this.onUpgrade && typeof this.onUpgrade == "function" && this.onUpgrade(), this.$emit("close");
|
|
3498
|
-
} catch (
|
|
3499
|
-
|
|
2259
|
+
} catch (r) {
|
|
2260
|
+
H(r);
|
|
3500
2261
|
} finally {
|
|
3501
2262
|
this.isLoading = !1;
|
|
3502
2263
|
}
|
|
3503
2264
|
}
|
|
3504
2265
|
}
|
|
3505
2266
|
};
|
|
3506
|
-
var
|
|
3507
|
-
var
|
|
3508
|
-
return
|
|
3509
|
-
return [
|
|
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()];
|
|
3510
2271
|
}, proxy: !0 }]) });
|
|
3511
|
-
},
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
2272
|
+
}, Ie = [], Ee = /* @__PURE__ */ d(
|
|
2273
|
+
$e,
|
|
2274
|
+
Te,
|
|
2275
|
+
Ie,
|
|
3515
2276
|
!1,
|
|
3516
2277
|
null,
|
|
3517
2278
|
null
|
|
3518
2279
|
);
|
|
3519
|
-
const
|
|
2280
|
+
const Me = Ee.exports, Le = {
|
|
3520
2281
|
i18nOptions: {
|
|
3521
2282
|
namespaces: "licenses",
|
|
3522
2283
|
messages: {
|
|
@@ -3540,7 +2301,7 @@ const $t = wt.exports, Tt = {
|
|
|
3540
2301
|
},
|
|
3541
2302
|
name: "PremiumRestrictedLicenses",
|
|
3542
2303
|
components: {
|
|
3543
|
-
PremiumRestrictedBase:
|
|
2304
|
+
PremiumRestrictedBase: g
|
|
3544
2305
|
},
|
|
3545
2306
|
props: {
|
|
3546
2307
|
onUpgrade: {
|
|
@@ -3549,7 +2310,7 @@ const $t = wt.exports, Tt = {
|
|
|
3549
2310
|
}
|
|
3550
2311
|
},
|
|
3551
2312
|
computed: {
|
|
3552
|
-
...
|
|
2313
|
+
...C({
|
|
3553
2314
|
subscription: "application/subscription",
|
|
3554
2315
|
currentPlan: "stripe/currentPlan",
|
|
3555
2316
|
formPlan: "stripe/formPlan"
|
|
@@ -3559,7 +2320,7 @@ const $t = wt.exports, Tt = {
|
|
|
3559
2320
|
}
|
|
3560
2321
|
},
|
|
3561
2322
|
beforeCreate() {
|
|
3562
|
-
this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe",
|
|
2323
|
+
this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", N);
|
|
3563
2324
|
},
|
|
3564
2325
|
created() {
|
|
3565
2326
|
this.initLicense();
|
|
@@ -3579,51 +2340,51 @@ const $t = wt.exports, Tt = {
|
|
|
3579
2340
|
supportChatMessage() {
|
|
3580
2341
|
this.$supportChat.showNewMessage(this.$t("chatMessageStarter")), this.$emit("close");
|
|
3581
2342
|
},
|
|
3582
|
-
async doUpgrade({ callback:
|
|
3583
|
-
let
|
|
2343
|
+
async doUpgrade({ callback: r }) {
|
|
2344
|
+
let t = !1;
|
|
3584
2345
|
try {
|
|
3585
2346
|
if (this.subscription.paymentMethod === "stripe")
|
|
3586
|
-
|
|
2347
|
+
t = await this.addStripeLicense();
|
|
3587
2348
|
else if (this.subscription.paymentMethod === "invoice")
|
|
3588
|
-
await this.addInvoiceLicense(),
|
|
2349
|
+
await this.addInvoiceLicense(), t = !0;
|
|
3589
2350
|
else
|
|
3590
2351
|
throw new Error(
|
|
3591
2352
|
"Cannot upgrade license as current paymentMethod is not valid"
|
|
3592
2353
|
);
|
|
3593
|
-
} catch (
|
|
3594
|
-
|
|
2354
|
+
} catch (e) {
|
|
2355
|
+
H(e);
|
|
3595
2356
|
}
|
|
3596
|
-
|
|
2357
|
+
t && await r();
|
|
3597
2358
|
},
|
|
3598
2359
|
async addStripeLicense() {
|
|
3599
2360
|
this.updateFormValue({
|
|
3600
2361
|
key: "plan.quantity",
|
|
3601
2362
|
value: this.currentPlan.quantity + 1
|
|
3602
2363
|
});
|
|
3603
|
-
const
|
|
3604
|
-
return await this.loadCurrentCompany(),
|
|
2364
|
+
const r = await this.submitPlan({});
|
|
2365
|
+
return await this.loadCurrentCompany(), r;
|
|
3605
2366
|
},
|
|
3606
2367
|
async addInvoiceLicense() {
|
|
3607
|
-
await
|
|
2368
|
+
await dt(), await this.loadCurrentCompany();
|
|
3608
2369
|
}
|
|
3609
2370
|
}
|
|
3610
2371
|
};
|
|
3611
|
-
var
|
|
3612
|
-
var
|
|
3613
|
-
return
|
|
3614
|
-
return [
|
|
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")) + " ")];
|
|
3615
2376
|
}, proxy: !0 }, { key: "content", fn: function() {
|
|
3616
|
-
return [
|
|
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()];
|
|
3617
2378
|
}, proxy: !0 }]) });
|
|
3618
|
-
},
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
2379
|
+
}, Ve = [], Fe = /* @__PURE__ */ d(
|
|
2380
|
+
Le,
|
|
2381
|
+
He,
|
|
2382
|
+
Ve,
|
|
3622
2383
|
!1,
|
|
3623
2384
|
null,
|
|
3624
2385
|
null
|
|
3625
2386
|
);
|
|
3626
|
-
const
|
|
2387
|
+
const Be = Fe.exports, De = {
|
|
3627
2388
|
i18nOptions: {
|
|
3628
2389
|
namespaces: "personalMessage",
|
|
3629
2390
|
messages: {
|
|
@@ -3639,7 +2400,7 @@ const Dt = It.exports, Lt = {
|
|
|
3639
2400
|
},
|
|
3640
2401
|
name: "PremiumRestrictedPersonalMessage",
|
|
3641
2402
|
components: {
|
|
3642
|
-
PremiumRestrictedBase:
|
|
2403
|
+
PremiumRestrictedBase: g
|
|
3643
2404
|
},
|
|
3644
2405
|
props: {
|
|
3645
2406
|
onUpgrade: {
|
|
@@ -3648,18 +2409,18 @@ const Dt = It.exports, Lt = {
|
|
|
3648
2409
|
}
|
|
3649
2410
|
}
|
|
3650
2411
|
};
|
|
3651
|
-
var
|
|
3652
|
-
var
|
|
3653
|
-
return
|
|
3654
|
-
},
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
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,
|
|
3658
2419
|
!1,
|
|
3659
2420
|
null,
|
|
3660
2421
|
null
|
|
3661
2422
|
);
|
|
3662
|
-
const
|
|
2423
|
+
const Oe = Ae.exports, ze = {
|
|
3663
2424
|
i18nOptions: {
|
|
3664
2425
|
namespaces: "PremiumRestrictedEditDocumentLayout",
|
|
3665
2426
|
messages: {
|
|
@@ -3677,7 +2438,7 @@ const Ht = Ut.exports, Bt = {
|
|
|
3677
2438
|
},
|
|
3678
2439
|
name: "PremiumRestrictedSaveDocTemplate",
|
|
3679
2440
|
components: {
|
|
3680
|
-
PremiumRestrictedBase:
|
|
2441
|
+
PremiumRestrictedBase: g
|
|
3681
2442
|
},
|
|
3682
2443
|
props: {
|
|
3683
2444
|
onUpgrade: {
|
|
@@ -3686,20 +2447,20 @@ const Ht = Ut.exports, Bt = {
|
|
|
3686
2447
|
}
|
|
3687
2448
|
}
|
|
3688
2449
|
};
|
|
3689
|
-
var
|
|
3690
|
-
var
|
|
3691
|
-
return
|
|
3692
|
-
return [
|
|
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")) + " ")];
|
|
3693
2454
|
}, proxy: !0 }]) });
|
|
3694
|
-
},
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
2455
|
+
}, je = [], Ze = /* @__PURE__ */ d(
|
|
2456
|
+
ze,
|
|
2457
|
+
qe,
|
|
2458
|
+
je,
|
|
3698
2459
|
!1,
|
|
3699
2460
|
null,
|
|
3700
2461
|
null
|
|
3701
2462
|
);
|
|
3702
|
-
const
|
|
2463
|
+
const Ne = Ze.exports, Ye = {
|
|
3703
2464
|
i18nOptions: {
|
|
3704
2465
|
namespaces: "stats",
|
|
3705
2466
|
messages: {
|
|
@@ -3717,7 +2478,7 @@ const Nt = Ot.exports, zt = {
|
|
|
3717
2478
|
},
|
|
3718
2479
|
name: "PremiumRestrictedStats",
|
|
3719
2480
|
components: {
|
|
3720
|
-
PremiumRestrictedBase:
|
|
2481
|
+
PremiumRestrictedBase: g
|
|
3721
2482
|
},
|
|
3722
2483
|
props: {
|
|
3723
2484
|
onUpgrade: {
|
|
@@ -3726,20 +2487,20 @@ const Nt = Ot.exports, zt = {
|
|
|
3726
2487
|
}
|
|
3727
2488
|
}
|
|
3728
2489
|
};
|
|
3729
|
-
var
|
|
3730
|
-
var
|
|
3731
|
-
return
|
|
3732
|
-
return [
|
|
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")) + " ")];
|
|
3733
2494
|
}, proxy: !0 }]) });
|
|
3734
|
-
},
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
2495
|
+
}, Qe = [], Ge = /* @__PURE__ */ d(
|
|
2496
|
+
Ye,
|
|
2497
|
+
We,
|
|
2498
|
+
Qe,
|
|
3738
2499
|
!1,
|
|
3739
2500
|
null,
|
|
3740
2501
|
null
|
|
3741
2502
|
);
|
|
3742
|
-
const
|
|
2503
|
+
const Je = Ge.exports, Ke = {
|
|
3743
2504
|
i18nOptions: {
|
|
3744
2505
|
namespaces: "subTemplates",
|
|
3745
2506
|
messages: {
|
|
@@ -3755,7 +2516,7 @@ const Zt = jt.exports, Kt = {
|
|
|
3755
2516
|
},
|
|
3756
2517
|
name: "PremiumRestrictedTemplates",
|
|
3757
2518
|
components: {
|
|
3758
|
-
PremiumRestrictedBase:
|
|
2519
|
+
PremiumRestrictedBase: g
|
|
3759
2520
|
},
|
|
3760
2521
|
props: {
|
|
3761
2522
|
onUpgrade: {
|
|
@@ -3764,18 +2525,18 @@ const Zt = jt.exports, Kt = {
|
|
|
3764
2525
|
}
|
|
3765
2526
|
}
|
|
3766
2527
|
};
|
|
3767
|
-
var
|
|
3768
|
-
var
|
|
3769
|
-
return
|
|
3770
|
-
},
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
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,
|
|
3774
2535
|
!1,
|
|
3775
2536
|
null,
|
|
3776
2537
|
null
|
|
3777
2538
|
);
|
|
3778
|
-
const
|
|
2539
|
+
const rr = er.exports, ar = {
|
|
3779
2540
|
i18nOptions: {
|
|
3780
2541
|
namespaces: "PremiumRestrictedUseDocTemplates",
|
|
3781
2542
|
messages: {
|
|
@@ -3793,7 +2554,7 @@ const Qt = Xt.exports, Jt = {
|
|
|
3793
2554
|
},
|
|
3794
2555
|
name: "PremiumRestrictedUseDocTemplates",
|
|
3795
2556
|
components: {
|
|
3796
|
-
PremiumRestrictedBase:
|
|
2557
|
+
PremiumRestrictedBase: g
|
|
3797
2558
|
},
|
|
3798
2559
|
props: {
|
|
3799
2560
|
onUpgrade: {
|
|
@@ -3802,20 +2563,20 @@ const Qt = Xt.exports, Jt = {
|
|
|
3802
2563
|
}
|
|
3803
2564
|
}
|
|
3804
2565
|
};
|
|
3805
|
-
var
|
|
3806
|
-
var
|
|
3807
|
-
return
|
|
3808
|
-
return [
|
|
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")) + " ")];
|
|
3809
2570
|
}, proxy: !0 }]) });
|
|
3810
|
-
},
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
2571
|
+
}, ir = [], sr = /* @__PURE__ */ d(
|
|
2572
|
+
ar,
|
|
2573
|
+
nr,
|
|
2574
|
+
ir,
|
|
3814
2575
|
!1,
|
|
3815
2576
|
null,
|
|
3816
2577
|
null
|
|
3817
2578
|
);
|
|
3818
|
-
const
|
|
2579
|
+
const or = sr.exports, lr = {
|
|
3819
2580
|
i18nOptions: {
|
|
3820
2581
|
namespaces: "winProfile",
|
|
3821
2582
|
keyPrefix: "account.subscription.winProfile",
|
|
@@ -3834,7 +2595,7 @@ const an = nn.exports, rn = {
|
|
|
3834
2595
|
},
|
|
3835
2596
|
name: "PremiumRestrictedWinProfile",
|
|
3836
2597
|
components: {
|
|
3837
|
-
PremiumRestrictedBase:
|
|
2598
|
+
PremiumRestrictedBase: g
|
|
3838
2599
|
},
|
|
3839
2600
|
props: {
|
|
3840
2601
|
onUpgrade: {
|
|
@@ -3843,30 +2604,30 @@ const an = nn.exports, rn = {
|
|
|
3843
2604
|
}
|
|
3844
2605
|
}
|
|
3845
2606
|
};
|
|
3846
|
-
var
|
|
3847
|
-
var
|
|
3848
|
-
return
|
|
3849
|
-
},
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
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,
|
|
3853
2614
|
!1,
|
|
3854
2615
|
null,
|
|
3855
2616
|
null
|
|
3856
2617
|
);
|
|
3857
|
-
const
|
|
3858
|
-
winProfile:
|
|
3859
|
-
templates:
|
|
3860
|
-
documents:
|
|
3861
|
-
personalMessage:
|
|
3862
|
-
licenses:
|
|
3863
|
-
inviteCreators:
|
|
3864
|
-
stats:
|
|
3865
|
-
documentBlocks:
|
|
3866
|
-
bankIdAndSms:
|
|
3867
|
-
useDocTemplate:
|
|
3868
|
-
saveDocTemplate:
|
|
3869
|
-
},
|
|
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 = {
|
|
3870
2631
|
name: "IsPremiumPreStep",
|
|
3871
2632
|
inject: {
|
|
3872
2633
|
onUpgradeRequired: {
|
|
@@ -3878,24 +2639,24 @@ const ln = cn.exports, I = {
|
|
|
3878
2639
|
feature: {
|
|
3879
2640
|
type: String,
|
|
3880
2641
|
required: !0,
|
|
3881
|
-
validator: (
|
|
2642
|
+
validator: (r) => Object.keys(M).includes(r)
|
|
3882
2643
|
}
|
|
3883
2644
|
},
|
|
3884
2645
|
computed: {
|
|
3885
2646
|
modalName() {
|
|
3886
|
-
return
|
|
2647
|
+
return M[this.feature] ? M[this.feature] : (mt.error("Missing IsPremiumPreStep component name"), null);
|
|
3887
2648
|
}
|
|
3888
2649
|
},
|
|
3889
2650
|
methods: {
|
|
3890
|
-
onClick({ callback:
|
|
2651
|
+
onClick({ callback: r = null, data: t } = {}) {
|
|
3891
2652
|
if (typeof this.onUpgradeRequired == "function") {
|
|
3892
|
-
this.onUpgradeRequired({ feature: this.feature, data:
|
|
2653
|
+
this.onUpgradeRequired({ feature: this.feature, data: t });
|
|
3893
2654
|
return;
|
|
3894
2655
|
}
|
|
3895
2656
|
this.$modal.show(
|
|
3896
2657
|
this.modalName,
|
|
3897
2658
|
{
|
|
3898
|
-
...
|
|
2659
|
+
...r && { onUpgrade: r }
|
|
3899
2660
|
},
|
|
3900
2661
|
{
|
|
3901
2662
|
adaptive: !0,
|
|
@@ -3913,28 +2674,27 @@ const ln = cn.exports, I = {
|
|
|
3913
2674
|
onClick: this.onClick
|
|
3914
2675
|
}) : {};
|
|
3915
2676
|
}
|
|
3916
|
-
},
|
|
3917
|
-
var
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
2677
|
+
}, fr = null, hr = null;
|
|
2678
|
+
var gr = /* @__PURE__ */ d(
|
|
2679
|
+
pr,
|
|
2680
|
+
fr,
|
|
2681
|
+
hr,
|
|
3921
2682
|
!1,
|
|
3922
2683
|
null,
|
|
3923
2684
|
null
|
|
3924
2685
|
);
|
|
3925
|
-
const
|
|
2686
|
+
const yr = gr.exports, Tr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3926
2687
|
__proto__: null,
|
|
3927
|
-
CalloutLegacy:
|
|
3928
|
-
Checkout:
|
|
3929
|
-
IsPremium:
|
|
3930
|
-
IsPremiumPreStep:
|
|
3931
|
-
stripeMixin:
|
|
2688
|
+
CalloutLegacy: Z,
|
|
2689
|
+
Checkout: W,
|
|
2690
|
+
IsPremium: Q,
|
|
2691
|
+
IsPremiumPreStep: yr,
|
|
2692
|
+
stripeMixin: Y
|
|
3932
2693
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3933
2694
|
export {
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
j as s
|
|
2695
|
+
Pt as C,
|
|
2696
|
+
yr as I,
|
|
2697
|
+
Q as a,
|
|
2698
|
+
Tr as i,
|
|
2699
|
+
N as s
|
|
3940
2700
|
};
|