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