@kiva/kv-components 6.32.0 → 6.34.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 CHANGED
@@ -1,4 +1,4 @@
1
- import { default as r } from "./vue/KvAccordionItem.js";
1
+ import { default as t } 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";
@@ -6,199 +6,201 @@ import { default as p } from "./vue/KvCarousel.js";
6
6
  import { default as x } from "./vue/KvCartModal.js";
7
7
  import { default as K } from "./vue/KvCartPill.js";
8
8
  import { default as A } from "./vue/KvCheckbox.js";
9
- import { default as C } from "./vue/KvChip.js";
10
- import { KV_CLASSIC_LOAN_CARD_FRAGMENT as L, KV_CLASSIC_LOAN_CARD_USER_FRAGMET as N, default as T } from "./vue/KvClassicLoanCard.js";
11
- import { default as c } from "./vue/KvCommentsAdd.js";
12
- import { default as O } from "./vue/KvCommentsContainer.js";
13
- import { default as S } from "./vue/KvCommentsHeartButton.js";
14
- import { default as G } from "./vue/KvCommentsList.js";
15
- import { default as P } from "./vue/KvCommentsListItem.js";
16
- import { default as F } from "./vue/KvCommentsReplyButton.js";
17
- import { default as B } from "./vue/KvContentfulImg.js";
18
- import { default as b } from "./vue/KvCountdownTimer.js";
19
- import { default as y } from "./vue/KvExpandable.js";
20
- import { default as w } from "./vue/KvExpandableQuestion.js";
21
- import { default as H } from "./vue/KvFlag.js";
22
- import { default as z } from "./vue/KvGrid.js";
23
- import { default as q } from "./vue/KvImpactDashboardHeader.js";
24
- import { default as X } from "./vue/KvInlineActivityCard.js";
25
- import { default as Z } from "./vue/KvInlineActivityFeed.js";
26
- import { KV_INTRODUCTION_LOAN_CARD_FRAGMENT as ee, KV_INTRODUCTION_LOAN_CARD_USER_FRAGMENT as oe, default as re } from "./vue/KvIntroductionLoanCard.js";
27
- import { default as ae } from "./vue/KvLendAmountButton.js";
28
- import { KV_LEND_CTA_FRAGMENT as le, KV_LEND_CTA_USER_FRAGMENT as se, default as de } from "./vue/KvLendCta.js";
29
- import { default as pe } from "./vue/KvLightbox.js";
30
- import { default as xe } from "./vue/KvLineGraph.js";
31
- import { KV_LOAN_ACTIVITIES_FRAGMENT as Ke, default as ve } from "./vue/KvLoanActivities.js";
32
- import { KV_LOAN_BOOKMARK_FRAGMENT as ie, default as Ce } from "./vue/KvLoanBookmark.js";
33
- import { default as Le } from "./vue/KvLoanCallouts.js";
34
- import { default as Te } from "./vue/KvLoanProgressGroup.js";
35
- import { KV_LOAN_TAG_FRAGMENT as ce, default as Re } from "./vue/KvLoanTag.js";
36
- import { default as Me } from "./vue/KvLoanTeamPick.js";
37
- import { KV_LOAN_USE_FRAGMENT as Ie, default as Ge } from "./vue/KvLoanUse.js";
38
- import { default as Pe } from "./vue/KvLoadingPlaceholder.js";
39
- import { default as Fe } from "./vue/KvLoadingSpinner.js";
40
- import { default as Be } from "./vue/KvMap.js";
41
- import { default as be } from "./vue/KvMaterialIcon.js";
42
- import { default as ye } from "./vue/KvPageContainer.js";
43
- import { default as we } from "./vue/KvPagination.js";
44
- import { default as He } from "./vue/KvPieChart.js";
45
- import { default as ze } from "./vue/KvPopper.js";
46
- import { default as qe } from "./vue/KvProgressBar.js";
47
- import { default as Xe } from "./vue/KvRadio.js";
48
- import { default as Ze } from "./vue/KvSelect.js";
49
- import { default as eo } from "./vue/KvSideSheet.js";
50
- import { default as ro } from "./vue/KvSwitch.js";
51
- import { default as ao } from "./vue/KvTab.js";
52
- import { default as lo } from "./vue/KvTabPanel.js";
53
- import { default as mo } from "./vue/KvTabs.js";
54
- import { default as uo } from "./vue/KvTextInput.js";
55
- import { default as no } from "./vue/KvTextLink.js";
56
- import { default as vo } from "./vue/KvThemeProvider.js";
57
- import { default as io } from "./vue/KvToast.js";
58
- import { default as _o } from "./vue/KvTooltip.js";
59
- import { default as No } from "./vue/KvTreeMapChart.js";
60
- import { default as Eo } from "./vue/KvUserAvatar.js";
61
- import { default as Ro } from "./vue/KvVerticalCarousel.js";
62
- import { default as Mo } from "./vue/KvVotingCard.js";
63
- import { default as Io } from "./vue/KvVotingCardV2.js";
64
- import { KV_WIDE_LOAN_CARD_FRAGMENT as go, KV_WIDE_LOAN_CARD_USER_FRAGMENT as Po, default as ho } from "./vue/KvWideLoanCard.js";
65
- import { default as Vo } from "./vue/KvAtbModal.js";
66
- import { default as Do } from "./vue/KvSecondaryNav.js";
67
- import { default as ko, Mash as yo } from "./utils/Alea.js";
68
- import { useAttrs as wo } from "./utils/attrs.js";
69
- import { carouselUtil as Ho } from "./utils/carousels.js";
70
- import { collapse as zo, expand as Qo } from "./utils/expander.js";
71
- import { isLegacyPlaceholderAvatar as Jo, randomizedUserAvatarClass as Xo } from "./utils/imageUtils.js";
72
- import { LOAN_CALLOUTS_FRAGMENT as Zo, LOAN_GEOCODE_FRAGMENT as $o, LOAN_PROGRESS_FRAGMENT as er, loanCardComputedProperties as or, loanCardMethods as rr } from "./utils/loanCard.js";
73
- import { BALANCE_CAMPAIGN as ar, BASE_CAMPAIGN as fr, ERL_COOKIE_NAME as lr, NO_BALANCE_CAMPAIGN as sr, TOP_UP_CAMPAIGN as dr, getDropdownPriceArray as mr, getLendCtaSelectedOption as pr, isBetween25And50 as ur, isLessThan25 as xr } from "./utils/loanUtils.js";
74
- import { animationCoordinator as Kr, generateMapMarkers as vr, getCoordinatesBetween as Ar, getCountryColor as ir, getLoansIntervals as Cr } from "./utils/mapUtils.js";
75
- import { lockPrintSingleEl as Lr, unlockPrintSingleEl as Nr } from "./utils/printing.js";
76
- import { lockScroll as Er, lockScrollSmallOnly as cr, unlockScroll as Rr, unlockScrollSmallOnly as Or } from "./utils/scrollLock.js";
77
- import { buildTailwindClassName as Sr, headerNumberCase as Ir, kebabCase as Gr, removeObjectProperty as gr } from "./utils/themeUtils.js";
78
- import { throttle as hr } from "./utils/throttle.js";
79
- import { isTargetElement as Vr, offBodyTouchstart as Br, onBodyTouchstart as Dr } from "./utils/touchEvents.js";
80
- import { getTreemap as kr } from "./utils/treemap.js";
81
- import { KvBlueskyIcon as Ur } from "./assets/icons/bluesky.js";
9
+ import { default as C } from "./vue/KvCheckoutReceipt.js";
10
+ import { default as L } from "./vue/KvChip.js";
11
+ import { KV_CLASSIC_LOAN_CARD_FRAGMENT as T, KV_CLASSIC_LOAN_CARD_USER_FRAGMET as c, default as E } from "./vue/KvClassicLoanCard.js";
12
+ import { default as O } from "./vue/KvCommentsAdd.js";
13
+ import { default as S } from "./vue/KvCommentsContainer.js";
14
+ import { default as G } from "./vue/KvCommentsHeartButton.js";
15
+ import { default as P } from "./vue/KvCommentsList.js";
16
+ import { default as F } from "./vue/KvCommentsListItem.js";
17
+ import { default as B } from "./vue/KvCommentsReplyButton.js";
18
+ import { default as D } from "./vue/KvContentfulImg.js";
19
+ import { default as y } from "./vue/KvCountdownTimer.js";
20
+ import { default as w } from "./vue/KvExpandable.js";
21
+ import { default as H } from "./vue/KvExpandableQuestion.js";
22
+ import { default as z } from "./vue/KvFlag.js";
23
+ import { default as q } from "./vue/KvGrid.js";
24
+ import { default as X } from "./vue/KvImpactDashboardHeader.js";
25
+ import { default as Z } from "./vue/KvInlineActivityCard.js";
26
+ import { default as ee } from "./vue/KvInlineActivityFeed.js";
27
+ import { KV_INTRODUCTION_LOAN_CARD_FRAGMENT as te, KV_INTRODUCTION_LOAN_CARD_USER_FRAGMENT as re, default as ae } from "./vue/KvIntroductionLoanCard.js";
28
+ import { default as le } from "./vue/KvLendAmountButton.js";
29
+ import { KV_LEND_CTA_FRAGMENT as de, KV_LEND_CTA_USER_FRAGMENT as me, default as pe } from "./vue/KvLendCta.js";
30
+ import { default as xe } from "./vue/KvLightbox.js";
31
+ import { default as Ke } from "./vue/KvLineGraph.js";
32
+ import { KV_LOAN_ACTIVITIES_FRAGMENT as Ae, default as ie } from "./vue/KvLoanActivities.js";
33
+ import { KV_LOAN_BOOKMARK_FRAGMENT as _e, default as Le } from "./vue/KvLoanBookmark.js";
34
+ import { default as Te } from "./vue/KvLoanCallouts.js";
35
+ import { default as Ee } from "./vue/KvLoanProgressGroup.js";
36
+ import { KV_LOAN_TAG_FRAGMENT as Oe, default as Me } from "./vue/KvLoanTag.js";
37
+ import { default as Ie } from "./vue/KvLoanTeamPick.js";
38
+ import { KV_LOAN_USE_FRAGMENT as ge, default as Pe } from "./vue/KvLoanUse.js";
39
+ import { default as Fe } from "./vue/KvLoadingPlaceholder.js";
40
+ import { default as Be } from "./vue/KvLoadingSpinner.js";
41
+ import { default as De } from "./vue/KvMap.js";
42
+ import { default as ye } from "./vue/KvMaterialIcon.js";
43
+ import { default as we } from "./vue/KvPageContainer.js";
44
+ import { default as He } from "./vue/KvPagination.js";
45
+ import { default as ze } from "./vue/KvPieChart.js";
46
+ import { default as qe } from "./vue/KvPopper.js";
47
+ import { default as Xe } from "./vue/KvProgressBar.js";
48
+ import { default as Ze } from "./vue/KvRadio.js";
49
+ import { default as eo } from "./vue/KvSelect.js";
50
+ import { default as to } from "./vue/KvSideSheet.js";
51
+ import { default as ao } from "./vue/KvSwitch.js";
52
+ import { default as lo } from "./vue/KvTab.js";
53
+ import { default as mo } from "./vue/KvTabPanel.js";
54
+ import { default as uo } from "./vue/KvTabs.js";
55
+ import { default as no } from "./vue/KvTextInput.js";
56
+ import { default as vo } from "./vue/KvTextLink.js";
57
+ import { default as io } from "./vue/KvThemeProvider.js";
58
+ import { default as _o } from "./vue/KvToast.js";
59
+ import { default as No } from "./vue/KvTooltip.js";
60
+ import { default as co } from "./vue/KvTreeMapChart.js";
61
+ import { default as Ro } from "./vue/KvUserAvatar.js";
62
+ import { default as Mo } from "./vue/KvVerticalCarousel.js";
63
+ import { default as Io } from "./vue/KvVotingCard.js";
64
+ import { default as go } from "./vue/KvVotingCardV2.js";
65
+ import { KV_WIDE_LOAN_CARD_FRAGMENT as ho, KV_WIDE_LOAN_CARD_USER_FRAGMENT as Fo, default as Vo } from "./vue/KvWideLoanCard.js";
66
+ import { default as ko } from "./vue/KvAtbModal.js";
67
+ import { default as bo } from "./vue/KvSecondaryNav.js";
68
+ import { default as Uo, Mash as wo } from "./utils/Alea.js";
69
+ import { useAttrs as Ho } from "./utils/attrs.js";
70
+ import { carouselUtil as zo } from "./utils/carousels.js";
71
+ import { collapse as qo, expand as Jo } from "./utils/expander.js";
72
+ import { isLegacyPlaceholderAvatar as Yo, randomizedUserAvatarClass as Zo } from "./utils/imageUtils.js";
73
+ import { LOAN_CALLOUTS_FRAGMENT as et, LOAN_GEOCODE_FRAGMENT as ot, LOAN_PROGRESS_FRAGMENT as tt, loanCardComputedProperties as rt, loanCardMethods as at } from "./utils/loanCard.js";
74
+ import { BALANCE_CAMPAIGN as lt, BASE_CAMPAIGN as st, ERL_COOKIE_NAME as dt, NO_BALANCE_CAMPAIGN as mt, TOP_UP_CAMPAIGN as pt, getDropdownPriceArray as ut, getLendCtaSelectedOption as xt, isBetween25And50 as nt, isLessThan25 as Kt } from "./utils/loanUtils.js";
75
+ import { animationCoordinator as At, generateMapMarkers as it, getCoordinatesBetween as Ct, getCountryColor as _t, getLoansIntervals as Lt } from "./utils/mapUtils.js";
76
+ import { lockPrintSingleEl as Tt, unlockPrintSingleEl as ct } from "./utils/printing.js";
77
+ import { lockScroll as Rt, lockScrollSmallOnly as Ot, unlockScroll as Mt, unlockScrollSmallOnly as St } from "./utils/scrollLock.js";
78
+ import { buildTailwindClassName as Gt, headerNumberCase as gt, kebabCase as Pt, removeObjectProperty as ht } from "./utils/themeUtils.js";
79
+ import { throttle as Vt } from "./utils/throttle.js";
80
+ import { isTargetElement as kt, offBodyTouchstart as Dt, onBodyTouchstart as bt } from "./utils/touchEvents.js";
81
+ import { getTreemap as Ut } from "./utils/treemap.js";
82
+ import { KvBlueskyIcon as Wt } from "./assets/icons/bluesky.js";
82
83
  export {
83
- ko as Alea,
84
- ar as BALANCE_CAMPAIGN,
85
- fr as BASE_CAMPAIGN,
86
- lr as ERL_COOKIE_NAME,
87
- L as KV_CLASSIC_LOAN_CARD_FRAGMENT,
88
- N as KV_CLASSIC_LOAN_CARD_USER_FRAGMET,
89
- ee as KV_INTRODUCTION_LOAN_CARD_FRAGMENT,
90
- oe as KV_INTRODUCTION_LOAN_CARD_USER_FRAGMENT,
91
- le as KV_LEND_CTA_FRAGMENT,
92
- se as KV_LEND_CTA_USER_FRAGMENT,
93
- Ke as KV_LOAN_ACTIVITIES_FRAGMENT,
94
- ie as KV_LOAN_BOOKMARK_FRAGMENT,
95
- ce as KV_LOAN_TAG_FRAGMENT,
96
- Ie as KV_LOAN_USE_FRAGMENT,
97
- go as KV_WIDE_LOAN_CARD_FRAGMENT,
98
- Po as KV_WIDE_LOAN_CARD_USER_FRAGMENT,
99
- r as KvAccordionItem,
84
+ Uo as Alea,
85
+ lt as BALANCE_CAMPAIGN,
86
+ st as BASE_CAMPAIGN,
87
+ dt as ERL_COOKIE_NAME,
88
+ T as KV_CLASSIC_LOAN_CARD_FRAGMENT,
89
+ c as KV_CLASSIC_LOAN_CARD_USER_FRAGMET,
90
+ te as KV_INTRODUCTION_LOAN_CARD_FRAGMENT,
91
+ re as KV_INTRODUCTION_LOAN_CARD_USER_FRAGMENT,
92
+ de as KV_LEND_CTA_FRAGMENT,
93
+ me as KV_LEND_CTA_USER_FRAGMENT,
94
+ Ae as KV_LOAN_ACTIVITIES_FRAGMENT,
95
+ _e as KV_LOAN_BOOKMARK_FRAGMENT,
96
+ Oe as KV_LOAN_TAG_FRAGMENT,
97
+ ge as KV_LOAN_USE_FRAGMENT,
98
+ ho as KV_WIDE_LOAN_CARD_FRAGMENT,
99
+ Fo as KV_WIDE_LOAN_CARD_USER_FRAGMENT,
100
+ t as KvAccordionItem,
100
101
  a as KvActivityRow,
101
- Vo as KvAtbModal,
102
- Ur as KvBlueskyIcon,
102
+ ko as KvAtbModal,
103
+ Wt as KvBlueskyIcon,
103
104
  l as KvBorrowerImage,
104
105
  d as KvButton,
105
106
  p as KvCarousel,
106
107
  x as KvCartModal,
107
108
  K as KvCartPill,
108
109
  A as KvCheckbox,
109
- C as KvChip,
110
- T as KvClassicLoanCard,
111
- c as KvCommentsAdd,
112
- O as KvCommentsContainer,
113
- S as KvCommentsHeartButton,
114
- G as KvCommentsList,
115
- P as KvCommentsListItem,
116
- F as KvCommentsReplyButton,
117
- B as KvContentfulImg,
118
- b as KvCountdownTimer,
119
- y as KvExpandable,
120
- w as KvExpandableQuestion,
121
- H as KvFlag,
122
- z as KvGrid,
123
- q as KvImpactDashboardHeader,
124
- X as KvInlineActivityCard,
125
- Z as KvInlineActivityFeed,
126
- re as KvIntroductionLoanCard,
127
- ae as KvLendAmountButton,
128
- de as KvLendCta,
129
- pe as KvLightbox,
130
- xe as KvLineGraph,
131
- Pe as KvLoadingPlaceholder,
132
- Fe as KvLoadingSpinner,
133
- ve as KvLoanActivities,
134
- Ce as KvLoanBookmark,
135
- Le as KvLoanCallouts,
136
- Te as KvLoanProgressGroup,
137
- Re as KvLoanTag,
138
- Me as KvLoanTeamPick,
139
- Ge as KvLoanUse,
140
- Be as KvMap,
141
- be as KvMaterialIcon,
142
- ye as KvPageContainer,
143
- we as KvPagination,
144
- He as KvPieChart,
145
- ze as KvPopper,
146
- qe as KvProgressBar,
147
- Xe as KvRadio,
148
- Do as KvSecondaryNav,
149
- Ze as KvSelect,
150
- eo as KvSideSheet,
151
- ro as KvSwitch,
152
- ao as KvTab,
153
- lo as KvTabPanel,
154
- mo as KvTabs,
155
- uo as KvTextInput,
156
- no as KvTextLink,
157
- vo as KvThemeProvider,
158
- io as KvToast,
159
- _o as KvTooltip,
160
- No as KvTreeMapChart,
161
- Eo as KvUserAvatar,
162
- Ro as KvVerticalCarousel,
163
- Mo as KvVotingCard,
164
- Io as KvVotingCardV2,
165
- ho as KvWideLoanCard,
166
- Zo as LOAN_CALLOUTS_FRAGMENT,
167
- $o as LOAN_GEOCODE_FRAGMENT,
168
- er as LOAN_PROGRESS_FRAGMENT,
169
- yo as Mash,
170
- sr as NO_BALANCE_CAMPAIGN,
171
- dr as TOP_UP_CAMPAIGN,
172
- Kr as animationCoordinator,
173
- Sr as buildTailwindClassName,
174
- Ho as carouselUtil,
175
- zo as collapse,
176
- Qo as expand,
177
- vr as generateMapMarkers,
178
- Ar as getCoordinatesBetween,
179
- ir as getCountryColor,
180
- mr as getDropdownPriceArray,
181
- pr as getLendCtaSelectedOption,
182
- Cr as getLoansIntervals,
183
- kr as getTreemap,
184
- Ir as headerNumberCase,
185
- ur as isBetween25And50,
186
- Jo as isLegacyPlaceholderAvatar,
187
- xr as isLessThan25,
188
- Vr as isTargetElement,
189
- Gr as kebabCase,
190
- or as loanCardComputedProperties,
191
- rr as loanCardMethods,
192
- Lr as lockPrintSingleEl,
193
- Er as lockScroll,
194
- cr as lockScrollSmallOnly,
195
- Br as offBodyTouchstart,
196
- Dr as onBodyTouchstart,
197
- Xo as randomizedUserAvatarClass,
198
- gr as removeObjectProperty,
199
- hr as throttle,
200
- Nr as unlockPrintSingleEl,
201
- Rr as unlockScroll,
202
- Or as unlockScrollSmallOnly,
203
- wo as useAttrs
110
+ C as KvCheckoutReceipt,
111
+ L as KvChip,
112
+ E as KvClassicLoanCard,
113
+ O as KvCommentsAdd,
114
+ S as KvCommentsContainer,
115
+ G as KvCommentsHeartButton,
116
+ P as KvCommentsList,
117
+ F as KvCommentsListItem,
118
+ B as KvCommentsReplyButton,
119
+ D as KvContentfulImg,
120
+ y as KvCountdownTimer,
121
+ w as KvExpandable,
122
+ H as KvExpandableQuestion,
123
+ z as KvFlag,
124
+ q as KvGrid,
125
+ X as KvImpactDashboardHeader,
126
+ Z as KvInlineActivityCard,
127
+ ee as KvInlineActivityFeed,
128
+ ae as KvIntroductionLoanCard,
129
+ le as KvLendAmountButton,
130
+ pe as KvLendCta,
131
+ xe as KvLightbox,
132
+ Ke as KvLineGraph,
133
+ Fe as KvLoadingPlaceholder,
134
+ Be as KvLoadingSpinner,
135
+ ie as KvLoanActivities,
136
+ Le as KvLoanBookmark,
137
+ Te as KvLoanCallouts,
138
+ Ee as KvLoanProgressGroup,
139
+ Me as KvLoanTag,
140
+ Ie as KvLoanTeamPick,
141
+ Pe as KvLoanUse,
142
+ De as KvMap,
143
+ ye as KvMaterialIcon,
144
+ we as KvPageContainer,
145
+ He as KvPagination,
146
+ ze as KvPieChart,
147
+ qe as KvPopper,
148
+ Xe as KvProgressBar,
149
+ Ze as KvRadio,
150
+ bo as KvSecondaryNav,
151
+ eo as KvSelect,
152
+ to as KvSideSheet,
153
+ ao as KvSwitch,
154
+ lo as KvTab,
155
+ mo as KvTabPanel,
156
+ uo as KvTabs,
157
+ no as KvTextInput,
158
+ vo as KvTextLink,
159
+ io as KvThemeProvider,
160
+ _o as KvToast,
161
+ No as KvTooltip,
162
+ co as KvTreeMapChart,
163
+ Ro as KvUserAvatar,
164
+ Mo as KvVerticalCarousel,
165
+ Io as KvVotingCard,
166
+ go as KvVotingCardV2,
167
+ Vo as KvWideLoanCard,
168
+ et as LOAN_CALLOUTS_FRAGMENT,
169
+ ot as LOAN_GEOCODE_FRAGMENT,
170
+ tt as LOAN_PROGRESS_FRAGMENT,
171
+ wo as Mash,
172
+ mt as NO_BALANCE_CAMPAIGN,
173
+ pt as TOP_UP_CAMPAIGN,
174
+ At as animationCoordinator,
175
+ Gt as buildTailwindClassName,
176
+ zo as carouselUtil,
177
+ qo as collapse,
178
+ Jo as expand,
179
+ it as generateMapMarkers,
180
+ Ct as getCoordinatesBetween,
181
+ _t as getCountryColor,
182
+ ut as getDropdownPriceArray,
183
+ xt as getLendCtaSelectedOption,
184
+ Lt as getLoansIntervals,
185
+ Ut as getTreemap,
186
+ gt as headerNumberCase,
187
+ nt as isBetween25And50,
188
+ Yo as isLegacyPlaceholderAvatar,
189
+ Kt as isLessThan25,
190
+ kt as isTargetElement,
191
+ Pt as kebabCase,
192
+ rt as loanCardComputedProperties,
193
+ at as loanCardMethods,
194
+ Tt as lockPrintSingleEl,
195
+ Rt as lockScroll,
196
+ Ot as lockScrollSmallOnly,
197
+ Dt as offBodyTouchstart,
198
+ bt as onBodyTouchstart,
199
+ Zo as randomizedUserAvatarClass,
200
+ ht as removeObjectProperty,
201
+ Vt as throttle,
202
+ ct as unlockPrintSingleEl,
203
+ Mt as unlockScroll,
204
+ St as unlockScrollSmallOnly,
205
+ Ho as useAttrs
204
206
  };
@@ -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.32.0",
3
+ "version": "6.34.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": "a524c8cc658713bc8cff3796011b5751fe87f01a"
114
+ "gitHead": "cc3ce2bd8be698962222f76cbbef145f2c628fa9"
115
115
  }