@kiva/kv-components 7.6.3 → 8.0.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/.eslintignore +5 -0
- package/.github/copilot-instructions.md +11 -0
- package/AGENTS.md +184 -0
- package/CLAUDE.md +11 -0
- package/GEMINI.md +11 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +236 -216
- package/dist/utils/Alea.d.ts +9 -0
- package/dist/utils/Alea.js +23 -23
- package/dist/utils/arrayUtils.d.ts +3 -0
- package/dist/utils/arrayUtils.js +1 -1
- package/dist/utils/attrs.d.ts +6 -0
- package/dist/utils/carousels.d.ts +21 -0
- package/dist/utils/comparators.d.ts +3 -0
- package/dist/utils/comparators.js +20 -6
- package/dist/utils/debounce.d.ts +1 -0
- package/dist/utils/debounce.js +4 -4
- package/dist/utils/event.d.ts +1 -0
- package/dist/utils/event.js +7 -0
- package/dist/utils/expander.d.ts +14 -0
- package/dist/utils/imageUtils.d.ts +11 -0
- package/dist/utils/imageUtils.js +12 -12
- package/dist/utils/index.d.ts +21 -0
- package/dist/utils/loanCard.d.ts +35 -0
- package/dist/utils/loanCard.js +2 -2
- package/dist/utils/loanSearch/queryParamUtils.d.ts +1 -0
- package/dist/utils/loanUtils.d.ts +11 -0
- package/dist/utils/loanUtils.js +56 -53
- package/dist/utils/mapUtils.d.ts +5 -0
- package/dist/utils/markMatches.d.ts +1 -0
- package/dist/utils/paramCase.d.ts +1 -0
- package/dist/utils/printing.d.ts +2 -0
- package/dist/utils/scrollLock.d.ts +4 -0
- package/dist/utils/themeUtils.d.ts +12 -0
- package/dist/utils/throttle.d.ts +1 -0
- package/dist/utils/throttle.js +4 -4
- package/dist/utils/touchEvents.d.ts +3 -0
- package/dist/utils/touchEvents.js +9 -9
- package/dist/utils/treemap.d.ts +16 -0
- package/dist/utils/treemap.js +1 -1
- package/dist/vue/KvAccordionItem.js +28 -82
- package/dist/vue/KvAccordionItem.vue.d.ts +107 -0
- package/dist/vue/KvAccordionItem2.js +60 -0
- package/dist/vue/KvActivityRow.js +11 -22
- package/dist/vue/KvActivityRow.vue.d.ts +66 -0
- package/dist/vue/KvActivityRow2.js +16 -0
- package/dist/vue/KvAtbModal.css +1 -1
- package/dist/vue/KvAtbModal.js +68 -248
- package/dist/vue/KvAtbModal.vue.d.ts +359 -0
- package/dist/vue/KvAtbModal2.js +186 -0
- package/dist/vue/KvBorrowerImage.js +17 -118
- package/dist/vue/KvBorrowerImage.vue.d.ts +62 -0
- package/dist/vue/KvBorrowerImage2.js +106 -0
- package/dist/vue/KvButton.js +20 -164
- package/dist/vue/KvButton.vue.d.ts +94 -0
- package/dist/vue/KvButton2.js +149 -0
- package/dist/vue/KvCardFrame.js +12 -74
- package/dist/vue/KvCardFrame.vue.d.ts +86 -0
- package/dist/vue/KvCardFrame2.js +67 -0
- package/dist/vue/KvCarousel.css +1 -1
- package/dist/vue/KvCarousel.js +55 -192
- package/dist/vue/KvCarousel.vue.d.ts +135 -0
- package/dist/vue/KvCarousel2.js +142 -0
- package/dist/vue/KvCartModal.css +1 -1
- package/dist/vue/KvCartModal.js +31 -131
- package/dist/vue/KvCartModal.vue.d.ts +163 -0
- package/dist/vue/KvCartModal2.js +106 -0
- package/dist/vue/KvCartPill.js +12 -51
- package/dist/vue/KvCartPill.vue.d.ts +52 -0
- package/dist/vue/KvCartPill2.js +45 -0
- package/dist/vue/KvCheckbox.css +1 -1
- package/dist/vue/KvCheckbox.js +30 -126
- package/dist/vue/KvCheckbox.vue.d.ts +90 -0
- package/dist/vue/KvCheckbox2.js +102 -0
- package/dist/vue/KvCheckoutReceipt.css +1 -1
- package/dist/vue/KvCheckoutReceipt.js +120 -199
- package/dist/vue/KvCheckoutReceipt.vue.d.ts +164 -0
- package/dist/vue/KvCheckoutReceipt2.js +85 -0
- package/dist/vue/KvChip.js +12 -29
- package/dist/vue/KvChip.vue.d.ts +22 -0
- package/dist/vue/KvChip2.js +22 -0
- package/dist/vue/KvClassicLoanCard.css +1 -1
- package/dist/vue/KvClassicLoanCard.js +83 -351
- package/dist/vue/KvClassicLoanCard.vue.d.ts +2120 -0
- package/dist/vue/KvClassicLoanCard2.js +281 -0
- package/dist/vue/KvCommentsAdd.css +1 -1
- package/dist/vue/KvCommentsAdd.js +34 -81
- package/dist/vue/KvCommentsAdd.vue.d.ts +296 -0
- package/dist/vue/KvCommentsAdd2.js +57 -0
- package/dist/vue/KvCommentsContainer.js +15 -66
- package/dist/vue/KvCommentsContainer.vue.d.ts +954 -0
- package/dist/vue/KvCommentsContainer2.js +58 -0
- package/dist/vue/KvCommentsHeartButton.css +1 -1
- package/dist/vue/KvCommentsHeartButton.js +12 -51
- package/dist/vue/KvCommentsHeartButton.vue.d.ts +42 -0
- package/dist/vue/KvCommentsHeartButton2.js +44 -0
- package/dist/vue/KvCommentsList.js +9 -51
- package/dist/vue/KvCommentsList.vue.d.ts +619 -0
- package/dist/vue/KvCommentsList2.js +46 -0
- package/dist/vue/KvCommentsListItem.js +62 -186
- package/dist/vue/KvCommentsListItem.vue.d.ts +571 -0
- package/dist/vue/KvCommentsListItem2.js +135 -0
- package/dist/vue/KvCommentsReplyButton.css +1 -1
- package/dist/vue/KvCommentsReplyButton.js +8 -17
- package/dist/vue/KvCommentsReplyButton.vue.d.ts +98 -0
- package/dist/vue/KvCommentsReplyButton2.js +13 -0
- package/dist/vue/KvCompactLoanCard.css +1 -1
- package/dist/vue/KvCompactLoanCard.js +71 -327
- package/dist/vue/KvCompactLoanCard.vue.d.ts +1272 -0
- package/dist/vue/KvCompactLoanCard2.js +269 -0
- package/dist/vue/KvContentfulImg.js +51 -164
- package/dist/vue/KvContentfulImg.vue.d.ts +107 -0
- package/dist/vue/KvContentfulImg2.js +119 -0
- package/dist/vue/KvCountdownTimer.js +8 -28
- package/dist/vue/KvCountdownTimer.vue.d.ts +15 -0
- package/dist/vue/KvCountdownTimer2.js +26 -0
- package/dist/vue/KvDatePicker.js +21 -101
- package/dist/vue/KvDatePicker.vue.d.ts +58 -0
- package/dist/vue/KvDatePicker2.js +86 -0
- package/dist/vue/KvExpandable.js +9 -56
- package/dist/vue/KvExpandable.vue.d.ts +53 -0
- package/dist/vue/KvExpandable2.js +52 -0
- package/dist/vue/KvExpandableQuestion.js +23 -82
- package/dist/vue/KvExpandableQuestion.vue.d.ts +124 -0
- package/dist/vue/KvExpandableQuestion2.js +65 -0
- package/dist/vue/KvFlag.css +1 -1
- package/dist/vue/KvFlag.js +16 -617
- package/dist/vue/KvFlag.vue.d.ts +66 -0
- package/dist/vue/KvFlag2.js +606 -0
- package/dist/vue/KvGrid.js +7 -18
- package/dist/vue/KvGrid.vue.d.ts +14 -0
- package/dist/vue/KvGrid2.js +15 -0
- package/dist/vue/KvIconBag.js +12 -18
- package/dist/vue/KvIconBag.vue.d.ts +14 -0
- package/dist/vue/KvIconBag2.js +11 -0
- package/dist/vue/KvImpactDashboardHeader.vue.d.ts +17 -0
- package/dist/vue/KvImpactVerticalSelector.js +31 -110
- package/dist/vue/KvImpactVerticalSelector.vue.d.ts +278 -0
- package/dist/vue/KvImpactVerticalSelector2.js +85 -0
- package/dist/vue/KvInlineActivityCard.js +15 -44
- package/dist/vue/KvInlineActivityCard.vue.d.ts +71 -0
- package/dist/vue/KvInlineActivityCard2.js +35 -0
- package/dist/vue/KvInlineActivityFeed.css +1 -1
- package/dist/vue/KvInlineActivityFeed.js +11 -23
- package/dist/vue/KvInlineActivityFeed.vue.d.ts +85 -0
- package/dist/vue/KvInlineActivityFeed2.js +17 -0
- package/dist/vue/KvIntroductionLoanCard.css +1 -1
- package/dist/vue/KvIntroductionLoanCard.js +111 -309
- package/dist/vue/KvIntroductionLoanCard.vue.d.ts +617 -0
- package/dist/vue/KvIntroductionLoanCard2.js +209 -0
- package/dist/vue/KvLendAmountButton.js +9 -53
- package/dist/vue/KvLendAmountButton.vue.d.ts +140 -0
- package/dist/vue/KvLendAmountButton2.js +48 -0
- package/dist/vue/KvLendCta.css +1 -1
- package/dist/vue/KvLendCta.js +150 -530
- package/dist/vue/KvLendCta.vue.d.ts +583 -0
- package/dist/vue/KvLendCta2.js +387 -0
- package/dist/vue/KvLightbox.js +37 -148
- package/dist/vue/KvLightbox.vue.d.ts +77 -0
- package/dist/vue/KvLightbox2.js +117 -0
- package/dist/vue/KvLineGraph.js +25 -58
- package/dist/vue/KvLineGraph.vue.d.ts +35 -0
- package/dist/vue/KvLineGraph2.js +39 -0
- package/dist/vue/KvLoadingPlaceholder.vue.d.ts +2 -0
- package/dist/vue/KvLoadingSpinner.js +9 -34
- package/dist/vue/KvLoadingSpinner.vue.d.ts +27 -0
- package/dist/vue/KvLoadingSpinner2.js +29 -0
- package/dist/vue/KvLoanActivities.css +1 -1
- package/dist/vue/KvLoanActivities.js +37 -179
- package/dist/vue/KvLoanActivities.vue.d.ts +853 -0
- package/dist/vue/KvLoanActivities2.js +151 -0
- package/dist/vue/KvLoanBookmark.js +14 -40
- package/dist/vue/KvLoanBookmark.vue.d.ts +32 -0
- package/dist/vue/KvLoanBookmark2.js +32 -0
- package/dist/vue/KvLoanCallouts.css +1 -1
- package/dist/vue/KvLoanCallouts.js +10 -17
- package/dist/vue/KvLoanCallouts.vue.d.ts +18 -0
- package/dist/vue/KvLoanCallouts2.js +12 -0
- package/dist/vue/KvLoanInfoCard.js +20 -19
- package/dist/vue/KvLoanProgressGroup.css +1 -1
- package/dist/vue/KvLoanProgressGroup.js +18 -57
- package/dist/vue/KvLoanProgressGroup.vue.d.ts +108 -0
- package/dist/vue/KvLoanProgressGroup2.js +44 -0
- package/dist/vue/KvLoanTag.js +15 -103
- package/dist/vue/KvLoanTag.vue.d.ts +46 -0
- package/dist/vue/KvLoanTag2.js +94 -0
- package/dist/vue/KvLoanTeamPick.vue.d.ts +2 -0
- package/dist/vue/KvLoanUse.js +12 -100
- package/dist/vue/KvLoanUse.vue.d.ts +120 -0
- package/dist/vue/KvLoanUse2.js +95 -0
- package/dist/vue/KvLogo.vue.d.ts +2 -0
- package/dist/vue/KvMap.js +13 -381
- package/dist/vue/KvMap.vue.d.ts +213 -0
- package/dist/vue/KvMap2.js +376 -0
- package/dist/vue/KvMaterialIcon.js +10 -20
- package/dist/vue/KvMaterialIcon.vue.d.ts +14 -0
- package/dist/vue/KvMaterialIcon2.js +15 -0
- package/dist/vue/KvPageContainer.js +9 -8
- package/dist/vue/KvPageContainer.vue.d.ts +2 -0
- package/dist/vue/KvPageContainer2.js +4 -0
- package/dist/vue/KvPagination.js +38 -138
- package/dist/vue/KvPagination.vue.d.ts +107 -0
- package/dist/vue/KvPagination2.js +105 -0
- package/dist/vue/KvPieChart.css +1 -1
- package/dist/vue/KvPieChart.js +49 -128
- package/dist/vue/KvPieChart.vue.d.ts +47 -0
- package/dist/vue/KvPieChart2.js +85 -0
- package/dist/vue/KvPill.js +9 -19
- package/dist/vue/KvPill.vue.d.ts +23 -0
- package/dist/vue/KvPill2.js +15 -0
- package/dist/vue/KvPopper.js +14 -122
- package/dist/vue/KvPopper.vue.d.ts +80 -0
- package/dist/vue/KvPopper2.js +113 -0
- package/dist/vue/KvProgressBar.js +17 -112
- package/dist/vue/KvProgressBar.vue.d.ts +70 -0
- package/dist/vue/KvProgressBar2.js +101 -0
- package/dist/vue/KvPulsingDot.css +1 -1
- package/dist/vue/KvPulsingDot.js +11 -25
- package/dist/vue/KvPulsingDot.vue.d.ts +23 -0
- package/dist/vue/KvPulsingDot2.js +19 -0
- package/dist/vue/KvRadio.js +23 -106
- package/dist/vue/KvRadio.vue.d.ts +62 -0
- package/dist/vue/KvRadio2.js +89 -0
- package/dist/vue/KvSecondaryNav.css +1 -1
- package/dist/vue/KvSecondaryNav.js +46 -122
- package/dist/vue/KvSecondaryNav.vue.d.ts +117 -0
- package/dist/vue/KvSecondaryNav2.js +82 -0
- package/dist/vue/KvSelect.css +1 -1
- package/dist/vue/KvSelect.js +18 -78
- package/dist/vue/KvSelect.vue.d.ts +58 -0
- package/dist/vue/KvSelect2.js +66 -0
- package/dist/vue/KvSideSheet.js +44 -262
- package/dist/vue/KvSideSheet.vue.d.ts +136 -0
- package/dist/vue/KvSideSheet2.js +224 -0
- package/dist/vue/KvSwitch.js +23 -76
- package/dist/vue/KvSwitch.vue.d.ts +34 -0
- package/dist/vue/KvSwitch2.js +59 -0
- package/dist/vue/KvTab.js +15 -57
- package/dist/vue/KvTab.vue.d.ts +34 -0
- package/dist/vue/KvTab2.js +48 -0
- package/dist/vue/KvTabPanel.js +14 -36
- package/dist/vue/KvTabPanel.vue.d.ts +14 -0
- package/dist/vue/KvTabPanel2.js +28 -0
- package/dist/vue/KvTabs.js +21 -75
- package/dist/vue/KvTabs.vue.d.ts +22 -0
- package/dist/vue/KvTabs2.js +60 -0
- package/dist/vue/KvTextInput.js +28 -148
- package/dist/vue/KvTextInput.vue.d.ts +105 -0
- package/dist/vue/KvTextInput2.js +126 -0
- package/dist/vue/KvTextLink.js +13 -76
- package/dist/vue/KvTextLink.vue.d.ts +64 -0
- package/dist/vue/KvTextLink2.js +68 -0
- package/dist/vue/KvThemeProvider.js +8 -59
- package/dist/vue/KvThemeProvider.vue.d.ts +23 -0
- package/dist/vue/KvThemeProvider2.js +55 -0
- package/dist/vue/KvToast.js +32 -69
- package/dist/vue/KvToast.vue.d.ts +31 -0
- package/dist/vue/KvToast2.js +43 -0
- package/dist/vue/KvTooltip.css +1 -1
- package/dist/vue/KvTooltip.js +27 -123
- package/dist/vue/KvTooltip.vue.d.ts +2 -0
- package/dist/vue/KvTooltip2.js +103 -0
- package/dist/vue/KvTreeMapChart.css +1 -1
- package/dist/vue/KvTreeMapChart.js +28 -156
- package/dist/vue/KvTreeMapChart.vue.d.ts +60 -0
- package/dist/vue/KvTreeMapChart2.js +133 -0
- package/dist/vue/KvUserAvatar.js +28 -110
- package/dist/vue/KvUserAvatar.vue.d.ts +55 -0
- package/dist/vue/KvUserAvatar2.js +88 -0
- package/dist/vue/KvUtilityMenu.js +19 -95
- package/dist/vue/KvUtilityMenu.vue.d.ts +104 -0
- package/dist/vue/KvUtilityMenu2.js +81 -0
- package/dist/vue/KvVerticalCarousel.js +40 -137
- package/dist/vue/KvVerticalCarousel.vue.d.ts +90 -0
- package/dist/vue/KvVerticalCarousel2.js +103 -0
- package/dist/vue/KvVotingCard.css +1 -1
- package/dist/vue/KvVotingCard.js +31 -88
- package/dist/vue/KvVotingCard.vue.d.ts +249 -0
- package/dist/vue/KvVotingCard2.js +63 -0
- package/dist/vue/KvVotingCardV2.js +35 -90
- package/dist/vue/KvVotingCardV2.vue.d.ts +308 -0
- package/dist/vue/KvVotingCardV22.js +61 -0
- package/dist/vue/KvWideLoanCard.css +1 -1
- package/dist/vue/KvWideLoanCard.js +66 -274
- package/dist/vue/KvWideLoanCard.vue.d.ts +1191 -0
- package/dist/vue/KvWideLoanCard2.js +220 -0
- package/dist/vue/KvWwwHeader/KvHeaderAboutMenu.js +34 -38
- package/dist/vue/KvWwwHeader/KvHeaderAboutMenu.vue.d.ts +20 -0
- package/dist/vue/KvWwwHeader/KvHeaderAboutMenu2.js +9 -0
- package/dist/vue/KvWwwHeader/KvHeaderDropdownLink.js +20 -83
- package/dist/vue/KvWwwHeader/KvHeaderDropdownLink.vue.d.ts +91 -0
- package/dist/vue/KvWwwHeader/KvHeaderDropdownLink2.js +69 -0
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.css +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.js +77 -248
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.vue.d.ts +1071 -0
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar2.js +178 -0
- package/dist/vue/KvWwwHeader/KvHeaderLogo.js +8 -12
- package/dist/vue/KvWwwHeader/KvHeaderLogo.vue.d.ts +4 -0
- package/dist/vue/KvWwwHeader/KvHeaderLogo2.js +9 -0
- package/dist/vue/KvWwwHeader/KvHeaderMenuLink.vue.d.ts +17 -0
- package/dist/vue/KvWwwHeader/KvHeaderMobileMenu.css +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderMobileMenu.js +37 -91
- package/dist/vue/KvWwwHeader/KvHeaderMobileMenu.vue.d.ts +162 -0
- package/dist/vue/KvWwwHeader/KvHeaderMobileMenu2.js +59 -0
- package/dist/vue/KvWwwHeader/KvHeaderMyKivaMenu.js +36 -58
- package/dist/vue/KvWwwHeader/KvHeaderMyKivaMenu.vue.d.ts +59 -0
- package/dist/vue/KvWwwHeader/KvHeaderMyKivaMenu2.js +27 -0
- package/dist/vue/KvWwwHeader/KvHeaderTakeActionMenu.js +20 -24
- package/dist/vue/KvWwwHeader/KvHeaderTakeActionMenu.vue.d.ts +20 -0
- package/dist/vue/KvWwwHeader/KvHeaderTakeActionMenu2.js +9 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.css +1 -1
- package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.js +105 -181
- package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.vue.d.ts +319 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu2.js +82 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu.css +1 -1
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu.js +93 -173
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu.vue.d.ts +166 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu2.js +86 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenu.js +17 -157
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenu.vue.d.ts +506 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenu2.js +145 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuCountryList.css +1 -1
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuCountryList.js +11 -18
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuCountryList.vue.d.ts +20 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuCountryList2.js +12 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuSearchList.js +10 -16
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuSearchList.vue.d.ts +20 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuSearchList2.js +11 -0
- package/dist/vue/KvWwwHeader.css +1 -1
- package/dist/vue/KvWwwHeader.js +35 -148
- package/dist/vue/KvWwwHeader.vue.d.ts +4430 -0
- package/dist/vue/KvWwwHeader2.js +119 -0
- package/dist/vue/index.d.ts +86 -0
- package/package.json +35 -33
- package/tsconfig.json +32 -0
- package/vite.config.ts +84 -0
|
@@ -1,272 +1,192 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import O from "../../KvLoadingPlaceholder.js";
|
|
4
|
-
import B from "../../KvGrid.js";
|
|
5
|
-
import I from "../../KvMaterialIcon.js";
|
|
6
|
-
import G from "./KvLendMenuCountryList.js";
|
|
7
|
-
import U from "./KvLendMenuSearchList.js";
|
|
1
|
+
import g from "./KvLendMegaMenu2.js";
|
|
2
|
+
import { resolveComponent as m, resolveDirective as b, openBlock as n, createElementBlock as s, createElementVNode as t, normalizeStyle as S, withDirectives as r, createTextVNode as c, createVNode as d, createCommentVNode as u, withCtx as L, Fragment as w, renderList as k, toDisplayString as h, normalizeClass as C } from "vue";
|
|
8
3
|
import "./KvLendMegaMenu.css";
|
|
9
|
-
import
|
|
10
|
-
const
|
|
11
|
-
components: {
|
|
12
|
-
KvGrid: B,
|
|
13
|
-
KvLendMenuCountryList: G,
|
|
14
|
-
KvLendMenuSearchList: U,
|
|
15
|
-
KvLoadingPlaceholder: O,
|
|
16
|
-
KvMaterialIcon: I
|
|
17
|
-
},
|
|
18
|
-
props: {
|
|
19
|
-
categories: {
|
|
20
|
-
type: Array,
|
|
21
|
-
default: () => []
|
|
22
|
-
},
|
|
23
|
-
favorites: {
|
|
24
|
-
type: Number,
|
|
25
|
-
default: 0
|
|
26
|
-
},
|
|
27
|
-
isRegionsLoading: {
|
|
28
|
-
type: Boolean,
|
|
29
|
-
default: !0
|
|
30
|
-
},
|
|
31
|
-
isChannelsLoading: {
|
|
32
|
-
type: Boolean,
|
|
33
|
-
default: !0
|
|
34
|
-
},
|
|
35
|
-
userId: {
|
|
36
|
-
type: Number,
|
|
37
|
-
default: null
|
|
38
|
-
},
|
|
39
|
-
regions: {
|
|
40
|
-
type: Array,
|
|
41
|
-
default: () => []
|
|
42
|
-
},
|
|
43
|
-
searches: {
|
|
44
|
-
type: Array,
|
|
45
|
-
default: () => []
|
|
46
|
-
},
|
|
47
|
-
showMGUpsellLink: {
|
|
48
|
-
type: Boolean,
|
|
49
|
-
default: !1
|
|
50
|
-
},
|
|
51
|
-
countriesNotLentToUrl: {
|
|
52
|
-
type: String,
|
|
53
|
-
default: "/lend/countries-not-lent"
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
setup(f) {
|
|
57
|
-
const e = C(null), i = C(""), l = y(() => i.value !== ""), p = (r) => i.value === r, L = (r) => {
|
|
58
|
-
i.value = r;
|
|
59
|
-
}, h = y(() => {
|
|
60
|
-
var a;
|
|
61
|
-
const r = { width: "150%" };
|
|
62
|
-
if (l.value) {
|
|
63
|
-
const s = ((a = e.value) == null ? void 0 : a.clientWidth) ?? 0;
|
|
64
|
-
r.transform = `translateX(${s * -1}px)`;
|
|
65
|
-
}
|
|
66
|
-
return r;
|
|
67
|
-
}), k = y(() => f.regions.filter((r) => p(r.name))), _ = y(() => f.searches.length > 0);
|
|
68
|
-
return {
|
|
69
|
-
mdiArrowRight: N,
|
|
70
|
-
mdiChevronLeft: T,
|
|
71
|
-
categoriesSection: e,
|
|
72
|
-
openedSection: i,
|
|
73
|
-
sectionOpen: l,
|
|
74
|
-
isOpenSection: p,
|
|
75
|
-
openSection: L,
|
|
76
|
-
onClose: () => {
|
|
77
|
-
i.value = "";
|
|
78
|
-
},
|
|
79
|
-
openRegions: k,
|
|
80
|
-
computedStyle: h,
|
|
81
|
-
hasSearches: _,
|
|
82
|
-
savedSearchesTitle: "Saved searches"
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
}, F = { class: "lend-mega-menu tw-overflow-hidden tw-pb-3 lg:tw-pt-3" }, z = {
|
|
4
|
+
import N from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const T = { class: "lend-mega-menu tw-overflow-hidden tw-pb-3 lg:tw-pt-3" }, A = {
|
|
86
6
|
key: 0,
|
|
87
7
|
href: "/monthlygood"
|
|
88
|
-
},
|
|
8
|
+
}, R = { class: "tw-inline-flex tw-items-center tw-py-1 tw-mb-2 tw-gap-0.5 tw-font-medium tw-text-action" }, M = {
|
|
89
9
|
ref: "categoriesSection",
|
|
90
10
|
class: "tw-col-span-7"
|
|
91
|
-
},
|
|
11
|
+
}, O = { class: "tw-flex tw-gap-4 tw-whitespace-nowrap" }, I = { class: "tw-columns-2 tw-gap-4 tw-font-medium" }, V = ["href"], B = { class: "tw-font-medium" }, D = { class: "link-item" }, F = {
|
|
92
12
|
href: "/lend-by-category/recommended-by-lenders",
|
|
93
13
|
class: "mega-menu-link"
|
|
94
|
-
},
|
|
14
|
+
}, z = { class: "link-item" }, E = {
|
|
95
15
|
href: "/categories",
|
|
96
16
|
class: "mega-menu-link"
|
|
97
|
-
},
|
|
17
|
+
}, G = { class: "link-item" }, K = {
|
|
98
18
|
class: "mega-menu-link",
|
|
99
19
|
href: "/lend"
|
|
100
|
-
},
|
|
20
|
+
}, U = { key: 0 }, j = { class: "tw-font-medium" }, q = ["href"], H = {
|
|
101
21
|
key: 1,
|
|
102
22
|
class: "tw-text-secondary tw-py-1 tw-inline-block tw-no-underline hover:tw-underline"
|
|
103
|
-
},
|
|
23
|
+
}, J = ["aria-pressed"], P = {
|
|
104
24
|
key: 1,
|
|
105
25
|
class: "tw-text-secondary tw-py-1 tw-inline-block"
|
|
106
|
-
},
|
|
107
|
-
function
|
|
108
|
-
const
|
|
109
|
-
return n(),
|
|
26
|
+
}, Q = ["href"], W = { class: "tw-col-span-2" }, X = { class: "tw-col-span-8 tw-flex tw-flex-col" }, Y = { class: "tw-flex tw-whitespace-nowrap tw-h-full" }, Z = { class: "tw-font-medium" }, $ = ["aria-pressed", "onClick"];
|
|
27
|
+
function ee(te, e, o, i, ne, se) {
|
|
28
|
+
const _ = m("kv-material-icon"), y = m("kv-loading-placeholder"), f = m("kv-lend-menu-search-list"), p = m("kv-lend-menu-country-list"), x = m("kv-grid"), a = b("kv-track-event");
|
|
29
|
+
return n(), s("div", T, [
|
|
110
30
|
t("div", {
|
|
111
|
-
style:
|
|
31
|
+
style: S(i.computedStyle),
|
|
112
32
|
class: "tw-transition tw-duration-1000 tw-ease-in-out"
|
|
113
33
|
}, [
|
|
114
|
-
|
|
115
|
-
t("span",
|
|
116
|
-
e[2] || (e[2] =
|
|
117
|
-
|
|
118
|
-
icon:
|
|
34
|
+
o.showMGUpsellLink ? r((n(), s("a", A, [
|
|
35
|
+
t("span", R, [
|
|
36
|
+
e[2] || (e[2] = c(" Lend monthly ")),
|
|
37
|
+
d(_, {
|
|
38
|
+
icon: i.mdiArrowRight,
|
|
119
39
|
class: "tw-w-3 tw-h-3"
|
|
120
40
|
}, null, 8, ["icon"])
|
|
121
41
|
])
|
|
122
42
|
])), [
|
|
123
43
|
[a, ["TopNav", "click-Lend-Menu-Monthly-Good", "Lend-monthly"]]
|
|
124
|
-
]) :
|
|
125
|
-
|
|
126
|
-
default:
|
|
127
|
-
t("div",
|
|
44
|
+
]) : u("", !0),
|
|
45
|
+
d(x, { style: { "grid-template-columns": "repeat(18, minmax(0, 1fr))" } }, {
|
|
46
|
+
default: L(() => [
|
|
47
|
+
t("div", M, [
|
|
128
48
|
e[11] || (e[11] = t("h2", { class: "menu-heading tw-mb-2" }, " Categories ", -1)),
|
|
129
|
-
t("div",
|
|
130
|
-
t("ul",
|
|
131
|
-
|
|
132
|
-
key:
|
|
49
|
+
t("div", O, [
|
|
50
|
+
t("ul", I, [
|
|
51
|
+
o.isChannelsLoading ? (n(), s(w, { key: 0 }, k(14, (l) => t("li", {
|
|
52
|
+
key: l,
|
|
133
53
|
class: "link-item"
|
|
134
54
|
}, [
|
|
135
|
-
|
|
55
|
+
d(y, {
|
|
136
56
|
class: "tw-inline-block tw-align-middle",
|
|
137
57
|
style: { height: "1.25rem" }
|
|
138
58
|
}),
|
|
139
59
|
e[3] || (e[3] = t("span", { class: "tw-py-1 tw-inline-block" }, " ", -1))
|
|
140
|
-
])), 64)) : (n(!0),
|
|
141
|
-
key:
|
|
60
|
+
])), 64)) : (n(!0), s(w, { key: 1 }, k(o.categories, (l, v) => (n(), s("li", {
|
|
61
|
+
key: v,
|
|
142
62
|
class: "link-item"
|
|
143
63
|
}, [
|
|
144
|
-
|
|
145
|
-
href:
|
|
64
|
+
r((n(), s("a", {
|
|
65
|
+
href: l.url,
|
|
146
66
|
class: "tw-text-primary tw-text-left hover:tw-text-action tw-no-underline tw-my-1 tw-inline-block"
|
|
147
67
|
}, [
|
|
148
|
-
|
|
149
|
-
], 8,
|
|
150
|
-
[a, ["TopNav", "click-Lend-Category",
|
|
68
|
+
c(h(l.name), 1)
|
|
69
|
+
], 8, V)), [
|
|
70
|
+
[a, ["TopNav", "click-Lend-Category", l.name, v + 1]]
|
|
151
71
|
])
|
|
152
72
|
]))), 128))
|
|
153
73
|
]),
|
|
154
74
|
t("div", null, [
|
|
155
|
-
t("ul",
|
|
156
|
-
t("li",
|
|
157
|
-
|
|
158
|
-
|
|
75
|
+
t("ul", B, [
|
|
76
|
+
t("li", D, [
|
|
77
|
+
r((n(), s("a", F, e[4] || (e[4] = [
|
|
78
|
+
c(" Recommended by lenders ")
|
|
159
79
|
]))), [
|
|
160
80
|
[a, ["TopNav", "click-Lend-Recommended-by-lenders"]]
|
|
161
81
|
])
|
|
162
82
|
]),
|
|
163
|
-
t("li",
|
|
164
|
-
|
|
165
|
-
|
|
83
|
+
t("li", z, [
|
|
84
|
+
r((n(), s("a", E, e[5] || (e[5] = [
|
|
85
|
+
c(" All categories ")
|
|
166
86
|
]))), [
|
|
167
87
|
[a, ["TopNav", "click-Lend-All_Categories"]]
|
|
168
88
|
])
|
|
169
89
|
]),
|
|
170
|
-
t("li",
|
|
171
|
-
|
|
172
|
-
|
|
90
|
+
t("li", G, [
|
|
91
|
+
r((n(), s("a", K, e[6] || (e[6] = [
|
|
92
|
+
c(" All loans ")
|
|
173
93
|
]))), [
|
|
174
94
|
[a, ["TopNav", "click-Lend-All_Loans"]]
|
|
175
95
|
])
|
|
176
96
|
])
|
|
177
97
|
]),
|
|
178
|
-
|
|
98
|
+
o.userId ? (n(), s("div", U, [
|
|
179
99
|
e[9] || (e[9] = t("span", { class: "tw-inline-block tw-py-1" }, " ", -1)),
|
|
180
100
|
e[10] || (e[10] = t("h2", { class: "menu-heading tw-my-1" }, " My Kiva ", -1)),
|
|
181
|
-
t("ul",
|
|
101
|
+
t("ul", j, [
|
|
182
102
|
t("li", null, [
|
|
183
|
-
|
|
103
|
+
o.favorites > 0 ? r((n(), s("a", {
|
|
184
104
|
key: 0,
|
|
185
|
-
href: `/lend?lenderFavorite=${
|
|
105
|
+
href: `/lend?lenderFavorite=${o.userId}`,
|
|
186
106
|
class: "tw-text-primary tw-text-left hover:tw-text-action tw-py-1 tw-inline-block tw-no-underline hover:tw-underline"
|
|
187
107
|
}, e[7] || (e[7] = [
|
|
188
|
-
|
|
189
|
-
]), 8,
|
|
108
|
+
c(" Saved loans ")
|
|
109
|
+
]), 8, q)), [
|
|
190
110
|
[a, ["TopNav", "click-Lend-Favorites"]]
|
|
191
|
-
]) : (n(),
|
|
111
|
+
]) : (n(), s("span", H, " Saved loans "))
|
|
192
112
|
]),
|
|
193
113
|
t("li", null, [
|
|
194
|
-
|
|
114
|
+
i.hasSearches ? (n(), s("button", {
|
|
195
115
|
key: 0,
|
|
196
|
-
"aria-pressed":
|
|
116
|
+
"aria-pressed": i.isOpenSection(i.savedSearchesTitle) ? "true" : "false",
|
|
197
117
|
class: "tw-text-primary tw-text-left tw-py-1 tw-inline-block hover:tw-text-action hover:tw-underline",
|
|
198
|
-
onClick: e[0] || (e[0] = (
|
|
199
|
-
},
|
|
118
|
+
onClick: e[0] || (e[0] = (l) => i.openSection(i.savedSearchesTitle))
|
|
119
|
+
}, h(i.savedSearchesTitle), 9, J)) : (n(), s("span", P, " Saved searches "))
|
|
200
120
|
]),
|
|
201
121
|
t("li", null, [
|
|
202
|
-
|
|
203
|
-
href:
|
|
122
|
+
r((n(), s("a", {
|
|
123
|
+
href: o.countriesNotLentToUrl,
|
|
204
124
|
class: "tw-text-primary tw-text-left hover:tw-text-action tw-py-1 tw-inline-block tw-no-underline hover:tw-underline"
|
|
205
125
|
}, e[8] || (e[8] = [
|
|
206
|
-
|
|
207
|
-
]), 8,
|
|
126
|
+
c(" Countries I haven't lent to ")
|
|
127
|
+
]), 8, Q)), [
|
|
208
128
|
[a, ["TopNav", "click-Lend-Countries_Not_Lent"]]
|
|
209
129
|
])
|
|
210
130
|
])
|
|
211
131
|
])
|
|
212
|
-
])) :
|
|
132
|
+
])) : u("", !0)
|
|
213
133
|
])
|
|
214
134
|
])
|
|
215
135
|
], 512),
|
|
216
|
-
t("div",
|
|
217
|
-
|
|
136
|
+
t("div", W, [
|
|
137
|
+
i.sectionOpen ? (n(), s("button", {
|
|
218
138
|
key: 0,
|
|
219
139
|
class: "tw-flex",
|
|
220
|
-
onClick: e[1] || (e[1] = (
|
|
140
|
+
onClick: e[1] || (e[1] = (l) => i.openedSection = "")
|
|
221
141
|
}, [
|
|
222
|
-
|
|
142
|
+
d(_, {
|
|
223
143
|
class: "tw-flex-shrink-0 tw-w-3 tw-h-3",
|
|
224
|
-
icon:
|
|
144
|
+
icon: i.mdiChevronLeft
|
|
225
145
|
}, null, 8, ["icon"]),
|
|
226
146
|
e[12] || (e[12] = t("span", { class: "tw-text-base" }, " Back ", -1))
|
|
227
|
-
])) :
|
|
147
|
+
])) : u("", !0)
|
|
228
148
|
]),
|
|
229
|
-
t("div",
|
|
230
|
-
|
|
149
|
+
t("div", X, [
|
|
150
|
+
i.isOpenSection(i.savedSearchesTitle) ? (n(), s(w, { key: 0 }, [
|
|
231
151
|
e[13] || (e[13] = t("h2", { class: "menu-heading tw-mb-2" }, " Saved Searches ", -1)),
|
|
232
|
-
|
|
152
|
+
d(f, {
|
|
233
153
|
class: "search-list tw-h-full",
|
|
234
|
-
searches:
|
|
154
|
+
searches: o.searches
|
|
235
155
|
}, null, 8, ["searches"])
|
|
236
|
-
], 64)) : (n(),
|
|
156
|
+
], 64)) : (n(), s(w, { key: 1 }, [
|
|
237
157
|
e[15] || (e[15] = t("h2", { class: "menu-heading tw-mb-2" }, " Regions ", -1)),
|
|
238
|
-
t("div",
|
|
239
|
-
t("ul",
|
|
240
|
-
|
|
241
|
-
key:
|
|
158
|
+
t("div", Y, [
|
|
159
|
+
t("ul", Z, [
|
|
160
|
+
o.isRegionsLoading ? (n(), s(w, { key: 0 }, k(8, (l) => t("li", {
|
|
161
|
+
key: l,
|
|
242
162
|
class: "link-item"
|
|
243
163
|
}, [
|
|
244
|
-
|
|
164
|
+
d(y, {
|
|
245
165
|
class: "tw-inline-block tw-align-middle",
|
|
246
166
|
style: { height: "1.25rem" }
|
|
247
167
|
}),
|
|
248
168
|
e[14] || (e[14] = t("span", { class: "tw-py-1 tw-inline-block" }, " ", -1))
|
|
249
|
-
])), 64)) : (n(!0),
|
|
250
|
-
key:
|
|
169
|
+
])), 64)) : (n(!0), s(w, { key: 1 }, k(o.regions, (l) => (n(), s("li", {
|
|
170
|
+
key: l.name,
|
|
251
171
|
class: "link-item tw-mr-4"
|
|
252
172
|
}, [
|
|
253
|
-
|
|
254
|
-
"aria-pressed":
|
|
255
|
-
class:
|
|
256
|
-
onClick: (
|
|
173
|
+
r((n(), s("button", {
|
|
174
|
+
"aria-pressed": i.isOpenSection(l.name) ? "true" : "false",
|
|
175
|
+
class: C(["tw-text-primary tw-text-left tw-py-1 hover:tw-text-action hover:tw-underline", { "tw-text-action": i.isOpenSection(l.name) }]),
|
|
176
|
+
onClick: (v) => i.openSection(l.name)
|
|
257
177
|
}, [
|
|
258
|
-
|
|
259
|
-
], 10,
|
|
260
|
-
[a, ["TopNav", "click-Lend-Region",
|
|
178
|
+
c(h(l.name), 1)
|
|
179
|
+
], 10, $)), [
|
|
180
|
+
[a, ["TopNav", "click-Lend-Region", l.name]]
|
|
261
181
|
])
|
|
262
182
|
]))), 128))
|
|
263
183
|
]),
|
|
264
|
-
(n(!0),
|
|
265
|
-
key:
|
|
184
|
+
(n(!0), s(w, null, k(i.openRegions, (l) => (n(), s("div", {
|
|
185
|
+
key: l.name,
|
|
266
186
|
class: "tw-h-full"
|
|
267
187
|
}, [
|
|
268
|
-
|
|
269
|
-
countries:
|
|
188
|
+
d(p, {
|
|
189
|
+
countries: l.countries,
|
|
270
190
|
class: "region-list tw-h-full"
|
|
271
191
|
}, null, 8, ["countries"])
|
|
272
192
|
]))), 128))
|
|
@@ -279,7 +199,7 @@ function we(f, e, i, l, p, L) {
|
|
|
279
199
|
], 4)
|
|
280
200
|
]);
|
|
281
201
|
}
|
|
282
|
-
const
|
|
202
|
+
const re = /* @__PURE__ */ N(g, [["render", ee], ["__scopeId", "data-v-3e49579c"]]);
|
|
283
203
|
export {
|
|
284
|
-
|
|
204
|
+
re as default
|
|
285
205
|
};
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { LendMenuSearch } from './KvLendMenuSearchList.vue';
|
|
3
|
+
export interface Category {
|
|
4
|
+
name: string;
|
|
5
|
+
url: string;
|
|
6
|
+
}
|
|
7
|
+
export interface Region {
|
|
8
|
+
name: string;
|
|
9
|
+
countries: any[];
|
|
10
|
+
}
|
|
11
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
12
|
+
categories: {
|
|
13
|
+
type: PropType<Category[]>;
|
|
14
|
+
default: () => any[];
|
|
15
|
+
};
|
|
16
|
+
favorites: {
|
|
17
|
+
type: NumberConstructor;
|
|
18
|
+
default: number;
|
|
19
|
+
};
|
|
20
|
+
isRegionsLoading: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
isChannelsLoading: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
userId: {
|
|
29
|
+
type: NumberConstructor;
|
|
30
|
+
default: any;
|
|
31
|
+
};
|
|
32
|
+
regions: {
|
|
33
|
+
type: PropType<Region[]>;
|
|
34
|
+
default: () => any[];
|
|
35
|
+
};
|
|
36
|
+
searches: {
|
|
37
|
+
type: PropType<LendMenuSearch[]>;
|
|
38
|
+
default: () => any[];
|
|
39
|
+
};
|
|
40
|
+
showMGUpsellLink: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
countriesNotLentToUrl: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
}>, {
|
|
49
|
+
mdiArrowRight: string;
|
|
50
|
+
mdiChevronLeft: string;
|
|
51
|
+
categoriesSection: import('vue').Ref<any, any>;
|
|
52
|
+
openedSection: import('vue').Ref<string, string>;
|
|
53
|
+
sectionOpen: import('vue').ComputedRef<boolean>;
|
|
54
|
+
isOpenSection: (name: any) => boolean;
|
|
55
|
+
openSection: (name: any) => void;
|
|
56
|
+
onClose: () => void;
|
|
57
|
+
openRegions: import('vue').ComputedRef<Region[]>;
|
|
58
|
+
computedStyle: import('vue').ComputedRef<{
|
|
59
|
+
width: string;
|
|
60
|
+
transform?: string;
|
|
61
|
+
}>;
|
|
62
|
+
hasSearches: import('vue').ComputedRef<boolean>;
|
|
63
|
+
savedSearchesTitle: string;
|
|
64
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
65
|
+
categories: {
|
|
66
|
+
type: PropType<Category[]>;
|
|
67
|
+
default: () => any[];
|
|
68
|
+
};
|
|
69
|
+
favorites: {
|
|
70
|
+
type: NumberConstructor;
|
|
71
|
+
default: number;
|
|
72
|
+
};
|
|
73
|
+
isRegionsLoading: {
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
default: boolean;
|
|
76
|
+
};
|
|
77
|
+
isChannelsLoading: {
|
|
78
|
+
type: BooleanConstructor;
|
|
79
|
+
default: boolean;
|
|
80
|
+
};
|
|
81
|
+
userId: {
|
|
82
|
+
type: NumberConstructor;
|
|
83
|
+
default: any;
|
|
84
|
+
};
|
|
85
|
+
regions: {
|
|
86
|
+
type: PropType<Region[]>;
|
|
87
|
+
default: () => any[];
|
|
88
|
+
};
|
|
89
|
+
searches: {
|
|
90
|
+
type: PropType<LendMenuSearch[]>;
|
|
91
|
+
default: () => any[];
|
|
92
|
+
};
|
|
93
|
+
showMGUpsellLink: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
97
|
+
countriesNotLentToUrl: {
|
|
98
|
+
type: StringConstructor;
|
|
99
|
+
default: string;
|
|
100
|
+
};
|
|
101
|
+
}>> & Readonly<{}>, {
|
|
102
|
+
searches: LendMenuSearch[];
|
|
103
|
+
categories: Category[];
|
|
104
|
+
favorites: number;
|
|
105
|
+
userId: number;
|
|
106
|
+
regions: Region[];
|
|
107
|
+
isRegionsLoading: boolean;
|
|
108
|
+
isChannelsLoading: boolean;
|
|
109
|
+
showMGUpsellLink: boolean;
|
|
110
|
+
countriesNotLentToUrl: string;
|
|
111
|
+
}, {}, {
|
|
112
|
+
KvGrid: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
113
|
+
as: {
|
|
114
|
+
type: StringConstructor;
|
|
115
|
+
default: string;
|
|
116
|
+
};
|
|
117
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
118
|
+
as: {
|
|
119
|
+
type: StringConstructor;
|
|
120
|
+
default: string;
|
|
121
|
+
};
|
|
122
|
+
}>> & Readonly<{}>, {
|
|
123
|
+
as: string;
|
|
124
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
125
|
+
KvLendMenuCountryList: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
126
|
+
countries: {
|
|
127
|
+
type: PropType<import('./KvLendMenuCountryList.vue').LendMenuCountry[]>;
|
|
128
|
+
default: () => any[];
|
|
129
|
+
};
|
|
130
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
131
|
+
countries: {
|
|
132
|
+
type: PropType<import('./KvLendMenuCountryList.vue').LendMenuCountry[]>;
|
|
133
|
+
default: () => any[];
|
|
134
|
+
};
|
|
135
|
+
}>> & Readonly<{}>, {
|
|
136
|
+
countries: import('./KvLendMenuCountryList.vue').LendMenuCountry[];
|
|
137
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
138
|
+
KvLendMenuSearchList: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
139
|
+
searches: {
|
|
140
|
+
type: PropType<LendMenuSearch[]>;
|
|
141
|
+
default: () => any[];
|
|
142
|
+
};
|
|
143
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
144
|
+
searches: {
|
|
145
|
+
type: PropType<LendMenuSearch[]>;
|
|
146
|
+
default: () => any[];
|
|
147
|
+
};
|
|
148
|
+
}>> & Readonly<{}>, {
|
|
149
|
+
searches: LendMenuSearch[];
|
|
150
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
151
|
+
KvLoadingPlaceholder: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
152
|
+
KvMaterialIcon: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
153
|
+
icon: {
|
|
154
|
+
type: StringConstructor;
|
|
155
|
+
default: string;
|
|
156
|
+
};
|
|
157
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
158
|
+
icon: {
|
|
159
|
+
type: StringConstructor;
|
|
160
|
+
default: string;
|
|
161
|
+
};
|
|
162
|
+
}>> & Readonly<{}>, {
|
|
163
|
+
icon: string;
|
|
164
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
165
|
+
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
166
|
+
export default _default;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { mdiArrowRight as m, mdiChevronLeft as h } from "@mdi/js";
|
|
2
|
+
import { ref as l, computed as o } from "vue";
|
|
3
|
+
import y from "../../KvLoadingPlaceholder.js";
|
|
4
|
+
import v from "../../KvGrid.js";
|
|
5
|
+
import g from "../../KvMaterialIcon.js";
|
|
6
|
+
import L from "./KvLendMenuCountryList.js";
|
|
7
|
+
import S from "./KvLendMenuSearchList.js";
|
|
8
|
+
const b = {
|
|
9
|
+
components: {
|
|
10
|
+
KvGrid: v,
|
|
11
|
+
KvLendMenuCountryList: L,
|
|
12
|
+
KvLendMenuSearchList: S,
|
|
13
|
+
KvLoadingPlaceholder: y,
|
|
14
|
+
KvMaterialIcon: g
|
|
15
|
+
},
|
|
16
|
+
props: {
|
|
17
|
+
categories: {
|
|
18
|
+
type: Array,
|
|
19
|
+
default: () => []
|
|
20
|
+
},
|
|
21
|
+
favorites: {
|
|
22
|
+
type: Number,
|
|
23
|
+
default: 0
|
|
24
|
+
},
|
|
25
|
+
isRegionsLoading: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: !0
|
|
28
|
+
},
|
|
29
|
+
isChannelsLoading: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: !0
|
|
32
|
+
},
|
|
33
|
+
userId: {
|
|
34
|
+
type: Number,
|
|
35
|
+
default: null
|
|
36
|
+
},
|
|
37
|
+
regions: {
|
|
38
|
+
type: Array,
|
|
39
|
+
default: () => []
|
|
40
|
+
},
|
|
41
|
+
searches: {
|
|
42
|
+
type: Array,
|
|
43
|
+
default: () => []
|
|
44
|
+
},
|
|
45
|
+
showMGUpsellLink: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
default: !1
|
|
48
|
+
},
|
|
49
|
+
countriesNotLentToUrl: {
|
|
50
|
+
type: String,
|
|
51
|
+
default: "/lend/countries-not-lent"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
setup(n) {
|
|
55
|
+
const r = l(null), t = l(""), s = o(() => t.value !== ""), a = (e) => t.value === e, u = (e) => {
|
|
56
|
+
t.value = e;
|
|
57
|
+
}, c = o(() => {
|
|
58
|
+
var i;
|
|
59
|
+
const e = { width: "150%" };
|
|
60
|
+
if (s.value) {
|
|
61
|
+
const f = ((i = r.value) == null ? void 0 : i.clientWidth) ?? 0;
|
|
62
|
+
e.transform = `translateX(${f * -1}px)`;
|
|
63
|
+
}
|
|
64
|
+
return e;
|
|
65
|
+
}), d = o(() => n.regions.filter((e) => a(e.name))), p = o(() => n.searches.length > 0);
|
|
66
|
+
return {
|
|
67
|
+
mdiArrowRight: m,
|
|
68
|
+
mdiChevronLeft: h,
|
|
69
|
+
categoriesSection: r,
|
|
70
|
+
openedSection: t,
|
|
71
|
+
sectionOpen: s,
|
|
72
|
+
isOpenSection: a,
|
|
73
|
+
openSection: u,
|
|
74
|
+
onClose: () => {
|
|
75
|
+
t.value = "";
|
|
76
|
+
},
|
|
77
|
+
openRegions: d,
|
|
78
|
+
computedStyle: c,
|
|
79
|
+
hasSearches: p,
|
|
80
|
+
savedSearchesTitle: "Saved searches"
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
export {
|
|
85
|
+
b as default
|
|
86
|
+
};
|