@kiva/kv-components 10.6.0 → 10.6.1
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 +20 -20
- package/dist/vue/KvAccordionItem.js +1 -1
- package/dist/vue/KvActivityRow.js +1 -1
- package/dist/vue/KvAtbModal.js +1 -1
- package/dist/vue/KvBorrowerImage.js +1 -1
- package/dist/vue/KvButton.js +1 -1
- package/dist/vue/KvCardFrame.js +1 -1
- package/dist/vue/KvCarousel.js +1 -1
- package/dist/vue/KvCartModal.js +1 -1
- package/dist/vue/KvCartPill.js +1 -1
- package/dist/vue/KvCheckbox.js +1 -1
- package/dist/vue/KvCheckoutReceipt.js +1 -1
- package/dist/vue/KvChip.js +1 -1
- package/dist/vue/KvClassicLoanCard.js +252 -295
- package/dist/vue/KvClassicLoanCard.script.js +298 -0
- package/dist/vue/KvCommentsAdd.js +2 -2
- package/dist/vue/KvCommentsContainer.js +2 -2
- package/dist/vue/KvCommentsHeartButton.js +1 -1
- package/dist/vue/KvCommentsList.js +1 -1
- package/dist/vue/KvCommentsListItem.js +2 -2
- package/dist/vue/KvCommentsReplyButton.js +1 -1
- package/dist/vue/KvCompactLoanCard.js +416 -380
- package/dist/vue/KvCompactLoanCard.script.js +382 -0
- package/dist/vue/KvContentfulImg.js +1 -1
- package/dist/vue/KvCountdownTimer.js +1 -1
- package/dist/vue/KvDatePicker.js +1 -1
- package/dist/vue/KvExpandable.js +1 -1
- package/dist/vue/KvExpandableQuestion.js +1 -1
- package/dist/vue/KvFlag.js +1 -1
- package/dist/vue/KvFormAssemblyForm.js +2 -95
- package/dist/vue/KvFormAssemblyForm.script.js +97 -0
- package/dist/vue/KvGrid.js +1 -1
- package/dist/vue/KvIconBag.js +1 -1
- package/dist/vue/KvIconButton.js +2 -116
- package/dist/vue/KvIconButton.script.js +118 -0
- package/dist/vue/KvImageUpload.js +1 -1
- package/dist/vue/KvImpactVerticalSelector.js +1 -1
- package/dist/vue/KvInlineActivityCard.js +1 -1
- package/dist/vue/KvInlineActivityFeed.js +1 -1
- package/dist/vue/KvIntroductionLoanCard.js +247 -220
- package/dist/vue/KvIntroductionLoanCard.script.js +223 -0
- package/dist/vue/KvLendAmountButton.js +1 -1
- package/dist/vue/KvLendCta.js +355 -389
- package/dist/vue/KvLendCta.script.js +391 -0
- package/dist/vue/KvLightbox.js +1 -1
- package/dist/vue/KvLineGraph.js +1 -1
- package/dist/vue/KvLoadingSpinner.js +1 -1
- package/dist/vue/KvLoanActivities.js +75 -149
- package/dist/vue/KvLoanActivities.script.js +151 -0
- package/dist/vue/KvLoanBookmark.js +22 -33
- package/dist/vue/KvLoanBookmark.script.js +35 -0
- package/dist/vue/KvLoanCallouts.js +1 -1
- package/dist/vue/KvLoanInfoCard.js +2 -2
- package/dist/vue/KvLoanProgressGroup.js +1 -1
- package/dist/vue/KvLoanTag.js +44 -123
- package/dist/vue/KvLoanTag.script.js +125 -0
- package/dist/vue/KvLoanUse.js +14 -111
- package/dist/vue/KvLoanUse.script.js +113 -0
- package/dist/vue/KvMap.js +1 -1
- package/dist/vue/KvMaterialIcon.js +1 -1
- package/dist/vue/KvPageContainer.js +1 -1
- package/dist/vue/KvPagination.js +1 -1
- package/dist/vue/KvPieChart.js +1 -1
- package/dist/vue/KvPieChartV2.js +1 -1
- package/dist/vue/KvPill.js +1 -1
- package/dist/vue/KvPopper.js +1 -1
- package/dist/vue/KvProgressBar.js +1 -1
- package/dist/vue/KvProgressCircle.js +1 -1
- package/dist/vue/KvPulsingDot.js +1 -1
- package/dist/vue/KvRadio.js +1 -1
- package/dist/vue/KvSecondaryNav.js +1 -1
- package/dist/vue/KvSelect.js +1 -1
- package/dist/vue/KvSideSheet.js +1 -1
- package/dist/vue/KvSimpleMap.js +1 -1
- package/dist/vue/KvStackedBarGraph.js +1 -1
- package/dist/vue/KvSwitch.js +1 -1
- package/dist/vue/KvTab.js +1 -1
- package/dist/vue/KvTabPanel.js +1 -1
- package/dist/vue/KvTabs.js +1 -1
- package/dist/vue/KvTextInput.js +1 -1
- package/dist/vue/KvTextLink.js +1 -1
- package/dist/vue/KvThemeProvider.js +1 -1
- package/dist/vue/KvToast.js +1 -1
- package/dist/vue/KvTooltip.js +1 -1
- package/dist/vue/KvTreeMapChart.js +1 -1
- package/dist/vue/KvUserAvatar.js +1 -1
- package/dist/vue/KvUtilityMenu.js +1 -1
- package/dist/vue/KvVerticalCarousel.js +1 -1
- package/dist/vue/KvVotingCard.js +1 -1
- package/dist/vue/KvVotingCardV2.js +1 -1
- package/dist/vue/KvWideLoanCard.js +206 -232
- package/dist/vue/KvWideLoanCard.script.js +235 -0
- package/dist/vue/KvWwwHeader/KvHeaderAboutMenu.js +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderDropdownLink.js +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.js +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderLogo.js +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderMobileMenu.js +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderMyKivaMenu.js +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderTakeActionMenu.js +1 -1
- package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.js +1 -1
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu.js +1 -1
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenu.js +1 -1
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuCountryList.js +1 -1
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuSearchList.js +1 -1
- package/dist/vue/KvWwwHeader.js +1 -1
- package/dist/vue/KvWwwHeaderBasic/AboutMenu.js +1 -1
- package/dist/vue/KvWwwHeaderBasic/HeaderMenuGroup.js +1 -1
- package/dist/vue/KvWwwHeaderBasic/KvWwwHeaderBasic.js +1 -1
- package/dist/vue/KvWwwHeaderBasic/LinkBar.js +1 -1
- package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/CategoriesPanel.js +1 -1
- package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/MobileLendMenu.js +1 -1
- package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/MyKivaPanel.js +1 -1
- package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/RegionsPanel.js +1 -1
- package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/SearchPanel.js +1 -1
- package/dist/vue/KvWwwHeaderBasic/MobileMenu.js +1 -1
- package/dist/vue/KvWwwHeaderBasic/MyKivaMenu.js +1 -1
- package/dist/vue/KvWwwHeaderBasic/SearchBar.js +1 -1
- package/package.json +2 -2
- package/vite.config.ts +16 -13
- package/dist/vue/KvClassicLoanCard2.js +0 -255
- package/dist/vue/KvCompactLoanCard2.js +0 -418
- package/dist/vue/KvFormAssemblyForm2.js +0 -4
- package/dist/vue/KvIconButton2.js +0 -4
- package/dist/vue/KvIntroductionLoanCard2.js +0 -250
- package/dist/vue/KvLendCta2.js +0 -357
- package/dist/vue/KvLoanActivities2.js +0 -77
- package/dist/vue/KvLoanBookmark2.js +0 -24
- package/dist/vue/KvLoanTag2.js +0 -46
- package/dist/vue/KvLoanUse2.js +0 -16
- package/dist/vue/KvWideLoanCard2.js +0 -209
- /package/dist/vue/{KvAccordionItem2.js → KvAccordionItem.script.js} +0 -0
- /package/dist/vue/{KvActivityRow2.js → KvActivityRow.script.js} +0 -0
- /package/dist/vue/{KvAtbModal2.js → KvAtbModal.script.js} +0 -0
- /package/dist/vue/{KvBorrowerImage2.js → KvBorrowerImage.script.js} +0 -0
- /package/dist/vue/{KvButton2.js → KvButton.script.js} +0 -0
- /package/dist/vue/{KvCardFrame2.js → KvCardFrame.script.js} +0 -0
- /package/dist/vue/{KvCarousel2.js → KvCarousel.script.js} +0 -0
- /package/dist/vue/{KvCartModal2.js → KvCartModal.script.js} +0 -0
- /package/dist/vue/{KvCartPill2.js → KvCartPill.script.js} +0 -0
- /package/dist/vue/{KvCheckbox2.js → KvCheckbox.script.js} +0 -0
- /package/dist/vue/{KvCheckoutReceipt2.js → KvCheckoutReceipt.script.js} +0 -0
- /package/dist/vue/{KvChip2.js → KvChip.script.js} +0 -0
- /package/dist/vue/{KvCommentsAdd2.js → KvCommentsAdd.script.js} +0 -0
- /package/dist/vue/{KvCommentsContainer2.js → KvCommentsContainer.script.js} +0 -0
- /package/dist/vue/{KvCommentsHeartButton2.js → KvCommentsHeartButton.script.js} +0 -0
- /package/dist/vue/{KvCommentsList2.js → KvCommentsList.script.js} +0 -0
- /package/dist/vue/{KvCommentsListItem2.js → KvCommentsListItem.script.js} +0 -0
- /package/dist/vue/{KvCommentsReplyButton2.js → KvCommentsReplyButton.script.js} +0 -0
- /package/dist/vue/{KvContentfulImg2.js → KvContentfulImg.script.js} +0 -0
- /package/dist/vue/{KvCountdownTimer2.js → KvCountdownTimer.script.js} +0 -0
- /package/dist/vue/{KvDatePicker2.js → KvDatePicker.script.js} +0 -0
- /package/dist/vue/{KvExpandable2.js → KvExpandable.script.js} +0 -0
- /package/dist/vue/{KvExpandableQuestion2.js → KvExpandableQuestion.script.js} +0 -0
- /package/dist/vue/{KvFlag2.js → KvFlag.script.js} +0 -0
- /package/dist/vue/{KvGrid2.js → KvGrid.script.js} +0 -0
- /package/dist/vue/{KvIconBag2.js → KvIconBag.script.js} +0 -0
- /package/dist/vue/{KvImageUpload2.js → KvImageUpload.script.js} +0 -0
- /package/dist/vue/{KvImpactVerticalSelector2.js → KvImpactVerticalSelector.script.js} +0 -0
- /package/dist/vue/{KvInlineActivityCard2.js → KvInlineActivityCard.script.js} +0 -0
- /package/dist/vue/{KvInlineActivityFeed2.js → KvInlineActivityFeed.script.js} +0 -0
- /package/dist/vue/{KvLendAmountButton2.js → KvLendAmountButton.script.js} +0 -0
- /package/dist/vue/{KvLightbox2.js → KvLightbox.script.js} +0 -0
- /package/dist/vue/{KvLineGraph2.js → KvLineGraph.script.js} +0 -0
- /package/dist/vue/{KvLoadingSpinner2.js → KvLoadingSpinner.script.js} +0 -0
- /package/dist/vue/{KvLoanCallouts2.js → KvLoanCallouts.script.js} +0 -0
- /package/dist/vue/{KvLoanProgressGroup2.js → KvLoanProgressGroup.script.js} +0 -0
- /package/dist/vue/{KvMap2.js → KvMap.script.js} +0 -0
- /package/dist/vue/{KvMaterialIcon2.js → KvMaterialIcon.script.js} +0 -0
- /package/dist/vue/{KvPageContainer2.js → KvPageContainer.script.js} +0 -0
- /package/dist/vue/{KvPagination2.js → KvPagination.script.js} +0 -0
- /package/dist/vue/{KvPieChart2.js → KvPieChart.script.js} +0 -0
- /package/dist/vue/{KvPieChartV22.js → KvPieChartV2.script.js} +0 -0
- /package/dist/vue/{KvPill2.js → KvPill.script.js} +0 -0
- /package/dist/vue/{KvPopper2.js → KvPopper.script.js} +0 -0
- /package/dist/vue/{KvProgressBar2.js → KvProgressBar.script.js} +0 -0
- /package/dist/vue/{KvProgressCircle2.js → KvProgressCircle.script.js} +0 -0
- /package/dist/vue/{KvPulsingDot2.js → KvPulsingDot.script.js} +0 -0
- /package/dist/vue/{KvRadio2.js → KvRadio.script.js} +0 -0
- /package/dist/vue/{KvSecondaryNav2.js → KvSecondaryNav.script.js} +0 -0
- /package/dist/vue/{KvSelect2.js → KvSelect.script.js} +0 -0
- /package/dist/vue/{KvSideSheet2.js → KvSideSheet.script.js} +0 -0
- /package/dist/vue/{KvSimpleMap2.js → KvSimpleMap.script.js} +0 -0
- /package/dist/vue/{KvStackedBarGraph2.js → KvStackedBarGraph.script.js} +0 -0
- /package/dist/vue/{KvSwitch2.js → KvSwitch.script.js} +0 -0
- /package/dist/vue/{KvTab2.js → KvTab.script.js} +0 -0
- /package/dist/vue/{KvTabPanel2.js → KvTabPanel.script.js} +0 -0
- /package/dist/vue/{KvTabs2.js → KvTabs.script.js} +0 -0
- /package/dist/vue/{KvTextInput2.js → KvTextInput.script.js} +0 -0
- /package/dist/vue/{KvTextLink2.js → KvTextLink.script.js} +0 -0
- /package/dist/vue/{KvThemeProvider2.js → KvThemeProvider.script.js} +0 -0
- /package/dist/vue/{KvToast2.js → KvToast.script.js} +0 -0
- /package/dist/vue/{KvTooltip2.js → KvTooltip.script.js} +0 -0
- /package/dist/vue/{KvTreeMapChart2.js → KvTreeMapChart.script.js} +0 -0
- /package/dist/vue/{KvUserAvatar2.js → KvUserAvatar.script.js} +0 -0
- /package/dist/vue/{KvUtilityMenu2.js → KvUtilityMenu.script.js} +0 -0
- /package/dist/vue/{KvVerticalCarousel2.js → KvVerticalCarousel.script.js} +0 -0
- /package/dist/vue/{KvVotingCard2.js → KvVotingCard.script.js} +0 -0
- /package/dist/vue/{KvVotingCardV22.js → KvVotingCardV2.script.js} +0 -0
- /package/dist/vue/KvWwwHeader/{KvHeaderAboutMenu2.js → KvHeaderAboutMenu.script.js} +0 -0
- /package/dist/vue/KvWwwHeader/{KvHeaderDropdownLink2.js → KvHeaderDropdownLink.script.js} +0 -0
- /package/dist/vue/KvWwwHeader/{KvHeaderLinkBar2.js → KvHeaderLinkBar.script.js} +0 -0
- /package/dist/vue/KvWwwHeader/{KvHeaderLogo2.js → KvHeaderLogo.script.js} +0 -0
- /package/dist/vue/KvWwwHeader/{KvHeaderMobileMenu2.js → KvHeaderMobileMenu.script.js} +0 -0
- /package/dist/vue/KvWwwHeader/{KvHeaderMyKivaMenu2.js → KvHeaderMyKivaMenu.script.js} +0 -0
- /package/dist/vue/KvWwwHeader/{KvHeaderTakeActionMenu2.js → KvHeaderTakeActionMenu.script.js} +0 -0
- /package/dist/vue/KvWwwHeader/LendMenu/{KvLendListMenu2.js → KvLendListMenu.script.js} +0 -0
- /package/dist/vue/KvWwwHeader/LendMenu/{KvLendMegaMenu2.js → KvLendMegaMenu.script.js} +0 -0
- /package/dist/vue/KvWwwHeader/LendMenu/{KvLendMenu2.js → KvLendMenu.script.js} +0 -0
- /package/dist/vue/KvWwwHeader/LendMenu/{KvLendMenuCountryList2.js → KvLendMenuCountryList.script.js} +0 -0
- /package/dist/vue/KvWwwHeader/LendMenu/{KvLendMenuSearchList2.js → KvLendMenuSearchList.script.js} +0 -0
- /package/dist/vue/{KvWwwHeader2.js → KvWwwHeader.script.js} +0 -0
- /package/dist/vue/KvWwwHeaderBasic/{AboutMenu2.js → AboutMenu.script.js} +0 -0
- /package/dist/vue/KvWwwHeaderBasic/{HeaderMenuGroup2.js → HeaderMenuGroup.script.js} +0 -0
- /package/dist/vue/KvWwwHeaderBasic/{KvWwwHeaderBasic2.js → KvWwwHeaderBasic.script.js} +0 -0
- /package/dist/vue/KvWwwHeaderBasic/{LinkBar2.js → LinkBar.script.js} +0 -0
- /package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/{CategoriesPanel2.js → CategoriesPanel.script.js} +0 -0
- /package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/{MobileLendMenu2.js → MobileLendMenu.script.js} +0 -0
- /package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/{MyKivaPanel2.js → MyKivaPanel.script.js} +0 -0
- /package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/{RegionsPanel2.js → RegionsPanel.script.js} +0 -0
- /package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/{SearchPanel2.js → SearchPanel.script.js} +0 -0
- /package/dist/vue/KvWwwHeaderBasic/{MobileMenu2.js → MobileMenu.script.js} +0 -0
- /package/dist/vue/KvWwwHeaderBasic/{MyKivaMenu2.js → MyKivaMenu.script.js} +0 -0
- /package/dist/vue/KvWwwHeaderBasic/{SearchBar2.js → SearchBar.script.js} +0 -0
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
import b from "graphql-tag";
|
|
2
|
+
import $ from "numeral";
|
|
3
|
+
import { ref as j, computed as a, watch as q } from "vue";
|
|
4
|
+
import { mdiArrowRight as H, mdiCached as z, mdiLink as J } from "@mdi/js";
|
|
5
|
+
import { LOAN_CALLOUTS_FRAGMENT as Q, LOAN_GEOCODE_FRAGMENT as X, LOAN_PROGRESS_FRAGMENT as Y, loanCardComputedProperties as Z, loanCardMethods as ee } from "../utils/loanCard.js";
|
|
6
|
+
import { getDropdownPriceArray as te, getLendCtaSelectedOption as ae, isLessThan25 as oe } from "../utils/loanUtils.js";
|
|
7
|
+
import { computePostGoalLoanCardStatement as ne } from "../utils/postGoalStatement.js";
|
|
8
|
+
import le from "./KvLoanUse.js";
|
|
9
|
+
import ie from "./KvBorrowerImage.js";
|
|
10
|
+
import re from "./KvLoanCallouts.js";
|
|
11
|
+
import se from "./KvLendCta.js";
|
|
12
|
+
import ue from "./KvLoanProgressGroup.js";
|
|
13
|
+
import de from "./KvLoanTag.js";
|
|
14
|
+
import me from "./KvMaterialIcon.js";
|
|
15
|
+
import fe from "./KvLoadingPlaceholder.js";
|
|
16
|
+
import ce from "./KvLoanTeamPick.js";
|
|
17
|
+
import he from "./KvSelect.js";
|
|
18
|
+
import { KV_LEND_CTA_FRAGMENT as ve, KV_LEND_CTA_USER_FRAGMENT as ge } from "./KvLendCta.script.js";
|
|
19
|
+
import { KV_LOAN_TAG_FRAGMENT as Le } from "./KvLoanTag.script.js";
|
|
20
|
+
import { KV_LOAN_USE_FRAGMENT as ye } from "./KvLoanUse.script.js";
|
|
21
|
+
const d = {
|
|
22
|
+
default: "default",
|
|
23
|
+
postGoal: "post-goal",
|
|
24
|
+
lightDetailed: "light-detailed"
|
|
25
|
+
}, Ae = (e) => e < 500 && e >= 25, Ce = (e) => oe(e) || Ae(e), $e = b`
|
|
26
|
+
fragment KvCompactLoanCard on LoanBasic {
|
|
27
|
+
id
|
|
28
|
+
image {
|
|
29
|
+
id
|
|
30
|
+
hash
|
|
31
|
+
}
|
|
32
|
+
lenders(limit: 0) {
|
|
33
|
+
totalCount
|
|
34
|
+
}
|
|
35
|
+
loanFundraisingInfo {
|
|
36
|
+
id
|
|
37
|
+
fundedAmount
|
|
38
|
+
}
|
|
39
|
+
name
|
|
40
|
+
...KvLendCta
|
|
41
|
+
...KvLoanTag
|
|
42
|
+
...KvLoanUse
|
|
43
|
+
...LoanCallouts
|
|
44
|
+
...LoanGeocode
|
|
45
|
+
...LoanProgress
|
|
46
|
+
}
|
|
47
|
+
${ve}
|
|
48
|
+
${Le}
|
|
49
|
+
${ye}
|
|
50
|
+
${Q}
|
|
51
|
+
${X}
|
|
52
|
+
${Y}
|
|
53
|
+
`, je = b`
|
|
54
|
+
fragment KvCompactLoanCardUser on LoanBasic {
|
|
55
|
+
id
|
|
56
|
+
...KvLendCtaUser
|
|
57
|
+
}
|
|
58
|
+
${ge}
|
|
59
|
+
`, qe = {
|
|
60
|
+
name: "KvCompactLoanCard",
|
|
61
|
+
components: {
|
|
62
|
+
KvBorrowerImage: ie,
|
|
63
|
+
KvLoadingPlaceholder: fe,
|
|
64
|
+
KvLoanUse: le,
|
|
65
|
+
KvMaterialIcon: me,
|
|
66
|
+
KvLendCta: se,
|
|
67
|
+
KvLoanTag: de,
|
|
68
|
+
KvLoanCallouts: re,
|
|
69
|
+
KvLoanTeamPick: ce,
|
|
70
|
+
KvLoanProgressGroup: ue,
|
|
71
|
+
KvSelect: he
|
|
72
|
+
},
|
|
73
|
+
props: {
|
|
74
|
+
variant: {
|
|
75
|
+
type: String,
|
|
76
|
+
default: d.default,
|
|
77
|
+
validator: (e) => Object.values(d).includes(e)
|
|
78
|
+
},
|
|
79
|
+
loanId: {
|
|
80
|
+
type: Number,
|
|
81
|
+
default: void 0
|
|
82
|
+
},
|
|
83
|
+
loan: {
|
|
84
|
+
type: Object,
|
|
85
|
+
default: null
|
|
86
|
+
},
|
|
87
|
+
customLoanDetails: {
|
|
88
|
+
type: Boolean,
|
|
89
|
+
default: !1
|
|
90
|
+
},
|
|
91
|
+
showTags: {
|
|
92
|
+
type: Boolean,
|
|
93
|
+
default: !0
|
|
94
|
+
},
|
|
95
|
+
categoryPageName: {
|
|
96
|
+
type: String,
|
|
97
|
+
default: ""
|
|
98
|
+
},
|
|
99
|
+
enableFiveDollarsNotes: {
|
|
100
|
+
type: Boolean,
|
|
101
|
+
default: !1
|
|
102
|
+
},
|
|
103
|
+
isAdding: {
|
|
104
|
+
type: Boolean,
|
|
105
|
+
default: !1
|
|
106
|
+
},
|
|
107
|
+
isVisitor: {
|
|
108
|
+
type: Boolean,
|
|
109
|
+
default: !0
|
|
110
|
+
},
|
|
111
|
+
basketItems: {
|
|
112
|
+
type: Array,
|
|
113
|
+
default: () => []
|
|
114
|
+
},
|
|
115
|
+
kvTrackFunction: {
|
|
116
|
+
type: Function,
|
|
117
|
+
required: !0
|
|
118
|
+
},
|
|
119
|
+
photoPath: {
|
|
120
|
+
type: String,
|
|
121
|
+
required: !0
|
|
122
|
+
},
|
|
123
|
+
showViewLoan: {
|
|
124
|
+
type: Boolean,
|
|
125
|
+
default: !1
|
|
126
|
+
},
|
|
127
|
+
externalLinks: {
|
|
128
|
+
type: Boolean,
|
|
129
|
+
default: !1
|
|
130
|
+
},
|
|
131
|
+
externalLinksNewTab: {
|
|
132
|
+
type: Boolean,
|
|
133
|
+
default: !1
|
|
134
|
+
},
|
|
135
|
+
route: {
|
|
136
|
+
type: Object,
|
|
137
|
+
default: void 0
|
|
138
|
+
},
|
|
139
|
+
userBalance: {
|
|
140
|
+
type: String,
|
|
141
|
+
default: void 0
|
|
142
|
+
},
|
|
143
|
+
getCookie: {
|
|
144
|
+
type: Function,
|
|
145
|
+
default: void 0
|
|
146
|
+
},
|
|
147
|
+
setCookie: {
|
|
148
|
+
type: Function,
|
|
149
|
+
default: void 0
|
|
150
|
+
},
|
|
151
|
+
fiveDollarsSelected: {
|
|
152
|
+
type: Boolean,
|
|
153
|
+
default: !1
|
|
154
|
+
},
|
|
155
|
+
customCallouts: {
|
|
156
|
+
type: Array,
|
|
157
|
+
default: () => []
|
|
158
|
+
},
|
|
159
|
+
isTeamPick: {
|
|
160
|
+
type: Boolean,
|
|
161
|
+
default: !1
|
|
162
|
+
},
|
|
163
|
+
primaryButtonText: {
|
|
164
|
+
type: String,
|
|
165
|
+
default: "Lend"
|
|
166
|
+
},
|
|
167
|
+
secondaryButtonHandler: {
|
|
168
|
+
type: Function,
|
|
169
|
+
default: void 0
|
|
170
|
+
},
|
|
171
|
+
secondaryButtonText: {
|
|
172
|
+
type: String,
|
|
173
|
+
default: "Checkout now"
|
|
174
|
+
},
|
|
175
|
+
showContributors: {
|
|
176
|
+
type: Boolean,
|
|
177
|
+
default: !1
|
|
178
|
+
},
|
|
179
|
+
customHref: {
|
|
180
|
+
type: String,
|
|
181
|
+
default: ""
|
|
182
|
+
},
|
|
183
|
+
businessName: {
|
|
184
|
+
type: String,
|
|
185
|
+
default: ""
|
|
186
|
+
},
|
|
187
|
+
website: {
|
|
188
|
+
type: String,
|
|
189
|
+
default: ""
|
|
190
|
+
},
|
|
191
|
+
showLoanUse: {
|
|
192
|
+
type: Boolean,
|
|
193
|
+
default: !0
|
|
194
|
+
},
|
|
195
|
+
showLightView: {
|
|
196
|
+
type: Boolean,
|
|
197
|
+
default: !1
|
|
198
|
+
},
|
|
199
|
+
truncateWordsNumber: {
|
|
200
|
+
type: Number,
|
|
201
|
+
default: 0
|
|
202
|
+
},
|
|
203
|
+
showRefreshButton: {
|
|
204
|
+
type: Boolean,
|
|
205
|
+
default: !1
|
|
206
|
+
},
|
|
207
|
+
customAmountLent: {
|
|
208
|
+
type: String,
|
|
209
|
+
default: "25"
|
|
210
|
+
},
|
|
211
|
+
enableMultiMatching: {
|
|
212
|
+
type: Boolean,
|
|
213
|
+
default: !1
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
emits: [
|
|
217
|
+
"refresh-button",
|
|
218
|
+
"jump-filter-page",
|
|
219
|
+
"add-to-basket",
|
|
220
|
+
"remove-from-basket",
|
|
221
|
+
"show-loan-details",
|
|
222
|
+
"update:selected-amount"
|
|
223
|
+
],
|
|
224
|
+
setup(e, { emit: o }) {
|
|
225
|
+
const l = j(""), m = a(
|
|
226
|
+
() => e.variant === d.postGoal
|
|
227
|
+
), s = a(
|
|
228
|
+
() => e.variant === d.lightDetailed
|
|
229
|
+
), c = a(
|
|
230
|
+
() => m.value || s.value
|
|
231
|
+
), w = a(
|
|
232
|
+
() => e.showRefreshButton && !s.value
|
|
233
|
+
), {
|
|
234
|
+
allDataLoaded: S,
|
|
235
|
+
borrowerName: h,
|
|
236
|
+
distributionModel: v,
|
|
237
|
+
formattedLocation: g,
|
|
238
|
+
fundraisingPercent: B,
|
|
239
|
+
hasProgressData: _,
|
|
240
|
+
imageHash: N,
|
|
241
|
+
isLoading: T,
|
|
242
|
+
loanAmount: f,
|
|
243
|
+
loanBorrowerCount: L,
|
|
244
|
+
loanCallouts: k,
|
|
245
|
+
loanStatus: y,
|
|
246
|
+
loanUse: A,
|
|
247
|
+
readMorePath: R,
|
|
248
|
+
tag: F,
|
|
249
|
+
unreservedAmount: u,
|
|
250
|
+
sharesAvailable: M
|
|
251
|
+
} = Z(e), { clickReadMore: K } = ee(e, o), P = a(() => c.value ? void 0 : { width: "100px", height: "100px" }), D = a(() => {
|
|
252
|
+
if (!e.website)
|
|
253
|
+
return "";
|
|
254
|
+
const t = e.website.trim();
|
|
255
|
+
return t.startsWith("http://") || t.startsWith("https://") ? t : `https://${t}`;
|
|
256
|
+
}), E = a(() => {
|
|
257
|
+
if (c.value) return {};
|
|
258
|
+
const t = e.showLightView ? "auto" : "6.75rem", n = e.showLightView ? "none" : "6.75rem";
|
|
259
|
+
return { height: t, maxHeight: n };
|
|
260
|
+
}), G = a(() => $(f.value).format("$0,0")), i = a(() => {
|
|
261
|
+
var t;
|
|
262
|
+
return ne({
|
|
263
|
+
anonymizationLevel: (t = e.loan) == null ? void 0 : t.anonymizationLevel,
|
|
264
|
+
borrowerName: h.value,
|
|
265
|
+
distributionModel: v.value,
|
|
266
|
+
formattedLocation: g.value,
|
|
267
|
+
loanAmount: f.value,
|
|
268
|
+
loanBorrowerCount: L.value,
|
|
269
|
+
loanStatus: y.value,
|
|
270
|
+
loanUse: A.value
|
|
271
|
+
});
|
|
272
|
+
}), O = a(() => i.value.borrowerNameWithCountry), U = a(() => i.value.loanUsePrefixStart), V = a(() => i.value.loanUsePrefixEnd), x = a(() => i.value.statementTitle), I = a(() => i.value.visibleUseStatement), C = a(() => {
|
|
273
|
+
var r;
|
|
274
|
+
const t = parseFloat(u.value);
|
|
275
|
+
if (!t) return [];
|
|
276
|
+
const n = t < 25 ? parseFloat(`${((r = e.loan) == null ? void 0 : r.minNoteSize) ?? 25}`) : 25;
|
|
277
|
+
return te(
|
|
278
|
+
u.value,
|
|
279
|
+
Ce(t),
|
|
280
|
+
n,
|
|
281
|
+
e.enableFiveDollarsNotes,
|
|
282
|
+
e.isVisitor
|
|
283
|
+
);
|
|
284
|
+
});
|
|
285
|
+
q(
|
|
286
|
+
C,
|
|
287
|
+
(t) => {
|
|
288
|
+
var r, p;
|
|
289
|
+
if (!m.value) return;
|
|
290
|
+
if (!t.length) {
|
|
291
|
+
l.value = "";
|
|
292
|
+
return;
|
|
293
|
+
}
|
|
294
|
+
const n = ae(
|
|
295
|
+
e.getCookie,
|
|
296
|
+
e.setCookie,
|
|
297
|
+
e.enableFiveDollarsNotes,
|
|
298
|
+
(p = (r = e.route) == null ? void 0 : r.query) == null ? void 0 : p.utm_campaign,
|
|
299
|
+
u.value,
|
|
300
|
+
e.userBalance ? parseFloat(e.userBalance) : void 0,
|
|
301
|
+
e.fiveDollarsSelected
|
|
302
|
+
);
|
|
303
|
+
l.value = t.includes(n) ? n : t[0];
|
|
304
|
+
},
|
|
305
|
+
{ immediate: !0 }
|
|
306
|
+
);
|
|
307
|
+
const W = a(() => s.value ? 2 : e.showLightView ? 3 : 4);
|
|
308
|
+
return {
|
|
309
|
+
allDataLoaded: S,
|
|
310
|
+
amountOptions: C,
|
|
311
|
+
borrowerImageStyle: P,
|
|
312
|
+
borrowerName: h,
|
|
313
|
+
borrowerNameWithCountry: O,
|
|
314
|
+
lightDetailedAmount: G,
|
|
315
|
+
distributionModel: v,
|
|
316
|
+
formattedLocation: g,
|
|
317
|
+
formattedWebsite: D,
|
|
318
|
+
fundraisingPercent: B,
|
|
319
|
+
hasProgressData: _,
|
|
320
|
+
imageHash: N,
|
|
321
|
+
isLightDetailedVariant: s,
|
|
322
|
+
isLoading: T,
|
|
323
|
+
isPostGoalVariant: m,
|
|
324
|
+
loanAmount: f,
|
|
325
|
+
loanBorrowerCount: L,
|
|
326
|
+
loanCallouts: k,
|
|
327
|
+
loanStatus: y,
|
|
328
|
+
loanUse: A,
|
|
329
|
+
loanUsePrefixEnd: V,
|
|
330
|
+
loanUsePrefixStart: U,
|
|
331
|
+
mdiLink: J,
|
|
332
|
+
mdiCached: z,
|
|
333
|
+
mdiArrowRight: H,
|
|
334
|
+
readMorePath: R,
|
|
335
|
+
shouldShowRefreshButton: w,
|
|
336
|
+
tag: F,
|
|
337
|
+
unreservedAmount: u,
|
|
338
|
+
sharesAvailable: M,
|
|
339
|
+
selectedAmount: l,
|
|
340
|
+
statementTitle: x,
|
|
341
|
+
customStyle: E,
|
|
342
|
+
loanUseLoadingRows: W,
|
|
343
|
+
visibleUseStatement: I,
|
|
344
|
+
clickReadMore: K,
|
|
345
|
+
trackWebsiteClick: () => {
|
|
346
|
+
e.kvTrackFunction(
|
|
347
|
+
"Lending",
|
|
348
|
+
"click-Business Website",
|
|
349
|
+
"Website",
|
|
350
|
+
e.loanId
|
|
351
|
+
);
|
|
352
|
+
},
|
|
353
|
+
handleRefreshButton: (t) => {
|
|
354
|
+
o("refresh-button", t);
|
|
355
|
+
},
|
|
356
|
+
handleSelectedAmount: (t) => {
|
|
357
|
+
var n;
|
|
358
|
+
l.value = t, o("update:selected-amount", t), e.kvTrackFunction(
|
|
359
|
+
"Lending",
|
|
360
|
+
"Modify lend amount",
|
|
361
|
+
t,
|
|
362
|
+
e.loanId ?? ((n = e.loan) == null ? void 0 : n.id)
|
|
363
|
+
);
|
|
364
|
+
}
|
|
365
|
+
};
|
|
366
|
+
},
|
|
367
|
+
computed: {
|
|
368
|
+
isInBasket() {
|
|
369
|
+
var e;
|
|
370
|
+
return ((e = this.basketItems) == null ? void 0 : e.some((o) => o.__typename === "LoanReservation" && o.id === this.loanId)) ?? !1;
|
|
371
|
+
},
|
|
372
|
+
hasMatchingInfo() {
|
|
373
|
+
var e, o, l;
|
|
374
|
+
return !!((e = this.loan) != null && e.matchingText) || this.enableMultiMatching && (((l = (o = this.loan) == null ? void 0 : o.simultaneousMatching) == null ? void 0 : l.length) ?? 0) > 0;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
};
|
|
378
|
+
export {
|
|
379
|
+
$e as KV_COMPACT_LOAN_CARD_FRAGMENT,
|
|
380
|
+
je as KV_COMPACT_LOAN_CARD_USER_FRAGMENT,
|
|
381
|
+
qe as default
|
|
382
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import w from "./
|
|
1
|
+
import w from "./KvContentfulImg.script.js";
|
|
2
2
|
import { openBlock as e, createElementBlock as a, createElementVNode as h, Fragment as c, renderList as o, createCommentVNode as r, normalizeStyle as m, createTextVNode as f, toDisplayString as s } from "vue";
|
|
3
3
|
import u from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const b = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import o from "./
|
|
1
|
+
import o from "./KvCountdownTimer.script.js";
|
|
2
2
|
import { openBlock as r, createElementBlock as n, toDisplayString as t, createCommentVNode as m } from "vue";
|
|
3
3
|
import i from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const c = { key: 0 };
|
package/dist/vue/KvDatePicker.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import h from "./
|
|
1
|
+
import h from "./KvDatePicker.script.js";
|
|
2
2
|
import { resolveComponent as r, openBlock as l, createBlock as u, withCtx as c, createElementVNode as e, normalizeClass as v, createVNode as _, mergeProps as k, renderSlot as f, createElementBlock as x } from "vue";
|
|
3
3
|
import "./KvDatePicker.css";
|
|
4
4
|
import z from "../_virtual/_plugin-vue_export-helper.js";
|
package/dist/vue/KvExpandable.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import r from "./
|
|
1
|
+
import r from "./KvExpandable.script.js";
|
|
2
2
|
import { openBlock as t, createBlock as n, Transition as a, withCtx as c, renderSlot as f } from "vue";
|
|
3
3
|
import i from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
function l(o, p, s, e, d, _) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _ from "./
|
|
1
|
+
import _ from "./KvExpandableQuestion.script.js";
|
|
2
2
|
import { resolveComponent as i, openBlock as l, createElementBlock as c, createElementVNode as e, toDisplayString as m, createVNode as s, withModifiers as f, withCtx as p, withDirectives as v, renderSlot as h, createCommentVNode as k, vShow as u } from "vue";
|
|
3
3
|
import x from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const g = { class: "tw-whitespace-normal" }, C = { class: "tw-text-subhead tw-text-left" }, b = { class: "tw-prose tw-pb-4 tw-pt-2" }, y = ["innerHTML"];
|
package/dist/vue/KvFlag.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import d from "./
|
|
1
|
+
import d from "./KvFlag.script.js";
|
|
2
2
|
import { openBlock as a, createElementBlock as r, normalizeStyle as l, normalizeClass as s, createElementVNode as c, toDisplayString as o, createCommentVNode as n } from "vue";
|
|
3
3
|
import "./KvFlag.css";
|
|
4
4
|
import i from "../_virtual/_plugin-vue_export-helper.js";
|
|
@@ -1,97 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import K from "./KvLoadingSpinner.js";
|
|
3
|
-
const M = ["data-testid", "aria-busy"], T = {
|
|
4
|
-
key: 0,
|
|
5
|
-
class: "tw-w-full tw-flex tw-content-center tw-justify-center",
|
|
6
|
-
style: { "min-height": "200px" }
|
|
7
|
-
}, U = ["src", "height", "title"], S = "https://kiva.tfaforms.net", z = /* @__PURE__ */ N({
|
|
8
|
-
__name: "KvFormAssemblyForm",
|
|
9
|
-
props: {
|
|
10
|
-
/**
|
|
11
|
-
* The numeric FormAssembly form id. The iframe is not rendered until this is set.
|
|
12
|
-
*/
|
|
13
|
-
formAssemblyId: {
|
|
14
|
-
type: Number,
|
|
15
|
-
default: null
|
|
16
|
-
},
|
|
17
|
-
/**
|
|
18
|
-
* Additional query params to add to the form url, should include leading ?
|
|
19
|
-
* FormAssembly uses these to prefill fields. Callers that need tracking ids in the
|
|
20
|
-
* form are responsible for resolving them and merging them in here.
|
|
21
|
-
*/
|
|
22
|
-
additionalQueryParams: {
|
|
23
|
-
type: String,
|
|
24
|
-
default: ""
|
|
25
|
-
},
|
|
26
|
-
/**
|
|
27
|
-
* Accessible name for the embedded form iframe. Describe the form's purpose,
|
|
28
|
-
* e.g. "Newsletter signup form".
|
|
29
|
-
*/
|
|
30
|
-
title: {
|
|
31
|
-
type: String,
|
|
32
|
-
default: "FormAssembly form"
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
emits: ["fa-form-loaded", "fa-form-submitted", "fa-form-closed"],
|
|
36
|
-
setup(c, { emit: L }) {
|
|
37
|
-
const V = (t) => Array.isArray(t) && typeof t[0] == "string" && typeof t[1] == "string", e = c, f = L, n = a(!0), m = a(null), u = a(null), R = H(() => e.formAssemblyId ? `kv-form-assembly-form-${e.formAssemblyId}` : "kv-form-assembly-form"), l = a(""), y = a(500), x = () => {
|
|
38
|
-
const r = new URLSearchParams((e.additionalQueryParams || "").replace(/^\?/, "")).toString();
|
|
39
|
-
return r ? `?${r}` : "";
|
|
40
|
-
}, $ = () => {
|
|
41
|
-
typeof window > "u" || !(e != null && e.formAssemblyId) || (l.value = `${S}/${e.formAssemblyId}${x()}`);
|
|
42
|
-
};
|
|
43
|
-
P(() => {
|
|
44
|
-
m.value && $();
|
|
45
|
-
});
|
|
46
|
-
const _ = () => {
|
|
47
|
-
n.value && (n.value = !1, f("fa-form-loaded"));
|
|
48
|
-
}, v = (t) => {
|
|
49
|
-
var p, w, b, h, A, k;
|
|
50
|
-
if (t.origin !== S) return;
|
|
51
|
-
const r = (p = u.value) == null ? void 0 : p.contentWindow;
|
|
52
|
-
if (r && t.source !== r) return;
|
|
53
|
-
const o = (w = t == null ? void 0 : t.data) == null ? void 0 : w.type;
|
|
54
|
-
if (o === "fa_frame_loaded" && _(), o === "fa_frame_data" || o === "fa_form_page_change" || o === "fa_form_submitted") {
|
|
55
|
-
const i = ((b = t == null ? void 0 : t.data) == null ? void 0 : b.frameHeight) ?? 300;
|
|
56
|
-
y.value = i + 30;
|
|
57
|
-
}
|
|
58
|
-
if (o === "fa_form_closed" && f("fa-form-closed"), o === "fa_form_submitted") {
|
|
59
|
-
const i = ((h = t == null ? void 0 : t.data) == null ? void 0 : h.analytics) ?? null, F = (A = t == null ? void 0 : t.data) == null ? void 0 : A.isValid, C = ((k = t == null ? void 0 : t.data) == null ? void 0 : k.selectedValues) ?? null, E = typeof F == "boolean" ? F : V(i);
|
|
60
|
-
f("fa-form-submitted", {
|
|
61
|
-
analytics: i,
|
|
62
|
-
selectedValues: C,
|
|
63
|
-
valid: E
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
return Q(() => {
|
|
68
|
-
window.addEventListener("message", v);
|
|
69
|
-
}), B(() => {
|
|
70
|
-
window.removeEventListener("message", v);
|
|
71
|
-
}), (t, r) => (d(), s("div", {
|
|
72
|
-
ref_key: "formContainerRef",
|
|
73
|
-
ref: m,
|
|
74
|
-
class: "kv-form-assembly-form tw-w-full",
|
|
75
|
-
"data-testid": R.value,
|
|
76
|
-
"aria-busy": n.value
|
|
77
|
-
}, [
|
|
78
|
-
n.value ? (d(), s("div", T, [
|
|
79
|
-
D(K, { class: "tw-self-center" })
|
|
80
|
-
])) : I("", !0),
|
|
81
|
-
l.value ? (d(), s("iframe", {
|
|
82
|
-
key: 1,
|
|
83
|
-
ref_key: "iFrameRef",
|
|
84
|
-
ref: u,
|
|
85
|
-
class: "tw-mx-auto tw-w-full",
|
|
86
|
-
src: l.value,
|
|
87
|
-
height: y.value,
|
|
88
|
-
title: c.title,
|
|
89
|
-
frameborder: "0",
|
|
90
|
-
onLoad: _
|
|
91
|
-
}, null, 40, U)) : I("", !0)
|
|
92
|
-
], 8, M));
|
|
93
|
-
}
|
|
94
|
-
});
|
|
1
|
+
import f from "./KvFormAssemblyForm.script.js";
|
|
95
2
|
export {
|
|
96
|
-
|
|
3
|
+
f as default
|
|
97
4
|
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { defineComponent as N, ref as a, computed as H, watchEffect as P, onMounted as Q, onUnmounted as B, openBlock as d, createElementBlock as s, createVNode as D, createCommentVNode as I } from "vue";
|
|
2
|
+
import K from "./KvLoadingSpinner.js";
|
|
3
|
+
const M = ["data-testid", "aria-busy"], T = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "tw-w-full tw-flex tw-content-center tw-justify-center",
|
|
6
|
+
style: { "min-height": "200px" }
|
|
7
|
+
}, U = ["src", "height", "title"], S = "https://kiva.tfaforms.net", z = /* @__PURE__ */ N({
|
|
8
|
+
__name: "KvFormAssemblyForm",
|
|
9
|
+
props: {
|
|
10
|
+
/**
|
|
11
|
+
* The numeric FormAssembly form id. The iframe is not rendered until this is set.
|
|
12
|
+
*/
|
|
13
|
+
formAssemblyId: {
|
|
14
|
+
type: Number,
|
|
15
|
+
default: null
|
|
16
|
+
},
|
|
17
|
+
/**
|
|
18
|
+
* Additional query params to add to the form url, should include leading ?
|
|
19
|
+
* FormAssembly uses these to prefill fields. Callers that need tracking ids in the
|
|
20
|
+
* form are responsible for resolving them and merging them in here.
|
|
21
|
+
*/
|
|
22
|
+
additionalQueryParams: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: ""
|
|
25
|
+
},
|
|
26
|
+
/**
|
|
27
|
+
* Accessible name for the embedded form iframe. Describe the form's purpose,
|
|
28
|
+
* e.g. "Newsletter signup form".
|
|
29
|
+
*/
|
|
30
|
+
title: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: "FormAssembly form"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
emits: ["fa-form-loaded", "fa-form-submitted", "fa-form-closed"],
|
|
36
|
+
setup(c, { emit: L }) {
|
|
37
|
+
const V = (t) => Array.isArray(t) && typeof t[0] == "string" && typeof t[1] == "string", e = c, f = L, n = a(!0), m = a(null), u = a(null), R = H(() => e.formAssemblyId ? `kv-form-assembly-form-${e.formAssemblyId}` : "kv-form-assembly-form"), l = a(""), y = a(500), x = () => {
|
|
38
|
+
const r = new URLSearchParams((e.additionalQueryParams || "").replace(/^\?/, "")).toString();
|
|
39
|
+
return r ? `?${r}` : "";
|
|
40
|
+
}, $ = () => {
|
|
41
|
+
typeof window > "u" || !(e != null && e.formAssemblyId) || (l.value = `${S}/${e.formAssemblyId}${x()}`);
|
|
42
|
+
};
|
|
43
|
+
P(() => {
|
|
44
|
+
m.value && $();
|
|
45
|
+
});
|
|
46
|
+
const _ = () => {
|
|
47
|
+
n.value && (n.value = !1, f("fa-form-loaded"));
|
|
48
|
+
}, v = (t) => {
|
|
49
|
+
var p, w, b, h, A, k;
|
|
50
|
+
if (t.origin !== S) return;
|
|
51
|
+
const r = (p = u.value) == null ? void 0 : p.contentWindow;
|
|
52
|
+
if (r && t.source !== r) return;
|
|
53
|
+
const o = (w = t == null ? void 0 : t.data) == null ? void 0 : w.type;
|
|
54
|
+
if (o === "fa_frame_loaded" && _(), o === "fa_frame_data" || o === "fa_form_page_change" || o === "fa_form_submitted") {
|
|
55
|
+
const i = ((b = t == null ? void 0 : t.data) == null ? void 0 : b.frameHeight) ?? 300;
|
|
56
|
+
y.value = i + 30;
|
|
57
|
+
}
|
|
58
|
+
if (o === "fa_form_closed" && f("fa-form-closed"), o === "fa_form_submitted") {
|
|
59
|
+
const i = ((h = t == null ? void 0 : t.data) == null ? void 0 : h.analytics) ?? null, F = (A = t == null ? void 0 : t.data) == null ? void 0 : A.isValid, C = ((k = t == null ? void 0 : t.data) == null ? void 0 : k.selectedValues) ?? null, E = typeof F == "boolean" ? F : V(i);
|
|
60
|
+
f("fa-form-submitted", {
|
|
61
|
+
analytics: i,
|
|
62
|
+
selectedValues: C,
|
|
63
|
+
valid: E
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
return Q(() => {
|
|
68
|
+
window.addEventListener("message", v);
|
|
69
|
+
}), B(() => {
|
|
70
|
+
window.removeEventListener("message", v);
|
|
71
|
+
}), (t, r) => (d(), s("div", {
|
|
72
|
+
ref_key: "formContainerRef",
|
|
73
|
+
ref: m,
|
|
74
|
+
class: "kv-form-assembly-form tw-w-full",
|
|
75
|
+
"data-testid": R.value,
|
|
76
|
+
"aria-busy": n.value
|
|
77
|
+
}, [
|
|
78
|
+
n.value ? (d(), s("div", T, [
|
|
79
|
+
D(K, { class: "tw-self-center" })
|
|
80
|
+
])) : I("", !0),
|
|
81
|
+
l.value ? (d(), s("iframe", {
|
|
82
|
+
key: 1,
|
|
83
|
+
ref_key: "iFrameRef",
|
|
84
|
+
ref: u,
|
|
85
|
+
class: "tw-mx-auto tw-w-full",
|
|
86
|
+
src: l.value,
|
|
87
|
+
height: y.value,
|
|
88
|
+
title: c.title,
|
|
89
|
+
frameborder: "0",
|
|
90
|
+
onLoad: _
|
|
91
|
+
}, null, 40, U)) : I("", !0)
|
|
92
|
+
], 8, M));
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
export {
|
|
96
|
+
z as default
|
|
97
|
+
};
|
package/dist/vue/KvGrid.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import o from "./
|
|
1
|
+
import o from "./KvGrid.script.js";
|
|
2
2
|
import { openBlock as r, createBlock as a, resolveDynamicComponent as n, withCtx as s, renderSlot as c } from "vue";
|
|
3
3
|
import p from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
function d(t, f, e, i, l, m) {
|
package/dist/vue/KvIconBag.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import c from "./
|
|
1
|
+
import c from "./KvIconBag.script.js";
|
|
2
2
|
import { openBlock as n, createElementBlock as s, createElementVNode as e, toDisplayString as i, createCommentVNode as l } from "vue";
|
|
3
3
|
import r from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const d = {
|