@kiva/kv-components 6.33.0 → 6.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +198 -194
- package/dist/vue/KvCardFrame.js +81 -0
- package/dist/vue/KvCheckoutReceipt.css +1 -0
- package/dist/vue/KvCheckoutReceipt.js +385 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2,203 +2,207 @@ import { default as r } from "./vue/KvAccordionItem.js";
|
|
|
2
2
|
import { default as a } from "./vue/KvActivityRow.js";
|
|
3
3
|
import { default as l } from "./vue/KvBorrowerImage.js";
|
|
4
4
|
import { default as d } from "./vue/KvButton.js";
|
|
5
|
-
import { default as p } from "./vue/
|
|
6
|
-
import { default as x } from "./vue/
|
|
7
|
-
import { default as K } from "./vue/
|
|
8
|
-
import { default as A } from "./vue/
|
|
9
|
-
import { default as
|
|
10
|
-
import {
|
|
11
|
-
import { default as
|
|
12
|
-
import { default as O } from "./vue/
|
|
13
|
-
import { default as S } from "./vue/
|
|
14
|
-
import { default as G } from "./vue/
|
|
15
|
-
import { default as P } from "./vue/
|
|
16
|
-
import { default as F } from "./vue/
|
|
17
|
-
import { default as B } from "./vue/
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as y } from "./vue/
|
|
20
|
-
import { default as w } from "./vue/
|
|
21
|
-
import { default as H } from "./vue/
|
|
22
|
-
import { default as z } from "./vue/
|
|
23
|
-
import { default as q } from "./vue/
|
|
24
|
-
import { default as X } from "./vue/
|
|
25
|
-
import { default as Z } from "./vue/
|
|
26
|
-
import {
|
|
27
|
-
import { default as
|
|
28
|
-
import {
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as xe } from "./vue/
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import { default as
|
|
34
|
-
import { default as Te } from "./vue/
|
|
35
|
-
import {
|
|
36
|
-
import { default as
|
|
37
|
-
import {
|
|
38
|
-
import { default as
|
|
39
|
-
import { default as Fe } from "./vue/
|
|
40
|
-
import { default as Be } from "./vue/
|
|
41
|
-
import { default as
|
|
42
|
-
import { default as ye } from "./vue/
|
|
43
|
-
import { default as we } from "./vue/
|
|
44
|
-
import { default as He } from "./vue/
|
|
45
|
-
import { default as ze } from "./vue/
|
|
46
|
-
import { default as qe } from "./vue/
|
|
47
|
-
import { default as Xe } from "./vue/
|
|
48
|
-
import { default as Ze } from "./vue/
|
|
49
|
-
import { default as eo } from "./vue/
|
|
50
|
-
import { default as ro } from "./vue/
|
|
51
|
-
import { default as ao } from "./vue/
|
|
52
|
-
import { default as lo } from "./vue/
|
|
53
|
-
import { default as mo } from "./vue/
|
|
54
|
-
import { default as uo } from "./vue/
|
|
55
|
-
import { default as no } from "./vue/
|
|
56
|
-
import { default as vo } from "./vue/
|
|
57
|
-
import { default as
|
|
58
|
-
import { default as _o } from "./vue/
|
|
59
|
-
import { default as No } from "./vue/
|
|
60
|
-
import { default as
|
|
61
|
-
import { default as Ro } from "./vue/
|
|
62
|
-
import { default as Mo } from "./vue/
|
|
63
|
-
import { default as Io } from "./vue/
|
|
64
|
-
import {
|
|
65
|
-
import { default as
|
|
66
|
-
import { default as
|
|
67
|
-
import { default as
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
5
|
+
import { default as p } from "./vue/KvCardFrame.js";
|
|
6
|
+
import { default as x } from "./vue/KvCarousel.js";
|
|
7
|
+
import { default as K } from "./vue/KvCartModal.js";
|
|
8
|
+
import { default as A } from "./vue/KvCartPill.js";
|
|
9
|
+
import { default as i } from "./vue/KvCheckbox.js";
|
|
10
|
+
import { default as L } from "./vue/KvCheckoutReceipt.js";
|
|
11
|
+
import { default as T } from "./vue/KvChip.js";
|
|
12
|
+
import { KV_CLASSIC_LOAN_CARD_FRAGMENT as E, KV_CLASSIC_LOAN_CARD_USER_FRAGMET as R, default as O } from "./vue/KvClassicLoanCard.js";
|
|
13
|
+
import { default as S } from "./vue/KvCommentsAdd.js";
|
|
14
|
+
import { default as G } from "./vue/KvCommentsContainer.js";
|
|
15
|
+
import { default as P } from "./vue/KvCommentsHeartButton.js";
|
|
16
|
+
import { default as F } from "./vue/KvCommentsList.js";
|
|
17
|
+
import { default as B } from "./vue/KvCommentsListItem.js";
|
|
18
|
+
import { default as D } from "./vue/KvCommentsReplyButton.js";
|
|
19
|
+
import { default as y } from "./vue/KvContentfulImg.js";
|
|
20
|
+
import { default as w } from "./vue/KvCountdownTimer.js";
|
|
21
|
+
import { default as H } from "./vue/KvExpandable.js";
|
|
22
|
+
import { default as z } from "./vue/KvExpandableQuestion.js";
|
|
23
|
+
import { default as q } from "./vue/KvFlag.js";
|
|
24
|
+
import { default as X } from "./vue/KvGrid.js";
|
|
25
|
+
import { default as Z } from "./vue/KvImpactDashboardHeader.js";
|
|
26
|
+
import { default as ee } from "./vue/KvInlineActivityCard.js";
|
|
27
|
+
import { default as re } from "./vue/KvInlineActivityFeed.js";
|
|
28
|
+
import { KV_INTRODUCTION_LOAN_CARD_FRAGMENT as ae, KV_INTRODUCTION_LOAN_CARD_USER_FRAGMENT as fe, default as le } from "./vue/KvIntroductionLoanCard.js";
|
|
29
|
+
import { default as de } from "./vue/KvLendAmountButton.js";
|
|
30
|
+
import { KV_LEND_CTA_FRAGMENT as pe, KV_LEND_CTA_USER_FRAGMENT as ue, default as xe } from "./vue/KvLendCta.js";
|
|
31
|
+
import { default as Ke } from "./vue/KvLightbox.js";
|
|
32
|
+
import { default as Ae } from "./vue/KvLineGraph.js";
|
|
33
|
+
import { KV_LOAN_ACTIVITIES_FRAGMENT as ie, default as _e } from "./vue/KvLoanActivities.js";
|
|
34
|
+
import { KV_LOAN_BOOKMARK_FRAGMENT as Ne, default as Te } from "./vue/KvLoanBookmark.js";
|
|
35
|
+
import { default as Ee } from "./vue/KvLoanCallouts.js";
|
|
36
|
+
import { default as Oe } from "./vue/KvLoanProgressGroup.js";
|
|
37
|
+
import { KV_LOAN_TAG_FRAGMENT as Se, default as Ie } from "./vue/KvLoanTag.js";
|
|
38
|
+
import { default as ge } from "./vue/KvLoanTeamPick.js";
|
|
39
|
+
import { KV_LOAN_USE_FRAGMENT as he, default as Fe } from "./vue/KvLoanUse.js";
|
|
40
|
+
import { default as Be } from "./vue/KvLoadingPlaceholder.js";
|
|
41
|
+
import { default as De } from "./vue/KvLoadingSpinner.js";
|
|
42
|
+
import { default as ye } from "./vue/KvMap.js";
|
|
43
|
+
import { default as we } from "./vue/KvMaterialIcon.js";
|
|
44
|
+
import { default as He } from "./vue/KvPageContainer.js";
|
|
45
|
+
import { default as ze } from "./vue/KvPagination.js";
|
|
46
|
+
import { default as qe } from "./vue/KvPieChart.js";
|
|
47
|
+
import { default as Xe } from "./vue/KvPopper.js";
|
|
48
|
+
import { default as Ze } from "./vue/KvProgressBar.js";
|
|
49
|
+
import { default as eo } from "./vue/KvRadio.js";
|
|
50
|
+
import { default as ro } from "./vue/KvSelect.js";
|
|
51
|
+
import { default as ao } from "./vue/KvSideSheet.js";
|
|
52
|
+
import { default as lo } from "./vue/KvSwitch.js";
|
|
53
|
+
import { default as mo } from "./vue/KvTab.js";
|
|
54
|
+
import { default as uo } from "./vue/KvTabPanel.js";
|
|
55
|
+
import { default as no } from "./vue/KvTabs.js";
|
|
56
|
+
import { default as vo } from "./vue/KvTextInput.js";
|
|
57
|
+
import { default as Co } from "./vue/KvTextLink.js";
|
|
58
|
+
import { default as _o } from "./vue/KvThemeProvider.js";
|
|
59
|
+
import { default as No } from "./vue/KvToast.js";
|
|
60
|
+
import { default as co } from "./vue/KvTooltip.js";
|
|
61
|
+
import { default as Ro } from "./vue/KvTreeMapChart.js";
|
|
62
|
+
import { default as Mo } from "./vue/KvUserAvatar.js";
|
|
63
|
+
import { default as Io } from "./vue/KvVerticalCarousel.js";
|
|
64
|
+
import { default as go } from "./vue/KvVotingCard.js";
|
|
65
|
+
import { default as ho } from "./vue/KvVotingCardV2.js";
|
|
66
|
+
import { KV_WIDE_LOAN_CARD_FRAGMENT as Vo, KV_WIDE_LOAN_CARD_USER_FRAGMENT as Bo, default as ko } from "./vue/KvWideLoanCard.js";
|
|
67
|
+
import { default as bo } from "./vue/KvAtbModal.js";
|
|
68
|
+
import { default as Uo } from "./vue/KvSecondaryNav.js";
|
|
69
|
+
import { default as Wo, Mash as Ho } from "./utils/Alea.js";
|
|
70
|
+
import { useAttrs as zo } from "./utils/attrs.js";
|
|
71
|
+
import { carouselUtil as qo } from "./utils/carousels.js";
|
|
72
|
+
import { collapse as Xo, expand as Yo } from "./utils/expander.js";
|
|
73
|
+
import { isLegacyPlaceholderAvatar as $o, randomizedUserAvatarClass as er } from "./utils/imageUtils.js";
|
|
74
|
+
import { LOAN_CALLOUTS_FRAGMENT as rr, LOAN_GEOCODE_FRAGMENT as tr, LOAN_PROGRESS_FRAGMENT as ar, loanCardComputedProperties as fr, loanCardMethods as lr } from "./utils/loanCard.js";
|
|
75
|
+
import { BALANCE_CAMPAIGN as dr, BASE_CAMPAIGN as mr, ERL_COOKIE_NAME as pr, NO_BALANCE_CAMPAIGN as ur, TOP_UP_CAMPAIGN as xr, getDropdownPriceArray as nr, getLendCtaSelectedOption as Kr, isBetween25And50 as vr, isLessThan25 as Ar } from "./utils/loanUtils.js";
|
|
76
|
+
import { animationCoordinator as ir, generateMapMarkers as _r, getCoordinatesBetween as Lr, getCountryColor as Nr, getLoansIntervals as Tr } from "./utils/mapUtils.js";
|
|
77
|
+
import { lockPrintSingleEl as Er, unlockPrintSingleEl as Rr } from "./utils/printing.js";
|
|
78
|
+
import { lockScroll as Mr, lockScrollSmallOnly as Sr, unlockScroll as Ir, unlockScrollSmallOnly as Gr } from "./utils/scrollLock.js";
|
|
79
|
+
import { buildTailwindClassName as Pr, headerNumberCase as hr, kebabCase as Fr, removeObjectProperty as Vr } from "./utils/themeUtils.js";
|
|
80
|
+
import { throttle as kr } from "./utils/throttle.js";
|
|
81
|
+
import { isTargetElement as br, offBodyTouchstart as yr, onBodyTouchstart as Ur } from "./utils/touchEvents.js";
|
|
82
|
+
import { getTreemap as Wr } from "./utils/treemap.js";
|
|
83
|
+
import { KvBlueskyIcon as jr } from "./assets/icons/bluesky.js";
|
|
82
84
|
export {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
85
|
+
Wo as Alea,
|
|
86
|
+
dr as BALANCE_CAMPAIGN,
|
|
87
|
+
mr as BASE_CAMPAIGN,
|
|
88
|
+
pr as ERL_COOKIE_NAME,
|
|
89
|
+
E as KV_CLASSIC_LOAN_CARD_FRAGMENT,
|
|
90
|
+
R as KV_CLASSIC_LOAN_CARD_USER_FRAGMET,
|
|
91
|
+
ae as KV_INTRODUCTION_LOAN_CARD_FRAGMENT,
|
|
92
|
+
fe as KV_INTRODUCTION_LOAN_CARD_USER_FRAGMENT,
|
|
93
|
+
pe as KV_LEND_CTA_FRAGMENT,
|
|
94
|
+
ue as KV_LEND_CTA_USER_FRAGMENT,
|
|
95
|
+
ie as KV_LOAN_ACTIVITIES_FRAGMENT,
|
|
96
|
+
Ne as KV_LOAN_BOOKMARK_FRAGMENT,
|
|
97
|
+
Se as KV_LOAN_TAG_FRAGMENT,
|
|
98
|
+
he as KV_LOAN_USE_FRAGMENT,
|
|
99
|
+
Vo as KV_WIDE_LOAN_CARD_FRAGMENT,
|
|
100
|
+
Bo as KV_WIDE_LOAN_CARD_USER_FRAGMENT,
|
|
99
101
|
r as KvAccordionItem,
|
|
100
102
|
a as KvActivityRow,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
+
bo as KvAtbModal,
|
|
104
|
+
jr as KvBlueskyIcon,
|
|
103
105
|
l as KvBorrowerImage,
|
|
104
106
|
d as KvButton,
|
|
105
|
-
p as
|
|
106
|
-
x as
|
|
107
|
-
K as
|
|
108
|
-
A as
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
O as
|
|
113
|
-
S as
|
|
114
|
-
G as
|
|
115
|
-
P as
|
|
116
|
-
F as
|
|
117
|
-
B as
|
|
118
|
-
|
|
119
|
-
y as
|
|
120
|
-
w as
|
|
121
|
-
H as
|
|
122
|
-
z as
|
|
123
|
-
q as
|
|
124
|
-
X as
|
|
125
|
-
Z as
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
xe as
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
Te as
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
ye as
|
|
143
|
-
we as
|
|
144
|
-
He as
|
|
145
|
-
ze as
|
|
146
|
-
qe as
|
|
147
|
-
Xe as
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
ro as
|
|
152
|
-
ao as
|
|
153
|
-
lo as
|
|
154
|
-
mo as
|
|
155
|
-
uo as
|
|
156
|
-
no as
|
|
157
|
-
vo as
|
|
158
|
-
|
|
159
|
-
_o as
|
|
160
|
-
No as
|
|
161
|
-
|
|
162
|
-
Ro as
|
|
163
|
-
Mo as
|
|
164
|
-
Io as
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
107
|
+
p as KvCardFrame,
|
|
108
|
+
x as KvCarousel,
|
|
109
|
+
K as KvCartModal,
|
|
110
|
+
A as KvCartPill,
|
|
111
|
+
i as KvCheckbox,
|
|
112
|
+
L as KvCheckoutReceipt,
|
|
113
|
+
T as KvChip,
|
|
114
|
+
O as KvClassicLoanCard,
|
|
115
|
+
S as KvCommentsAdd,
|
|
116
|
+
G as KvCommentsContainer,
|
|
117
|
+
P as KvCommentsHeartButton,
|
|
118
|
+
F as KvCommentsList,
|
|
119
|
+
B as KvCommentsListItem,
|
|
120
|
+
D as KvCommentsReplyButton,
|
|
121
|
+
y as KvContentfulImg,
|
|
122
|
+
w as KvCountdownTimer,
|
|
123
|
+
H as KvExpandable,
|
|
124
|
+
z as KvExpandableQuestion,
|
|
125
|
+
q as KvFlag,
|
|
126
|
+
X as KvGrid,
|
|
127
|
+
Z as KvImpactDashboardHeader,
|
|
128
|
+
ee as KvInlineActivityCard,
|
|
129
|
+
re as KvInlineActivityFeed,
|
|
130
|
+
le as KvIntroductionLoanCard,
|
|
131
|
+
de as KvLendAmountButton,
|
|
132
|
+
xe as KvLendCta,
|
|
133
|
+
Ke as KvLightbox,
|
|
134
|
+
Ae as KvLineGraph,
|
|
135
|
+
Be as KvLoadingPlaceholder,
|
|
136
|
+
De as KvLoadingSpinner,
|
|
137
|
+
_e as KvLoanActivities,
|
|
138
|
+
Te as KvLoanBookmark,
|
|
139
|
+
Ee as KvLoanCallouts,
|
|
140
|
+
Oe as KvLoanProgressGroup,
|
|
141
|
+
Ie as KvLoanTag,
|
|
142
|
+
ge as KvLoanTeamPick,
|
|
143
|
+
Fe as KvLoanUse,
|
|
144
|
+
ye as KvMap,
|
|
145
|
+
we as KvMaterialIcon,
|
|
146
|
+
He as KvPageContainer,
|
|
147
|
+
ze as KvPagination,
|
|
148
|
+
qe as KvPieChart,
|
|
149
|
+
Xe as KvPopper,
|
|
150
|
+
Ze as KvProgressBar,
|
|
151
|
+
eo as KvRadio,
|
|
152
|
+
Uo as KvSecondaryNav,
|
|
153
|
+
ro as KvSelect,
|
|
154
|
+
ao as KvSideSheet,
|
|
155
|
+
lo as KvSwitch,
|
|
156
|
+
mo as KvTab,
|
|
157
|
+
uo as KvTabPanel,
|
|
158
|
+
no as KvTabs,
|
|
159
|
+
vo as KvTextInput,
|
|
160
|
+
Co as KvTextLink,
|
|
161
|
+
_o as KvThemeProvider,
|
|
162
|
+
No as KvToast,
|
|
163
|
+
co as KvTooltip,
|
|
164
|
+
Ro as KvTreeMapChart,
|
|
165
|
+
Mo as KvUserAvatar,
|
|
166
|
+
Io as KvVerticalCarousel,
|
|
167
|
+
go as KvVotingCard,
|
|
168
|
+
ho as KvVotingCardV2,
|
|
169
|
+
ko as KvWideLoanCard,
|
|
170
|
+
rr as LOAN_CALLOUTS_FRAGMENT,
|
|
171
|
+
tr as LOAN_GEOCODE_FRAGMENT,
|
|
172
|
+
ar as LOAN_PROGRESS_FRAGMENT,
|
|
173
|
+
Ho as Mash,
|
|
174
|
+
ur as NO_BALANCE_CAMPAIGN,
|
|
175
|
+
xr as TOP_UP_CAMPAIGN,
|
|
176
|
+
ir as animationCoordinator,
|
|
177
|
+
Pr as buildTailwindClassName,
|
|
178
|
+
qo as carouselUtil,
|
|
179
|
+
Xo as collapse,
|
|
180
|
+
Yo as expand,
|
|
181
|
+
_r as generateMapMarkers,
|
|
182
|
+
Lr as getCoordinatesBetween,
|
|
183
|
+
Nr as getCountryColor,
|
|
184
|
+
nr as getDropdownPriceArray,
|
|
185
|
+
Kr as getLendCtaSelectedOption,
|
|
186
|
+
Tr as getLoansIntervals,
|
|
187
|
+
Wr as getTreemap,
|
|
188
|
+
hr as headerNumberCase,
|
|
189
|
+
vr as isBetween25And50,
|
|
190
|
+
$o as isLegacyPlaceholderAvatar,
|
|
191
|
+
Ar as isLessThan25,
|
|
192
|
+
br as isTargetElement,
|
|
193
|
+
Fr as kebabCase,
|
|
194
|
+
fr as loanCardComputedProperties,
|
|
195
|
+
lr as loanCardMethods,
|
|
196
|
+
Er as lockPrintSingleEl,
|
|
197
|
+
Mr as lockScroll,
|
|
198
|
+
Sr as lockScrollSmallOnly,
|
|
199
|
+
yr as offBodyTouchstart,
|
|
200
|
+
Ur as onBodyTouchstart,
|
|
201
|
+
er as randomizedUserAvatarClass,
|
|
202
|
+
Vr as removeObjectProperty,
|
|
203
|
+
kr as throttle,
|
|
204
|
+
Rr as unlockPrintSingleEl,
|
|
205
|
+
Ir as unlockScroll,
|
|
206
|
+
Gr as unlockScrollSmallOnly,
|
|
207
|
+
zo as useAttrs
|
|
204
208
|
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { computed as n, resolveComponent as d, openBlock as l, createBlock as m, withCtx as i, createElementVNode as h, normalizeClass as u, renderSlot as c } from "vue";
|
|
2
|
+
import { defaultTheme as r, stoneDarkTheme as g, stoneLightTheme as f, marigoldLightTheme as p, greenLightTheme as v, greenDarkTheme as C } from "@kiva/kv-tokens";
|
|
3
|
+
import k from "./KvThemeProvider.js";
|
|
4
|
+
import _ from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const w = {
|
|
6
|
+
components: {
|
|
7
|
+
KvThemeProvider: k
|
|
8
|
+
},
|
|
9
|
+
props: {
|
|
10
|
+
bgColorClass: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: "tw-bg-primary"
|
|
13
|
+
},
|
|
14
|
+
borderClass: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: ""
|
|
17
|
+
},
|
|
18
|
+
radiusClass: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: "tw-rounded"
|
|
21
|
+
},
|
|
22
|
+
shadowClass: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: "tw-shadow-lg"
|
|
25
|
+
},
|
|
26
|
+
theme: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: "default",
|
|
29
|
+
validator(e) {
|
|
30
|
+
return [
|
|
31
|
+
"default",
|
|
32
|
+
"greenLight",
|
|
33
|
+
"greenDark",
|
|
34
|
+
"marigoldLight",
|
|
35
|
+
"stoneLight",
|
|
36
|
+
"stoneDark"
|
|
37
|
+
].includes(e);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
setup(e) {
|
|
42
|
+
return { themeStyle: n(() => {
|
|
43
|
+
switch (e.theme) {
|
|
44
|
+
case "default":
|
|
45
|
+
return r;
|
|
46
|
+
case "greenDark":
|
|
47
|
+
return C;
|
|
48
|
+
case "greenLight":
|
|
49
|
+
return v;
|
|
50
|
+
case "marigoldLight":
|
|
51
|
+
return p;
|
|
52
|
+
case "stoneLight":
|
|
53
|
+
return f;
|
|
54
|
+
case "stoneDark":
|
|
55
|
+
return g;
|
|
56
|
+
default:
|
|
57
|
+
return r;
|
|
58
|
+
}
|
|
59
|
+
}) };
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
function y(e, a, t, o, L, S) {
|
|
63
|
+
const s = d("kv-theme-provider");
|
|
64
|
+
return l(), m(s, {
|
|
65
|
+
theme: o.themeStyle,
|
|
66
|
+
class: "kv-card-frame-theme-provider"
|
|
67
|
+
}, {
|
|
68
|
+
default: i(() => [
|
|
69
|
+
h("div", {
|
|
70
|
+
class: u(["kv-card-frame tw-overflow-hidden", t.bgColorClass, t.radiusClass, t.shadowClass, t.borderClass])
|
|
71
|
+
}, [
|
|
72
|
+
c(e.$slots, "default")
|
|
73
|
+
], 2)
|
|
74
|
+
]),
|
|
75
|
+
_: 3
|
|
76
|
+
}, 8, ["theme"]);
|
|
77
|
+
}
|
|
78
|
+
const B = /* @__PURE__ */ _(w, [["render", y]]);
|
|
79
|
+
export {
|
|
80
|
+
B as default
|
|
81
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.section[data-v-062ccdb1]{border-bottom-width:.0625rem;border-top-width:0px;--tw-border-opacity: 1;border-color:rgba(var(--border-tertiary),var(--tw-border-opacity, 1));padding:.5rem;display:block;overflow:hidden}@media print{.section[data-v-062ccdb1]{page-break-inside:avoid}}.section--lender-info[data-v-062ccdb1]{padding-top:0}.section--print[data-v-062ccdb1]{border-bottom:0}.checkout-receipt__headline[data-v-062ccdb1]{text-align:center;margin-bottom:1.5rem}.checkout-receipt__item-list[data-v-062ccdb1]{list-style:none;margin:0;width:100%}.loan__name[data-v-062ccdb1]{margin-bottom:.5rem}.loan__name--inline[data-v-062ccdb1]{display:inline-block}.loan__amount[data-v-062ccdb1]{text-align:right}.total[data-v-062ccdb1]{display:flex;align-items:baseline}.total__header[data-v-062ccdb1],.total__amount[data-v-062ccdb1]{text-align:right;flex:1}.total__amount[data-v-062ccdb1]{flex-grow:.33}.payments[data-v-062ccdb1]{border-bottom:none}.payments__type[data-v-062ccdb1]{display:flex;text-align:right}.payments__type-title[data-v-062ccdb1],.payments__type-amount[data-v-062ccdb1]{flex:1}.print[data-v-062ccdb1]{margin:0 auto}
|
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
import { format as b } from "date-fns";
|
|
2
|
+
import { mdiInformation as T, mdiPrinter as g } from "@mdi/js";
|
|
3
|
+
import { computed as v, resolveComponent as u, resolveDirective as x, openBlock as n, createElementBlock as s, createElementVNode as e, toDisplayString as i, createCommentVNode as r, Fragment as p, renderList as y, createTextVNode as l, createVNode as m, withCtx as h, withDirectives as K } from "vue";
|
|
4
|
+
import j from "./KvButton.js";
|
|
5
|
+
import O from "./KvTooltip.js";
|
|
6
|
+
import I from "./KvMaterialIcon.js";
|
|
7
|
+
import "./KvCheckoutReceipt.css";
|
|
8
|
+
import D from "../_virtual/_plugin-vue_export-helper.js";
|
|
9
|
+
const F = (d = Date.now()) => {
|
|
10
|
+
const t = new Date(d);
|
|
11
|
+
return new Date(
|
|
12
|
+
t.getUTCFullYear(),
|
|
13
|
+
t.getUTCMonth(),
|
|
14
|
+
t.getUTCDate(),
|
|
15
|
+
t.getUTCHours(),
|
|
16
|
+
t.getUTCMinutes(),
|
|
17
|
+
t.getUTCSeconds()
|
|
18
|
+
);
|
|
19
|
+
}, A = {
|
|
20
|
+
name: "KvCheckoutReceipt",
|
|
21
|
+
components: {
|
|
22
|
+
KvButton: j,
|
|
23
|
+
KvTooltip: O,
|
|
24
|
+
KvMaterialIcon: I
|
|
25
|
+
},
|
|
26
|
+
props: {
|
|
27
|
+
lender: {
|
|
28
|
+
type: Object,
|
|
29
|
+
required: !0
|
|
30
|
+
},
|
|
31
|
+
receipt: {
|
|
32
|
+
type: Object,
|
|
33
|
+
required: !0
|
|
34
|
+
},
|
|
35
|
+
disableRedirects: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: !1
|
|
38
|
+
},
|
|
39
|
+
enableKivaCardTracking: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
default: !1
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
setup() {
|
|
45
|
+
const d = v(() => T), t = v(() => g);
|
|
46
|
+
return {
|
|
47
|
+
infoIcon: d,
|
|
48
|
+
printIcon: t
|
|
49
|
+
};
|
|
50
|
+
},
|
|
51
|
+
computed: {
|
|
52
|
+
formattedTransactionTime() {
|
|
53
|
+
return `${b(F(this.receipt.transactionTime), "MMMM dd, yyyy h:mm a")} GMT`;
|
|
54
|
+
},
|
|
55
|
+
loans() {
|
|
56
|
+
return this.receiptValues.length ? this.receipt.items.values.filter((d) => d.basketItemType === "loan_reservation") : [];
|
|
57
|
+
},
|
|
58
|
+
kivaCards() {
|
|
59
|
+
return this.receiptValues.length ? this.receipt.items.values.filter((d) => d.basketItemType === "kiva_card") : [];
|
|
60
|
+
},
|
|
61
|
+
printableKivaCards() {
|
|
62
|
+
return this.kivaCards.length ? this.kivaCards.filter((d) => d.kivaCardObject.deliveryType === "print") : [];
|
|
63
|
+
},
|
|
64
|
+
donations() {
|
|
65
|
+
return this.receipt.items.values.filter((d) => d.basketItemType === "donation");
|
|
66
|
+
},
|
|
67
|
+
receiptValues() {
|
|
68
|
+
var d, t;
|
|
69
|
+
return ((t = (d = this.receipt) == null ? void 0 : d.items) == null ? void 0 : t.values) ?? [];
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
methods: {
|
|
73
|
+
printReceipt() {
|
|
74
|
+
typeof window < "u" && (this.enableKivaCardTracking && this.$kvTrackEvent("post-checkout", "click", "print-receipt-order-confirmation drawer"), window.print());
|
|
75
|
+
},
|
|
76
|
+
printDonationInformation() {
|
|
77
|
+
this.enableKivaCardTracking && this.$kvTrackEvent("post-checkout", "click", "print-donation-information drawer");
|
|
78
|
+
},
|
|
79
|
+
printKivaCard() {
|
|
80
|
+
this.enableKivaCardTracking && this.$kvTrackEvent("post-checkout", "click", "kiva-card-view-pdf-order-confirmation drawer");
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}, U = { class: "checkout-receipt" }, M = { class: "checkout-receipt__wrapper tw-bg-primary tw-p-4 tw-rounded-sm tw-border tw-border-tertiary" }, N = {
|
|
84
|
+
"data-testid": "lender-info",
|
|
85
|
+
class: "section section--lender-info"
|
|
86
|
+
}, P = { class: "data-hj-suppress" }, R = { class: "data-hj-suppress" }, V = {
|
|
87
|
+
key: 0,
|
|
88
|
+
"data-testid": "print-kcard-msg",
|
|
89
|
+
class: "section tw-text-center print:!tw-hidden"
|
|
90
|
+
}, E = { class: "checkout-receipt__item-list" }, B = {
|
|
91
|
+
"data-testid": "loan",
|
|
92
|
+
class: "loan"
|
|
93
|
+
}, q = {
|
|
94
|
+
class: "loan__name data-hj-suppress",
|
|
95
|
+
"data-testid": "loan-name"
|
|
96
|
+
}, S = ["href"], Y = { class: "tw-text-small" }, z = {
|
|
97
|
+
class: "tw-text-secondary",
|
|
98
|
+
"data-testid": "loan-country"
|
|
99
|
+
}, G = {
|
|
100
|
+
key: 0,
|
|
101
|
+
"data-testid": "loan-use"
|
|
102
|
+
}, H = {
|
|
103
|
+
class: "loan__amount tw-text-h3",
|
|
104
|
+
"data-testid": "loan-amount"
|
|
105
|
+
}, L = {
|
|
106
|
+
"data-testid": "kcard",
|
|
107
|
+
class: "loan kcard"
|
|
108
|
+
}, W = {
|
|
109
|
+
class: "loan__details data-hj-suppress",
|
|
110
|
+
"data-testid": "kcard-details"
|
|
111
|
+
}, J = {
|
|
112
|
+
key: 0,
|
|
113
|
+
"data-testid": "kcard-details",
|
|
114
|
+
class: "loan__details data-hj-suppress"
|
|
115
|
+
}, Q = {
|
|
116
|
+
class: "loan__details data-hj-suppress",
|
|
117
|
+
"data-testid": "kcard-details"
|
|
118
|
+
}, X = {
|
|
119
|
+
class: "loan__amount tw-text-h3",
|
|
120
|
+
"data-testid": "kcard-amount"
|
|
121
|
+
}, Z = {
|
|
122
|
+
key: 0,
|
|
123
|
+
"data-testid": "kcard-portfolio",
|
|
124
|
+
class: "section tw-text-center print:!tw-hidden"
|
|
125
|
+
}, $ = { href: "/portfolio/kiva-cards" }, tt = { class: "checkout-receipt__item-list" }, et = { class: "section" }, at = {
|
|
126
|
+
class: "loan",
|
|
127
|
+
"data-testid": "donation"
|
|
128
|
+
}, it = {
|
|
129
|
+
class: "loan__amount tw-text-h3",
|
|
130
|
+
"data-testid": "donation-amount"
|
|
131
|
+
}, nt = {
|
|
132
|
+
"data-testid": "receipt-total",
|
|
133
|
+
class: "section total"
|
|
134
|
+
}, st = {
|
|
135
|
+
class: "total__amount tw-text-h3",
|
|
136
|
+
"data-testid": "total-amount"
|
|
137
|
+
}, ot = { class: "section payments" }, rt = { class: "payments__list" }, dt = {
|
|
138
|
+
key: 0,
|
|
139
|
+
"data-testid": "payment-type-kcard",
|
|
140
|
+
class: "total"
|
|
141
|
+
}, lt = {
|
|
142
|
+
class: "total__amount tw-text-h3",
|
|
143
|
+
"data-testid": "kcard-payment-amount"
|
|
144
|
+
}, ct = {
|
|
145
|
+
key: 1,
|
|
146
|
+
"data-testid": "payment-type-free-trial",
|
|
147
|
+
class: "total"
|
|
148
|
+
}, pt = {
|
|
149
|
+
key: 2,
|
|
150
|
+
"data-testid": "payment-type-free-credit",
|
|
151
|
+
class: "total"
|
|
152
|
+
}, mt = {
|
|
153
|
+
class: "total__amount tw-text-h3",
|
|
154
|
+
"data-testid": "free-credit-payment-amount"
|
|
155
|
+
}, ut = {
|
|
156
|
+
key: 3,
|
|
157
|
+
"data-testid": "payment-type-kiva-credit-added",
|
|
158
|
+
class: "total"
|
|
159
|
+
}, kt = {
|
|
160
|
+
class: "total__amount tw-text-h3",
|
|
161
|
+
"data-testid": "kiva-credit-added-payment-amount"
|
|
162
|
+
}, _t = {
|
|
163
|
+
key: 4,
|
|
164
|
+
"data-testid": "payment-kiva-credit-used",
|
|
165
|
+
class: "total"
|
|
166
|
+
}, vt = {
|
|
167
|
+
class: "total__amount tw-text-h3",
|
|
168
|
+
"data-testid": "kiva-credit-use-payment-amount"
|
|
169
|
+
}, yt = {
|
|
170
|
+
key: 5,
|
|
171
|
+
"data-testid": "payment-type-amount-charged",
|
|
172
|
+
class: "total"
|
|
173
|
+
}, ht = {
|
|
174
|
+
class: "total__amount tw-text-h3",
|
|
175
|
+
"data-testid": "amount-charged-payment-amount"
|
|
176
|
+
}, ft = { class: "section section--print print:!tw-hidden" };
|
|
177
|
+
function Ct(d, t, o, k, wt, c) {
|
|
178
|
+
const _ = u("kv-material-icon"), f = u("kv-tooltip"), C = u("kv-button"), w = x("kv-track-event");
|
|
179
|
+
return n(), s("div", U, [
|
|
180
|
+
t[25] || (t[25] = e("h2", { class: "checkout-receipt__headline" }, " Order Confirmation ", -1)),
|
|
181
|
+
e("div", M, [
|
|
182
|
+
e("section", N, [
|
|
183
|
+
e("div", null, i(c.formattedTransactionTime), 1),
|
|
184
|
+
e("div", P, i(o.lender.firstName) + " " + i(o.lender.lastName), 1),
|
|
185
|
+
e("div", R, i(o.lender.email), 1)
|
|
186
|
+
]),
|
|
187
|
+
e("section", null, [
|
|
188
|
+
c.printableKivaCards.length > 0 ? (n(), s("div", V, [
|
|
189
|
+
e("h2", null, "Print your Kiva " + i(c.printableKivaCards.length > 1 ? "Cards" : "Card"), 1),
|
|
190
|
+
e("p", null, " The print-it-yourself Kiva " + i(c.printableKivaCards.length > 1 ? "Cards" : "Card") + " you ordered can be printed right now by clicking on the print " + i(c.printableKivaCards.length > 1 ? "buttons" : "button") + " in the receipt below. Or, you can print a copy anytime directly from your email receipt. ", 1)
|
|
191
|
+
])) : r("", !0),
|
|
192
|
+
e("ul", E, [
|
|
193
|
+
(n(!0), s(p, null, y(c.loans, (a) => (n(), s("li", {
|
|
194
|
+
key: a.id,
|
|
195
|
+
"data-testid": "receipt-item-loan",
|
|
196
|
+
class: "section"
|
|
197
|
+
}, [
|
|
198
|
+
e("div", B, [
|
|
199
|
+
e("h3", q, [
|
|
200
|
+
o.disableRedirects ? (n(), s(p, { key: 0 }, [
|
|
201
|
+
l(i(a.loan.name), 1)
|
|
202
|
+
], 64)) : (n(), s("a", {
|
|
203
|
+
key: 1,
|
|
204
|
+
href: `/lend/${a.id}`
|
|
205
|
+
}, i(a.loan.name), 9, S))
|
|
206
|
+
]),
|
|
207
|
+
e("div", Y, [
|
|
208
|
+
e("p", z, [
|
|
209
|
+
a.loan.geocode && a.loan.geocode.city ? (n(), s(p, { key: 0 }, [
|
|
210
|
+
l(i(a.loan.geocode.city) + ", ", 1)
|
|
211
|
+
], 64)) : r("", !0),
|
|
212
|
+
a.loan.geocode && a.loan.geocode.country ? (n(), s(p, { key: 1 }, [
|
|
213
|
+
l(i(a.loan.geocode.country.name), 1)
|
|
214
|
+
], 64)) : r("", !0)
|
|
215
|
+
]),
|
|
216
|
+
a.loan.use ? (n(), s("p", G, " A loan helps " + i(a.loan.use), 1)) : r("", !0)
|
|
217
|
+
]),
|
|
218
|
+
e("div", H, " $" + i(a.price), 1)
|
|
219
|
+
])
|
|
220
|
+
]))), 128)),
|
|
221
|
+
(n(!0), s(p, null, y(c.kivaCards, (a) => (n(), s("li", {
|
|
222
|
+
key: a.id,
|
|
223
|
+
"data-testid": "receipt-item-kcard",
|
|
224
|
+
class: "section"
|
|
225
|
+
}, [
|
|
226
|
+
e("div", L, [
|
|
227
|
+
a.kivaCardObject.deliveryType === "print" ? (n(), s(p, { key: 0 }, [
|
|
228
|
+
e("div", null, [
|
|
229
|
+
t[3] || (t[3] = e("h3", {
|
|
230
|
+
class: "loan__name loan__name--inline",
|
|
231
|
+
"data-testid": "kcard-type-print"
|
|
232
|
+
}, " Print-it-yourself Kiva Card ", -1)),
|
|
233
|
+
m(_, {
|
|
234
|
+
id: `print-card-${a.id}`,
|
|
235
|
+
icon: k.infoIcon,
|
|
236
|
+
"data-testid": "kcard-tool-tip-control",
|
|
237
|
+
name: "question",
|
|
238
|
+
class: "tw-fill-current tw-text-tertiary tw-h-2.5 tw-w-2.5 tw-ml-0.5"
|
|
239
|
+
}, null, 8, ["id", "icon"]),
|
|
240
|
+
m(f, {
|
|
241
|
+
"data-testid": "kcard-tool-tip-text",
|
|
242
|
+
controller: `print-card-${a.id}`,
|
|
243
|
+
theme: "mint"
|
|
244
|
+
}, {
|
|
245
|
+
default: h(() => t[2] || (t[2] = [
|
|
246
|
+
l(" You can print this card now. We'll also send it to you in an email so you can print it later. ")
|
|
247
|
+
])),
|
|
248
|
+
_: 2
|
|
249
|
+
}, 1032, ["controller"])
|
|
250
|
+
]),
|
|
251
|
+
m(C, {
|
|
252
|
+
"data-testid": "kcard-print-button",
|
|
253
|
+
class: "tw-mb-2 print:!tw-hidden",
|
|
254
|
+
target: "_blank",
|
|
255
|
+
href: `/gifts/kiva-cards/print?giftCode=${a.kivaCardObject.redemptionCode}`,
|
|
256
|
+
onClick: c.printKivaCard
|
|
257
|
+
}, {
|
|
258
|
+
default: h(() => t[4] || (t[4] = [
|
|
259
|
+
l(" Print Kiva Card ")
|
|
260
|
+
])),
|
|
261
|
+
_: 2
|
|
262
|
+
}, 1032, ["href", "onClick"])
|
|
263
|
+
], 64)) : a.kivaCardObject.deliveryType === "postal" ? (n(), s(p, { key: 1 }, [
|
|
264
|
+
t[8] || (t[8] = e("h3", {
|
|
265
|
+
class: "loan__name",
|
|
266
|
+
"data-testid": "kcard-type-postal"
|
|
267
|
+
}, " Postal delivery Kiva Card ", -1)),
|
|
268
|
+
e("div", W, [
|
|
269
|
+
l(" For: " + i(a.kivaCardObject.mailingInfo.firstName) + " " + i(a.kivaCardObject.mailingInfo.lastName), 1),
|
|
270
|
+
t[6] || (t[6] = e("br", null, null, -1)),
|
|
271
|
+
l(" " + i(a.kivaCardObject.mailingInfo.address), 1),
|
|
272
|
+
t[7] || (t[7] = e("br", null, null, -1)),
|
|
273
|
+
a.kivaCardObject.mailingInfo.address2 ? (n(), s(p, { key: 0 }, [
|
|
274
|
+
l(i(a.kivaCardObject.mailingInfo.address2), 1),
|
|
275
|
+
t[5] || (t[5] = e("br", null, null, -1))
|
|
276
|
+
], 64)) : r("", !0),
|
|
277
|
+
l(" " + i(a.kivaCardObject.mailingInfo.city) + ", " + i(a.kivaCardObject.mailingInfo.state) + " " + i(a.kivaCardObject.mailingInfo.zip), 1)
|
|
278
|
+
])
|
|
279
|
+
], 64)) : a.kivaCardObject.deliveryType === "lender" ? (n(), s(p, { key: 2 }, [
|
|
280
|
+
t[9] || (t[9] = e("h3", {
|
|
281
|
+
class: "loan__name",
|
|
282
|
+
"data-testid": "kcard-type-lender"
|
|
283
|
+
}, " Kiva Card ", -1)),
|
|
284
|
+
a.kivaCardObject.recipient.name ? (n(), s("div", J, " For: " + i(a.kivaCardObject.recipient.name), 1)) : r("", !0)
|
|
285
|
+
], 64)) : a.kivaCardObject.deliveryType === "email" ? (n(), s(p, { key: 3 }, [
|
|
286
|
+
t[11] || (t[11] = e("h3", {
|
|
287
|
+
class: "loan__name",
|
|
288
|
+
"data-testid": "kcard-type-email"
|
|
289
|
+
}, " Email delivery Kiva Card ", -1)),
|
|
290
|
+
e("div", Q, [
|
|
291
|
+
t[10] || (t[10] = l(" For: ")),
|
|
292
|
+
a.kivaCardObject.recipient.name ? (n(), s(p, { key: 0 }, [
|
|
293
|
+
l(i(a.kivaCardObject.recipient.name) + " – ", 1)
|
|
294
|
+
], 64)) : r("", !0),
|
|
295
|
+
l(" " + i(a.kivaCardObject.recipient.email), 1)
|
|
296
|
+
])
|
|
297
|
+
], 64)) : r("", !0),
|
|
298
|
+
e("div", X, " $" + i(a.price), 1)
|
|
299
|
+
])
|
|
300
|
+
]))), 128)),
|
|
301
|
+
c.kivaCards.length > 0 ? (n(), s("li", Z, [
|
|
302
|
+
t[13] || (t[13] = l(" For more details about all your Kiva Card purchases, please visit your ")),
|
|
303
|
+
K((n(), s("a", $, t[12] || (t[12] = [
|
|
304
|
+
l(" Kiva portfolio ")
|
|
305
|
+
]))), [
|
|
306
|
+
[w, ["Thanks", "click", "kiva-card-portfolio"]]
|
|
307
|
+
]),
|
|
308
|
+
t[14] || (t[14] = l(". "))
|
|
309
|
+
])) : r("", !0)
|
|
310
|
+
])
|
|
311
|
+
]),
|
|
312
|
+
e("section", null, [
|
|
313
|
+
e("ul", tt, [
|
|
314
|
+
e("li", et, [
|
|
315
|
+
e("div", at, [
|
|
316
|
+
t[15] || (t[15] = e("h3", { class: "loan__name" }, " Donation to Kiva ", -1)),
|
|
317
|
+
o.receipt.totals.donationTotal > 0 ? (n(), s("a", {
|
|
318
|
+
key: 0,
|
|
319
|
+
"data-testid": "print-donation-information",
|
|
320
|
+
class: "smallest print:tw-hidden",
|
|
321
|
+
href: "/portfolio/donations",
|
|
322
|
+
onClick: t[0] || (t[0] = (...a) => c.printDonationInformation && c.printDonationInformation(...a))
|
|
323
|
+
}, " Print Donation Information ")) : r("", !0),
|
|
324
|
+
e("div", it, " $" + i(o.receipt.totals.donationTotal), 1)
|
|
325
|
+
])
|
|
326
|
+
]),
|
|
327
|
+
e("li", nt, [
|
|
328
|
+
t[16] || (t[16] = e("h3", { class: "total__header tw-text-h3" }, " Total: ", -1)),
|
|
329
|
+
e("span", st, "$" + i(o.receipt.totals.itemTotal), 1)
|
|
330
|
+
])
|
|
331
|
+
])
|
|
332
|
+
]),
|
|
333
|
+
e("section", ot, [
|
|
334
|
+
t[23] || (t[23] = e("h3", { class: "tw-text-secondary" }, " Payments ", -1)),
|
|
335
|
+
e("ul", rt, [
|
|
336
|
+
o.receipt.totals.redemptionCodeAppliedTotal > 0 ? (n(), s("li", dt, [
|
|
337
|
+
t[17] || (t[17] = e("span", { class: "total__header tw-text-h3" }, "Kiva Card:", -1)),
|
|
338
|
+
e("span", lt, " $" + i(o.receipt.totals.redemptionCodeAppliedTotal), 1)
|
|
339
|
+
])) : r("", !0),
|
|
340
|
+
o.receipt.totals.freeTrialAppliedTotal > 0 ? (n(), s("li", ct, t[18] || (t[18] = [
|
|
341
|
+
e("span", { class: "total__header tw-text-h3" }, "Free Trial:", -1),
|
|
342
|
+
e("span", {
|
|
343
|
+
class: "total__amount tw-text-h3",
|
|
344
|
+
"data-testid": "free-trial-payment-amount"
|
|
345
|
+
}, "Free!", -1)
|
|
346
|
+
]))) : r("", !0),
|
|
347
|
+
o.receipt.totals.bonusAppliedTotal > 0 ? (n(), s("li", pt, [
|
|
348
|
+
t[19] || (t[19] = e("span", { class: "total__header tw-text-h3" }, "Free credit:", -1)),
|
|
349
|
+
e("span", mt, i(o.receipt.totals.bonusAppliedTotal), 1)
|
|
350
|
+
])) : r("", !0),
|
|
351
|
+
o.receipt.totals.depositTotals.kivaCreditAdded > 0 ? (n(), s("li", ut, [
|
|
352
|
+
t[20] || (t[20] = e("span", { class: "total__header tw-text-h3" }, "Kiva credit added:", -1)),
|
|
353
|
+
e("span", kt, " $" + i(o.receipt.totals.depositTotals.kivaCreditAdded), 1)
|
|
354
|
+
])) : r("", !0),
|
|
355
|
+
o.receipt.totals.depositTotals.kivaCreditUsed > 0 ? (n(), s("li", _t, [
|
|
356
|
+
t[21] || (t[21] = e("span", { class: "total__header tw-text-h3" }, "Kiva credit:", -1)),
|
|
357
|
+
e("span", vt, " $" + i(o.receipt.totals.depositTotals.kivaCreditUsed), 1)
|
|
358
|
+
])) : r("", !0),
|
|
359
|
+
parseFloat(o.receipt.totals.depositTotals.depositTotal) > 0 ? (n(), s("li", yt, [
|
|
360
|
+
t[22] || (t[22] = e("span", { class: "total__header tw-text-h3" }, "Amount charged:", -1)),
|
|
361
|
+
e("span", ht, " $" + i(o.receipt.totals.depositTotals.depositTotal), 1)
|
|
362
|
+
])) : r("", !0)
|
|
363
|
+
])
|
|
364
|
+
]),
|
|
365
|
+
e("section", ft, [
|
|
366
|
+
e("button", {
|
|
367
|
+
"data-testid": "print-receipt",
|
|
368
|
+
class: "print tw-text-link tw-flex tw-items-center tw-gap-1",
|
|
369
|
+
onClick: t[1] || (t[1] = (...a) => c.printReceipt && c.printReceipt(...a))
|
|
370
|
+
}, [
|
|
371
|
+
m(_, {
|
|
372
|
+
icon: k.printIcon,
|
|
373
|
+
name: "print",
|
|
374
|
+
class: "tw-h-2.5 tw-w-2.5 tw-ml-0.5"
|
|
375
|
+
}, null, 8, ["icon"]),
|
|
376
|
+
t[24] || (t[24] = e("span", null, "Print this receipt", -1))
|
|
377
|
+
])
|
|
378
|
+
])
|
|
379
|
+
])
|
|
380
|
+
]);
|
|
381
|
+
}
|
|
382
|
+
const Dt = /* @__PURE__ */ D(A, [["render", Ct], ["__scopeId", "data-v-062ccdb1"]]);
|
|
383
|
+
export {
|
|
384
|
+
Dt as default
|
|
385
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.35.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -111,5 +111,5 @@
|
|
|
111
111
|
"embla-carousel-fade",
|
|
112
112
|
"popper.js"
|
|
113
113
|
],
|
|
114
|
-
"gitHead": "
|
|
114
|
+
"gitHead": "cb98ed3cd472ec7953b24de8da1ff9bc03495717"
|
|
115
115
|
}
|