@kiva/kv-components 4.8.5 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/copyFlags.js +11 -0
- package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/data/ne_110m_admin_0_countries.json.js +9 -0
- package/dist/index.js +181 -0
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +52 -0
- package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +1204 -0
- package/dist/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js +126 -0
- package/dist/node_modules/embla-carousel-fade/esm/embla-carousel-fade.esm.js +143 -0
- package/dist/node_modules/popper.js/dist/esm/popper.js +1037 -0
- package/dist/utils/Alea.js +31 -7
- package/dist/utils/attrs.js +17 -5
- package/dist/utils/carousels.js +96 -6
- package/dist/utils/expander.js +34 -7
- package/dist/utils/imageUtils.js +20 -7
- package/dist/utils/loanCard.js +122 -7
- package/dist/utils/loanUtils.js +78 -21
- package/dist/utils/mapUtils.js +177 -13
- package/dist/utils/printing.js +8 -7
- package/dist/utils/scrollLock.js +16 -11
- package/dist/utils/themeUtils.js +13 -0
- package/dist/utils/throttle.js +8 -5
- package/dist/utils/touchEvents.js +16 -9
- package/dist/utils/treemap.js +59 -5
- package/dist/vue/KvAccordionItem.js +95 -0
- package/dist/vue/KvActivityRow.js +36 -0
- package/dist/vue/KvBorrowerImage.js +140 -0
- package/dist/vue/KvButton.js +184 -0
- package/dist/vue/KvCarousel.css +1 -0
- package/dist/vue/KvCarousel.js +246 -0
- package/dist/vue/KvCartModal.css +1 -0
- package/dist/vue/KvCartModal.js +235 -0
- package/dist/vue/KvCheckbox.js +134 -0
- package/dist/vue/KvChip.js +43 -0
- package/dist/vue/KvClassicLoanCard.css +1 -0
- package/dist/vue/KvClassicLoanCard.js +464 -0
- package/dist/vue/KvCommentsAdd.css +1 -0
- package/dist/vue/KvCommentsAdd.js +106 -0
- package/dist/vue/KvCommentsContainer.js +80 -0
- package/dist/vue/KvCommentsHeartButton.css +1 -0
- package/dist/vue/KvCommentsHeartButton.js +62 -0
- package/dist/vue/KvCommentsList.js +65 -0
- package/dist/vue/KvCommentsListItem.js +221 -0
- package/dist/vue/KvCommentsReplyButton.css +1 -0
- package/dist/vue/KvCommentsReplyButton.js +42 -0
- package/dist/vue/KvContentfulImg.js +196 -0
- package/dist/vue/KvCountdownTimer.js +31 -0
- package/dist/vue/KvExpandable.js +65 -0
- package/dist/vue/KvExpandableQuestion.js +99 -0
- package/dist/vue/KvFlag.css +1 -0
- package/dist/vue/KvFlag.js +628 -0
- package/dist/vue/KvGrid.js +26 -0
- package/dist/vue/KvImpactDashboardHeader.css +1 -0
- package/dist/vue/KvImpactDashboardHeader.js +31 -0
- package/dist/vue/KvInlineActivityCard.css +1 -0
- package/dist/vue/KvInlineActivityCard.js +53 -0
- package/dist/vue/KvInlineActivityFeed.css +1 -0
- package/dist/vue/KvInlineActivityFeed.js +30 -0
- package/dist/vue/KvIntroductionLoanCard.css +1 -0
- package/dist/vue/KvIntroductionLoanCard.js +387 -0
- package/dist/vue/KvLendAmountButton.js +60 -0
- package/dist/vue/KvLendCta.css +1 -0
- package/dist/vue/KvLendCta.js +490 -0
- package/dist/vue/KvLightbox.js +195 -0
- package/dist/vue/KvLineGraph.js +74 -0
- package/dist/vue/KvLoadingPlaceholder.css +1 -0
- package/dist/vue/KvLoadingPlaceholder.js +11 -0
- package/dist/vue/KvLoadingSpinner.js +49 -0
- package/dist/vue/KvLoanActivities.css +1 -0
- package/dist/vue/KvLoanActivities.js +211 -0
- package/dist/vue/KvLoanBookmark.js +41 -0
- package/dist/vue/KvLoanCallouts.css +1 -0
- package/dist/vue/KvLoanCallouts.js +30 -0
- package/dist/vue/KvLoanProgressGroup.css +1 -0
- package/dist/vue/KvLoanProgressGroup.js +68 -0
- package/dist/vue/KvLoanTag.js +88 -0
- package/dist/vue/KvLoanTeamPick.js +12 -0
- package/dist/vue/KvLoanUse.js +73 -0
- package/dist/vue/KvMap.css +1 -0
- package/dist/vue/KvMap.js +372 -0
- package/dist/vue/KvMaterialIcon.js +34 -0
- package/dist/vue/KvPageContainer.js +15 -0
- package/dist/vue/KvPagination.js +163 -0
- package/dist/vue/KvPieChart.css +1 -0
- package/dist/vue/KvPieChart.js +166 -0
- package/dist/vue/KvPopper.js +132 -0
- package/dist/vue/KvProgressBar.js +118 -0
- package/dist/vue/KvRadio.js +130 -0
- package/dist/vue/KvSelect.js +92 -0
- package/dist/vue/KvSideSheet.js +158 -0
- package/dist/vue/KvSwitch.js +88 -0
- package/dist/vue/KvTab.js +67 -0
- package/dist/vue/KvTabPanel.js +56 -0
- package/dist/vue/KvTabs.js +86 -0
- package/dist/vue/KvTextInput.js +185 -0
- package/dist/vue/KvTextLink.js +93 -0
- package/dist/vue/KvThemeProvider.css +1 -0
- package/dist/vue/KvThemeProvider.js +65 -0
- package/dist/vue/KvToast.js +123 -0
- package/dist/vue/KvTooltip.css +1 -0
- package/dist/vue/KvTooltip.js +91 -0
- package/dist/vue/KvTreeMapChart.css +1 -0
- package/dist/vue/KvTreeMapChart.js +177 -0
- package/dist/vue/KvUserAvatar.js +99 -0
- package/dist/vue/KvVerticalCarousel.js +175 -0
- package/dist/vue/KvVotingCard.css +1 -0
- package/dist/vue/KvVotingCard.js +131 -0
- package/dist/vue/KvVotingCardV2.css +1 -0
- package/dist/vue/KvVotingCardV2.js +120 -0
- package/dist/vue/KvWideLoanCard.css +1 -0
- package/dist/vue/KvWideLoanCard.js +367 -0
- package/dist/vue/flags/1x1/ad.svg.js +4 -0
- package/dist/vue/flags/1x1/ae.svg.js +4 -0
- package/dist/vue/flags/1x1/af.svg.js +4 -0
- package/dist/vue/flags/1x1/ag.svg.js +4 -0
- package/dist/vue/flags/1x1/ai.svg.js +4 -0
- package/dist/vue/flags/1x1/al.svg.js +4 -0
- package/dist/vue/flags/1x1/am.svg.js +4 -0
- package/dist/vue/flags/1x1/ao.svg.js +4 -0
- package/dist/vue/flags/1x1/aq.svg.js +4 -0
- package/dist/vue/flags/1x1/ar.svg.js +4 -0
- package/dist/vue/flags/1x1/arab.svg.js +4 -0
- package/dist/vue/flags/1x1/as.svg.js +4 -0
- package/dist/vue/flags/1x1/at.svg.js +4 -0
- package/dist/vue/flags/1x1/au.svg.js +4 -0
- package/dist/vue/flags/1x1/aw.svg.js +4 -0
- package/dist/vue/flags/1x1/ax.svg.js +4 -0
- package/dist/vue/flags/1x1/az.svg.js +4 -0
- package/dist/vue/flags/1x1/ba.svg.js +4 -0
- package/dist/vue/flags/1x1/bb.svg.js +4 -0
- package/dist/vue/flags/1x1/bd.svg.js +4 -0
- package/dist/vue/flags/1x1/be.svg.js +4 -0
- package/dist/vue/flags/1x1/bf.svg.js +4 -0
- package/dist/vue/flags/1x1/bg.svg.js +4 -0
- package/dist/vue/flags/1x1/bh.svg.js +4 -0
- package/dist/vue/flags/1x1/bi.svg.js +4 -0
- package/dist/vue/flags/1x1/bj.svg.js +4 -0
- package/dist/vue/flags/1x1/bl.svg.js +4 -0
- package/dist/vue/flags/1x1/bm.svg.js +4 -0
- package/dist/vue/flags/1x1/bn.svg.js +4 -0
- package/dist/vue/flags/1x1/bo.svg.js +4 -0
- package/dist/vue/flags/1x1/bq.svg.js +4 -0
- package/dist/vue/flags/1x1/br.svg.js +4 -0
- package/dist/vue/flags/1x1/bs.svg.js +4 -0
- package/dist/vue/flags/1x1/bt.svg.js +4 -0
- package/dist/vue/flags/1x1/bv.svg.js +4 -0
- package/dist/vue/flags/1x1/bw.svg.js +4 -0
- package/dist/vue/flags/1x1/by.svg.js +4 -0
- package/dist/vue/flags/1x1/bz.svg.js +4 -0
- package/dist/vue/flags/1x1/ca.svg.js +4 -0
- package/dist/vue/flags/1x1/cc.svg.js +4 -0
- package/dist/vue/flags/1x1/cd.svg.js +4 -0
- package/dist/vue/flags/1x1/cefta.svg.js +4 -0
- package/dist/vue/flags/1x1/cf.svg.js +4 -0
- package/dist/vue/flags/1x1/cg.svg.js +4 -0
- package/dist/vue/flags/1x1/ch.svg.js +4 -0
- package/dist/vue/flags/1x1/ci.svg.js +4 -0
- package/dist/vue/flags/1x1/ck.svg.js +4 -0
- package/dist/vue/flags/1x1/cl.svg.js +4 -0
- package/dist/vue/flags/1x1/cm.svg.js +4 -0
- package/dist/vue/flags/1x1/cn.svg.js +4 -0
- package/dist/vue/flags/1x1/co.svg.js +4 -0
- package/dist/vue/flags/1x1/cp.svg.js +4 -0
- package/dist/vue/flags/1x1/cr.svg.js +4 -0
- package/dist/vue/flags/1x1/cu.svg.js +4 -0
- package/dist/vue/flags/1x1/cv.svg.js +4 -0
- package/dist/vue/flags/1x1/cw.svg.js +4 -0
- package/dist/vue/flags/1x1/cx.svg.js +4 -0
- package/dist/vue/flags/1x1/cy.svg.js +4 -0
- package/dist/vue/flags/1x1/cz.svg.js +4 -0
- package/dist/vue/flags/1x1/de.svg.js +4 -0
- package/dist/vue/flags/1x1/dg.svg.js +4 -0
- package/dist/vue/flags/1x1/dj.svg.js +4 -0
- package/dist/vue/flags/1x1/dk.svg.js +4 -0
- package/dist/vue/flags/1x1/dm.svg.js +4 -0
- package/dist/vue/flags/1x1/do.svg.js +4 -0
- package/dist/vue/flags/1x1/dz.svg.js +4 -0
- package/dist/vue/flags/1x1/eac.svg.js +4 -0
- package/dist/vue/flags/1x1/ec.svg.js +4 -0
- package/dist/vue/flags/1x1/ee.svg.js +4 -0
- package/dist/vue/flags/1x1/eg.svg.js +4 -0
- package/dist/vue/flags/1x1/eh.svg.js +4 -0
- package/dist/vue/flags/1x1/er.svg.js +4 -0
- package/dist/vue/flags/1x1/es-ct.svg.js +4 -0
- package/dist/vue/flags/1x1/es-ga.svg.js +4 -0
- package/dist/vue/flags/1x1/es-pv.svg.js +4 -0
- package/dist/vue/flags/1x1/es.svg.js +4 -0
- package/dist/vue/flags/1x1/et.svg.js +4 -0
- package/dist/vue/flags/1x1/eu.svg.js +4 -0
- package/dist/vue/flags/1x1/fi.svg.js +4 -0
- package/dist/vue/flags/1x1/fj.svg.js +4 -0
- package/dist/vue/flags/1x1/fk.svg.js +4 -0
- package/dist/vue/flags/1x1/fm.svg.js +4 -0
- package/dist/vue/flags/1x1/fo.svg.js +4 -0
- package/dist/vue/flags/1x1/fr.svg.js +4 -0
- package/dist/vue/flags/1x1/ga.svg.js +4 -0
- package/dist/vue/flags/1x1/gb-eng.svg.js +4 -0
- package/dist/vue/flags/1x1/gb-nir.svg.js +4 -0
- package/dist/vue/flags/1x1/gb-sct.svg.js +4 -0
- package/dist/vue/flags/1x1/gb-wls.svg.js +4 -0
- package/dist/vue/flags/1x1/gb.svg.js +4 -0
- package/dist/vue/flags/1x1/gd.svg.js +4 -0
- package/dist/vue/flags/1x1/ge.svg.js +4 -0
- package/dist/vue/flags/1x1/gf.svg.js +4 -0
- package/dist/vue/flags/1x1/gg.svg.js +4 -0
- package/dist/vue/flags/1x1/gh.svg.js +4 -0
- package/dist/vue/flags/1x1/gi.svg.js +4 -0
- package/dist/vue/flags/1x1/gl.svg.js +4 -0
- package/dist/vue/flags/1x1/gm.svg.js +4 -0
- package/dist/vue/flags/1x1/gn.svg.js +4 -0
- package/dist/vue/flags/1x1/gp.svg.js +4 -0
- package/dist/vue/flags/1x1/gq.svg.js +4 -0
- package/dist/vue/flags/1x1/gr.svg.js +4 -0
- package/dist/vue/flags/1x1/gs.svg.js +4 -0
- package/dist/vue/flags/1x1/gt.svg.js +4 -0
- package/dist/vue/flags/1x1/gu.svg.js +4 -0
- package/dist/vue/flags/1x1/gw.svg.js +4 -0
- package/dist/vue/flags/1x1/gy.svg.js +4 -0
- package/dist/vue/flags/1x1/hk.svg.js +4 -0
- package/dist/vue/flags/1x1/hm.svg.js +4 -0
- package/dist/vue/flags/1x1/hn.svg.js +4 -0
- package/dist/vue/flags/1x1/hr.svg.js +4 -0
- package/dist/vue/flags/1x1/ht.svg.js +4 -0
- package/dist/vue/flags/1x1/hu.svg.js +4 -0
- package/dist/vue/flags/1x1/ic.svg.js +4 -0
- package/dist/vue/flags/1x1/id.svg.js +4 -0
- package/dist/vue/flags/1x1/ie.svg.js +4 -0
- package/dist/vue/flags/1x1/il.svg.js +4 -0
- package/dist/vue/flags/1x1/im.svg.js +4 -0
- package/dist/vue/flags/1x1/in.svg.js +4 -0
- package/dist/vue/flags/1x1/io.svg.js +4 -0
- package/dist/vue/flags/1x1/iq.svg.js +4 -0
- package/dist/vue/flags/1x1/ir.svg.js +4 -0
- package/dist/vue/flags/1x1/is.svg.js +4 -0
- package/dist/vue/flags/1x1/it.svg.js +4 -0
- package/dist/vue/flags/1x1/je.svg.js +4 -0
- package/dist/vue/flags/1x1/jm.svg.js +4 -0
- package/dist/vue/flags/1x1/jo.svg.js +4 -0
- package/dist/vue/flags/1x1/jp.svg.js +4 -0
- package/dist/vue/flags/1x1/ke.svg.js +4 -0
- package/dist/vue/flags/1x1/kg.svg.js +4 -0
- package/dist/vue/flags/1x1/kh.svg.js +4 -0
- package/dist/vue/flags/1x1/ki.svg.js +4 -0
- package/dist/vue/flags/1x1/km.svg.js +4 -0
- package/dist/vue/flags/1x1/kn.svg.js +4 -0
- package/dist/vue/flags/1x1/kp.svg.js +4 -0
- package/dist/vue/flags/1x1/kr.svg.js +4 -0
- package/dist/vue/flags/1x1/kw.svg.js +4 -0
- package/dist/vue/flags/1x1/ky.svg.js +4 -0
- package/dist/vue/flags/1x1/kz.svg.js +4 -0
- package/dist/vue/flags/1x1/la.svg.js +4 -0
- package/dist/vue/flags/1x1/lb.svg.js +4 -0
- package/dist/vue/flags/1x1/lc.svg.js +4 -0
- package/dist/vue/flags/1x1/li.svg.js +4 -0
- package/dist/vue/flags/1x1/lk.svg.js +4 -0
- package/dist/vue/flags/1x1/lr.svg.js +4 -0
- package/dist/vue/flags/1x1/ls.svg.js +4 -0
- package/dist/vue/flags/1x1/lt.svg.js +4 -0
- package/dist/vue/flags/1x1/lu.svg.js +4 -0
- package/dist/vue/flags/1x1/lv.svg.js +4 -0
- package/dist/vue/flags/1x1/ly.svg.js +4 -0
- package/dist/vue/flags/1x1/ma.svg.js +4 -0
- package/dist/vue/flags/1x1/mc.svg.js +4 -0
- package/dist/vue/flags/1x1/md.svg.js +4 -0
- package/dist/vue/flags/1x1/me.svg.js +4 -0
- package/dist/vue/flags/1x1/mf.svg.js +4 -0
- package/dist/vue/flags/1x1/mg.svg.js +4 -0
- package/dist/vue/flags/1x1/mh.svg.js +4 -0
- package/dist/vue/flags/1x1/mk.svg.js +4 -0
- package/dist/vue/flags/1x1/ml.svg.js +4 -0
- package/dist/vue/flags/1x1/mm.svg.js +4 -0
- package/dist/vue/flags/1x1/mn.svg.js +4 -0
- package/dist/vue/flags/1x1/mo.svg.js +4 -0
- package/dist/vue/flags/1x1/mp.svg.js +4 -0
- package/dist/vue/flags/1x1/mq.svg.js +4 -0
- package/dist/vue/flags/1x1/mr.svg.js +4 -0
- package/dist/vue/flags/1x1/ms.svg.js +4 -0
- package/dist/vue/flags/1x1/mt.svg.js +4 -0
- package/dist/vue/flags/1x1/mu.svg.js +4 -0
- package/dist/vue/flags/1x1/mv.svg.js +4 -0
- package/dist/vue/flags/1x1/mw.svg.js +4 -0
- package/dist/vue/flags/1x1/mx.svg.js +4 -0
- package/dist/vue/flags/1x1/my.svg.js +4 -0
- package/dist/vue/flags/1x1/mz.svg.js +4 -0
- package/dist/vue/flags/1x1/na.svg.js +4 -0
- package/dist/vue/flags/1x1/nc.svg.js +4 -0
- package/dist/vue/flags/1x1/ne.svg.js +4 -0
- package/dist/vue/flags/1x1/nf.svg.js +4 -0
- package/dist/vue/flags/1x1/ng.svg.js +4 -0
- package/dist/vue/flags/1x1/ni.svg.js +4 -0
- package/dist/vue/flags/1x1/nl.svg.js +4 -0
- package/dist/vue/flags/1x1/no.svg.js +4 -0
- package/dist/vue/flags/1x1/np.svg.js +4 -0
- package/dist/vue/flags/1x1/nr.svg.js +4 -0
- package/dist/vue/flags/1x1/nu.svg.js +4 -0
- package/dist/vue/flags/1x1/nz.svg.js +4 -0
- package/dist/vue/flags/1x1/om.svg.js +4 -0
- package/dist/vue/flags/1x1/pa.svg.js +4 -0
- package/dist/vue/flags/1x1/pc.svg.js +4 -0
- package/dist/vue/flags/1x1/pe.svg.js +4 -0
- package/dist/vue/flags/1x1/pf.svg.js +4 -0
- package/dist/vue/flags/1x1/pg.svg.js +4 -0
- package/dist/vue/flags/1x1/ph.svg.js +4 -0
- package/dist/vue/flags/1x1/pk.svg.js +4 -0
- package/dist/vue/flags/1x1/pl.svg.js +4 -0
- package/dist/vue/flags/1x1/pm.svg.js +4 -0
- package/dist/vue/flags/1x1/pn.svg.js +4 -0
- package/dist/vue/flags/1x1/pr.svg.js +4 -0
- package/dist/vue/flags/1x1/ps.svg.js +4 -0
- package/dist/vue/flags/1x1/pt.svg.js +4 -0
- package/dist/vue/flags/1x1/pw.svg.js +4 -0
- package/dist/vue/flags/1x1/py.svg.js +4 -0
- package/dist/vue/flags/1x1/qa.svg.js +4 -0
- package/dist/vue/flags/1x1/re.svg.js +4 -0
- package/dist/vue/flags/1x1/ro.svg.js +4 -0
- package/dist/vue/flags/1x1/rs.svg.js +4 -0
- package/dist/vue/flags/1x1/ru.svg.js +4 -0
- package/dist/vue/flags/1x1/rw.svg.js +4 -0
- package/dist/vue/flags/1x1/sa.svg.js +4 -0
- package/dist/vue/flags/1x1/sb.svg.js +4 -0
- package/dist/vue/flags/1x1/sc.svg.js +4 -0
- package/dist/vue/flags/1x1/sd.svg.js +4 -0
- package/dist/vue/flags/1x1/se.svg.js +4 -0
- package/dist/vue/flags/1x1/sg.svg.js +4 -0
- package/dist/vue/flags/1x1/sh-ac.svg.js +4 -0
- package/dist/vue/flags/1x1/sh-hl.svg.js +4 -0
- package/dist/vue/flags/1x1/sh-ta.svg.js +4 -0
- package/dist/vue/flags/1x1/sh.svg.js +4 -0
- package/dist/vue/flags/1x1/si.svg.js +4 -0
- package/dist/vue/flags/1x1/sj.svg.js +4 -0
- package/dist/vue/flags/1x1/sk.svg.js +4 -0
- package/dist/vue/flags/1x1/sl.svg.js +4 -0
- package/dist/vue/flags/1x1/sm.svg.js +4 -0
- package/dist/vue/flags/1x1/sn.svg.js +4 -0
- package/dist/vue/flags/1x1/so.svg.js +4 -0
- package/dist/vue/flags/1x1/sr.svg.js +4 -0
- package/dist/vue/flags/1x1/ss.svg.js +4 -0
- package/dist/vue/flags/1x1/st.svg.js +4 -0
- package/dist/vue/flags/1x1/sv.svg.js +4 -0
- package/dist/vue/flags/1x1/sx.svg.js +4 -0
- package/dist/vue/flags/1x1/sy.svg.js +4 -0
- package/dist/vue/flags/1x1/sz.svg.js +4 -0
- package/dist/vue/flags/1x1/tc.svg.js +4 -0
- package/dist/vue/flags/1x1/td.svg.js +4 -0
- package/dist/vue/flags/1x1/tf.svg.js +4 -0
- package/dist/vue/flags/1x1/tg.svg.js +4 -0
- package/dist/vue/flags/1x1/th.svg.js +4 -0
- package/dist/vue/flags/1x1/tj.svg.js +4 -0
- package/dist/vue/flags/1x1/tk.svg.js +4 -0
- package/dist/vue/flags/1x1/tl.svg.js +4 -0
- package/dist/vue/flags/1x1/tm.svg.js +4 -0
- package/dist/vue/flags/1x1/tn.svg.js +4 -0
- package/dist/vue/flags/1x1/to.svg.js +4 -0
- package/dist/vue/flags/1x1/tr.svg.js +4 -0
- package/dist/vue/flags/1x1/tt.svg.js +4 -0
- package/dist/vue/flags/1x1/tv.svg.js +4 -0
- package/dist/vue/flags/1x1/tw.svg.js +4 -0
- package/dist/vue/flags/1x1/tz.svg.js +4 -0
- package/dist/vue/flags/1x1/ua.svg.js +4 -0
- package/dist/vue/flags/1x1/ug.svg.js +4 -0
- package/dist/vue/flags/1x1/um.svg.js +4 -0
- package/dist/vue/flags/1x1/un.svg.js +4 -0
- package/dist/vue/flags/1x1/us.svg.js +4 -0
- package/dist/vue/flags/1x1/uy.svg.js +4 -0
- package/dist/vue/flags/1x1/uz.svg.js +4 -0
- package/dist/vue/flags/1x1/va.svg.js +4 -0
- package/dist/vue/flags/1x1/vc.svg.js +4 -0
- package/dist/vue/flags/1x1/ve.svg.js +4 -0
- package/dist/vue/flags/1x1/vg.svg.js +4 -0
- package/dist/vue/flags/1x1/vi.svg.js +4 -0
- package/dist/vue/flags/1x1/vn.svg.js +4 -0
- package/dist/vue/flags/1x1/vu.svg.js +4 -0
- package/dist/vue/flags/1x1/wf.svg.js +4 -0
- package/dist/vue/flags/1x1/ws.svg.js +4 -0
- package/dist/vue/flags/1x1/xk.svg.js +4 -0
- package/dist/vue/flags/1x1/xx.svg.js +4 -0
- package/dist/vue/flags/1x1/ye.svg.js +4 -0
- package/dist/vue/flags/1x1/yt.svg.js +4 -0
- package/dist/vue/flags/1x1/za.svg.js +4 -0
- package/dist/vue/flags/1x1/zm.svg.js +4 -0
- package/dist/vue/flags/1x1/zw.svg.js +4 -0
- package/dist/vue/flags/4x3/ad.svg.js +4 -0
- package/dist/vue/flags/4x3/ae.svg.js +4 -0
- package/dist/vue/flags/4x3/af.svg.js +4 -0
- package/dist/vue/flags/4x3/ag.svg.js +4 -0
- package/dist/vue/flags/4x3/ai.svg.js +4 -0
- package/dist/vue/flags/4x3/al.svg.js +4 -0
- package/dist/vue/flags/4x3/am.svg.js +4 -0
- package/dist/vue/flags/4x3/ao.svg.js +4 -0
- package/dist/vue/flags/4x3/aq.svg.js +4 -0
- package/dist/vue/flags/4x3/ar.svg.js +4 -0
- package/dist/vue/flags/4x3/arab.svg.js +4 -0
- package/dist/vue/flags/4x3/as.svg.js +4 -0
- package/dist/vue/flags/4x3/at.svg.js +4 -0
- package/dist/vue/flags/4x3/au.svg.js +4 -0
- package/dist/vue/flags/4x3/aw.svg.js +4 -0
- package/dist/vue/flags/4x3/ax.svg.js +4 -0
- package/dist/vue/flags/4x3/az.svg.js +4 -0
- package/dist/vue/flags/4x3/ba.svg.js +4 -0
- package/dist/vue/flags/4x3/bb.svg.js +4 -0
- package/dist/vue/flags/4x3/bd.svg.js +4 -0
- package/dist/vue/flags/4x3/be.svg.js +4 -0
- package/dist/vue/flags/4x3/bf.svg.js +4 -0
- package/dist/vue/flags/4x3/bg.svg.js +4 -0
- package/dist/vue/flags/4x3/bh.svg.js +4 -0
- package/dist/vue/flags/4x3/bi.svg.js +4 -0
- package/dist/vue/flags/4x3/bj.svg.js +4 -0
- package/dist/vue/flags/4x3/bl.svg.js +4 -0
- package/dist/vue/flags/4x3/bm.svg.js +4 -0
- package/dist/vue/flags/4x3/bn.svg.js +4 -0
- package/dist/vue/flags/4x3/bo.svg.js +4 -0
- package/dist/vue/flags/4x3/bq.svg.js +4 -0
- package/dist/vue/flags/4x3/br.svg.js +4 -0
- package/dist/vue/flags/4x3/bs.svg.js +4 -0
- package/dist/vue/flags/4x3/bt.svg.js +4 -0
- package/dist/vue/flags/4x3/bv.svg.js +4 -0
- package/dist/vue/flags/4x3/bw.svg.js +4 -0
- package/dist/vue/flags/4x3/by.svg.js +4 -0
- package/dist/vue/flags/4x3/bz.svg.js +4 -0
- package/dist/vue/flags/4x3/ca.svg.js +4 -0
- package/dist/vue/flags/4x3/cc.svg.js +4 -0
- package/dist/vue/flags/4x3/cd.svg.js +4 -0
- package/dist/vue/flags/4x3/cefta.svg.js +4 -0
- package/dist/vue/flags/4x3/cf.svg.js +4 -0
- package/dist/vue/flags/4x3/cg.svg.js +4 -0
- package/dist/vue/flags/4x3/ch.svg.js +4 -0
- package/dist/vue/flags/4x3/ci.svg.js +4 -0
- package/dist/vue/flags/4x3/ck.svg.js +4 -0
- package/dist/vue/flags/4x3/cl.svg.js +4 -0
- package/dist/vue/flags/4x3/cm.svg.js +4 -0
- package/dist/vue/flags/4x3/cn.svg.js +4 -0
- package/dist/vue/flags/4x3/co.svg.js +4 -0
- package/dist/vue/flags/4x3/cp.svg.js +4 -0
- package/dist/vue/flags/4x3/cr.svg.js +4 -0
- package/dist/vue/flags/4x3/cu.svg.js +4 -0
- package/dist/vue/flags/4x3/cv.svg.js +4 -0
- package/dist/vue/flags/4x3/cw.svg.js +4 -0
- package/dist/vue/flags/4x3/cx.svg.js +4 -0
- package/dist/vue/flags/4x3/cy.svg.js +4 -0
- package/dist/vue/flags/4x3/cz.svg.js +4 -0
- package/dist/vue/flags/4x3/de.svg.js +4 -0
- package/dist/vue/flags/4x3/dg.svg.js +4 -0
- package/dist/vue/flags/4x3/dj.svg.js +4 -0
- package/dist/vue/flags/4x3/dk.svg.js +4 -0
- package/dist/vue/flags/4x3/dm.svg.js +4 -0
- package/dist/vue/flags/4x3/do.svg.js +4 -0
- package/dist/vue/flags/4x3/dz.svg.js +4 -0
- package/dist/vue/flags/4x3/eac.svg.js +4 -0
- package/dist/vue/flags/4x3/ec.svg.js +4 -0
- package/dist/vue/flags/4x3/ee.svg.js +4 -0
- package/dist/vue/flags/4x3/eg.svg.js +4 -0
- package/dist/vue/flags/4x3/eh.svg.js +4 -0
- package/dist/vue/flags/4x3/er.svg.js +4 -0
- package/dist/vue/flags/4x3/es-ct.svg.js +4 -0
- package/dist/vue/flags/4x3/es-ga.svg.js +4 -0
- package/dist/vue/flags/4x3/es-pv.svg.js +4 -0
- package/dist/vue/flags/4x3/es.svg.js +4 -0
- package/dist/vue/flags/4x3/et.svg.js +4 -0
- package/dist/vue/flags/4x3/eu.svg.js +4 -0
- package/dist/vue/flags/4x3/fi.svg.js +4 -0
- package/dist/vue/flags/4x3/fj.svg.js +4 -0
- package/dist/vue/flags/4x3/fk.svg.js +4 -0
- package/dist/vue/flags/4x3/fm.svg.js +4 -0
- package/dist/vue/flags/4x3/fo.svg.js +4 -0
- package/dist/vue/flags/4x3/fr.svg.js +4 -0
- package/dist/vue/flags/4x3/ga.svg.js +4 -0
- package/dist/vue/flags/4x3/gb-eng.svg.js +4 -0
- package/dist/vue/flags/4x3/gb-nir.svg.js +4 -0
- package/dist/vue/flags/4x3/gb-sct.svg.js +4 -0
- package/dist/vue/flags/4x3/gb-wls.svg.js +4 -0
- package/dist/vue/flags/4x3/gb.svg.js +4 -0
- package/dist/vue/flags/4x3/gd.svg.js +4 -0
- package/dist/vue/flags/4x3/ge.svg.js +4 -0
- package/dist/vue/flags/4x3/gf.svg.js +4 -0
- package/dist/vue/flags/4x3/gg.svg.js +4 -0
- package/dist/vue/flags/4x3/gh.svg.js +4 -0
- package/dist/vue/flags/4x3/gi.svg.js +4 -0
- package/dist/vue/flags/4x3/gl.svg.js +4 -0
- package/dist/vue/flags/4x3/gm.svg.js +4 -0
- package/dist/vue/flags/4x3/gn.svg.js +4 -0
- package/dist/vue/flags/4x3/gp.svg.js +4 -0
- package/dist/vue/flags/4x3/gq.svg.js +4 -0
- package/dist/vue/flags/4x3/gr.svg.js +4 -0
- package/dist/vue/flags/4x3/gs.svg.js +4 -0
- package/dist/vue/flags/4x3/gt.svg.js +4 -0
- package/dist/vue/flags/4x3/gu.svg.js +4 -0
- package/dist/vue/flags/4x3/gw.svg.js +4 -0
- package/dist/vue/flags/4x3/gy.svg.js +4 -0
- package/dist/vue/flags/4x3/hk.svg.js +4 -0
- package/dist/vue/flags/4x3/hm.svg.js +4 -0
- package/dist/vue/flags/4x3/hn.svg.js +4 -0
- package/dist/vue/flags/4x3/hr.svg.js +4 -0
- package/dist/vue/flags/4x3/ht.svg.js +4 -0
- package/dist/vue/flags/4x3/hu.svg.js +4 -0
- package/dist/vue/flags/4x3/ic.svg.js +4 -0
- package/dist/vue/flags/4x3/id.svg.js +4 -0
- package/dist/vue/flags/4x3/ie.svg.js +4 -0
- package/dist/vue/flags/4x3/il.svg.js +4 -0
- package/dist/vue/flags/4x3/im.svg.js +4 -0
- package/dist/vue/flags/4x3/in.svg.js +4 -0
- package/dist/vue/flags/4x3/io.svg.js +4 -0
- package/dist/vue/flags/4x3/iq.svg.js +4 -0
- package/dist/vue/flags/4x3/ir.svg.js +4 -0
- package/dist/vue/flags/4x3/is.svg.js +4 -0
- package/dist/vue/flags/4x3/it.svg.js +4 -0
- package/dist/vue/flags/4x3/je.svg.js +4 -0
- package/dist/vue/flags/4x3/jm.svg.js +4 -0
- package/dist/vue/flags/4x3/jo.svg.js +4 -0
- package/dist/vue/flags/4x3/jp.svg.js +4 -0
- package/dist/vue/flags/4x3/ke.svg.js +4 -0
- package/dist/vue/flags/4x3/kg.svg.js +4 -0
- package/dist/vue/flags/4x3/kh.svg.js +4 -0
- package/dist/vue/flags/4x3/ki.svg.js +4 -0
- package/dist/vue/flags/4x3/km.svg.js +4 -0
- package/dist/vue/flags/4x3/kn.svg.js +4 -0
- package/dist/vue/flags/4x3/kp.svg.js +4 -0
- package/dist/vue/flags/4x3/kr.svg.js +4 -0
- package/dist/vue/flags/4x3/kw.svg.js +4 -0
- package/dist/vue/flags/4x3/ky.svg.js +4 -0
- package/dist/vue/flags/4x3/kz.svg.js +4 -0
- package/dist/vue/flags/4x3/la.svg.js +4 -0
- package/dist/vue/flags/4x3/lb.svg.js +4 -0
- package/dist/vue/flags/4x3/lc.svg.js +4 -0
- package/dist/vue/flags/4x3/li.svg.js +4 -0
- package/dist/vue/flags/4x3/lk.svg.js +4 -0
- package/dist/vue/flags/4x3/lr.svg.js +4 -0
- package/dist/vue/flags/4x3/ls.svg.js +4 -0
- package/dist/vue/flags/4x3/lt.svg.js +4 -0
- package/dist/vue/flags/4x3/lu.svg.js +4 -0
- package/dist/vue/flags/4x3/lv.svg.js +4 -0
- package/dist/vue/flags/4x3/ly.svg.js +4 -0
- package/dist/vue/flags/4x3/ma.svg.js +4 -0
- package/dist/vue/flags/4x3/mc.svg.js +4 -0
- package/dist/vue/flags/4x3/md.svg.js +4 -0
- package/dist/vue/flags/4x3/me.svg.js +4 -0
- package/dist/vue/flags/4x3/mf.svg.js +4 -0
- package/dist/vue/flags/4x3/mg.svg.js +4 -0
- package/dist/vue/flags/4x3/mh.svg.js +4 -0
- package/dist/vue/flags/4x3/mk.svg.js +4 -0
- package/dist/vue/flags/4x3/ml.svg.js +4 -0
- package/dist/vue/flags/4x3/mm.svg.js +4 -0
- package/dist/vue/flags/4x3/mn.svg.js +4 -0
- package/dist/vue/flags/4x3/mo.svg.js +4 -0
- package/dist/vue/flags/4x3/mp.svg.js +4 -0
- package/dist/vue/flags/4x3/mq.svg.js +4 -0
- package/dist/vue/flags/4x3/mr.svg.js +4 -0
- package/dist/vue/flags/4x3/ms.svg.js +4 -0
- package/dist/vue/flags/4x3/mt.svg.js +4 -0
- package/dist/vue/flags/4x3/mu.svg.js +4 -0
- package/dist/vue/flags/4x3/mv.svg.js +4 -0
- package/dist/vue/flags/4x3/mw.svg.js +4 -0
- package/dist/vue/flags/4x3/mx.svg.js +4 -0
- package/dist/vue/flags/4x3/my.svg.js +4 -0
- package/dist/vue/flags/4x3/mz.svg.js +4 -0
- package/dist/vue/flags/4x3/na.svg.js +4 -0
- package/dist/vue/flags/4x3/nc.svg.js +4 -0
- package/dist/vue/flags/4x3/ne.svg.js +4 -0
- package/dist/vue/flags/4x3/nf.svg.js +4 -0
- package/dist/vue/flags/4x3/ng.svg.js +4 -0
- package/dist/vue/flags/4x3/ni.svg.js +4 -0
- package/dist/vue/flags/4x3/nl.svg.js +4 -0
- package/dist/vue/flags/4x3/no.svg.js +4 -0
- package/dist/vue/flags/4x3/np.svg.js +4 -0
- package/dist/vue/flags/4x3/nr.svg.js +4 -0
- package/dist/vue/flags/4x3/nu.svg.js +4 -0
- package/dist/vue/flags/4x3/nz.svg.js +4 -0
- package/dist/vue/flags/4x3/om.svg.js +4 -0
- package/dist/vue/flags/4x3/pa.svg.js +4 -0
- package/dist/vue/flags/4x3/pc.svg.js +4 -0
- package/dist/vue/flags/4x3/pe.svg.js +4 -0
- package/dist/vue/flags/4x3/pf.svg.js +4 -0
- package/dist/vue/flags/4x3/pg.svg.js +4 -0
- package/dist/vue/flags/4x3/ph.svg.js +4 -0
- package/dist/vue/flags/4x3/pk.svg.js +4 -0
- package/dist/vue/flags/4x3/pl.svg.js +4 -0
- package/dist/vue/flags/4x3/pm.svg.js +4 -0
- package/dist/vue/flags/4x3/pn.svg.js +4 -0
- package/dist/vue/flags/4x3/pr.svg.js +4 -0
- package/dist/vue/flags/4x3/ps.svg.js +4 -0
- package/dist/vue/flags/4x3/pt.svg.js +4 -0
- package/dist/vue/flags/4x3/pw.svg.js +4 -0
- package/dist/vue/flags/4x3/py.svg.js +4 -0
- package/dist/vue/flags/4x3/qa.svg.js +4 -0
- package/dist/vue/flags/4x3/re.svg.js +4 -0
- package/dist/vue/flags/4x3/ro.svg.js +4 -0
- package/dist/vue/flags/4x3/rs.svg.js +4 -0
- package/dist/vue/flags/4x3/ru.svg.js +4 -0
- package/dist/vue/flags/4x3/rw.svg.js +4 -0
- package/dist/vue/flags/4x3/sa.svg.js +4 -0
- package/dist/vue/flags/4x3/sb.svg.js +4 -0
- package/dist/vue/flags/4x3/sc.svg.js +4 -0
- package/dist/vue/flags/4x3/sd.svg.js +4 -0
- package/dist/vue/flags/4x3/se.svg.js +4 -0
- package/dist/vue/flags/4x3/sg.svg.js +4 -0
- package/dist/vue/flags/4x3/sh-ac.svg.js +4 -0
- package/dist/vue/flags/4x3/sh-hl.svg.js +4 -0
- package/dist/vue/flags/4x3/sh-ta.svg.js +4 -0
- package/dist/vue/flags/4x3/sh.svg.js +4 -0
- package/dist/vue/flags/4x3/si.svg.js +4 -0
- package/dist/vue/flags/4x3/sj.svg.js +4 -0
- package/dist/vue/flags/4x3/sk.svg.js +4 -0
- package/dist/vue/flags/4x3/sl.svg.js +4 -0
- package/dist/vue/flags/4x3/sm.svg.js +4 -0
- package/dist/vue/flags/4x3/sn.svg.js +4 -0
- package/dist/vue/flags/4x3/so.svg.js +4 -0
- package/dist/vue/flags/4x3/sr.svg.js +4 -0
- package/dist/vue/flags/4x3/ss.svg.js +4 -0
- package/dist/vue/flags/4x3/st.svg.js +4 -0
- package/dist/vue/flags/4x3/sv.svg.js +4 -0
- package/dist/vue/flags/4x3/sx.svg.js +4 -0
- package/dist/vue/flags/4x3/sy.svg.js +4 -0
- package/dist/vue/flags/4x3/sz.svg.js +4 -0
- package/dist/vue/flags/4x3/tc.svg.js +4 -0
- package/dist/vue/flags/4x3/td.svg.js +4 -0
- package/dist/vue/flags/4x3/tf.svg.js +4 -0
- package/dist/vue/flags/4x3/tg.svg.js +4 -0
- package/dist/vue/flags/4x3/th.svg.js +4 -0
- package/dist/vue/flags/4x3/tj.svg.js +4 -0
- package/dist/vue/flags/4x3/tk.svg.js +4 -0
- package/dist/vue/flags/4x3/tl.svg.js +4 -0
- package/dist/vue/flags/4x3/tm.svg.js +4 -0
- package/dist/vue/flags/4x3/tn.svg.js +4 -0
- package/dist/vue/flags/4x3/to.svg.js +4 -0
- package/dist/vue/flags/4x3/tr.svg.js +4 -0
- package/dist/vue/flags/4x3/tt.svg.js +4 -0
- package/dist/vue/flags/4x3/tv.svg.js +4 -0
- package/dist/vue/flags/4x3/tw.svg.js +4 -0
- package/dist/vue/flags/4x3/tz.svg.js +4 -0
- package/dist/vue/flags/4x3/ua.svg.js +4 -0
- package/dist/vue/flags/4x3/ug.svg.js +4 -0
- package/dist/vue/flags/4x3/um.svg.js +4 -0
- package/dist/vue/flags/4x3/un.svg.js +4 -0
- package/dist/vue/flags/4x3/us.svg.js +4 -0
- package/dist/vue/flags/4x3/uy.svg.js +4 -0
- package/dist/vue/flags/4x3/uz.svg.js +4 -0
- package/dist/vue/flags/4x3/va.svg.js +4 -0
- package/dist/vue/flags/4x3/vc.svg.js +4 -0
- package/dist/vue/flags/4x3/ve.svg.js +4 -0
- package/dist/vue/flags/4x3/vg.svg.js +4 -0
- package/dist/vue/flags/4x3/vi.svg.js +4 -0
- package/dist/vue/flags/4x3/vn.svg.js +4 -0
- package/dist/vue/flags/4x3/vu.svg.js +4 -0
- package/dist/vue/flags/4x3/wf.svg.js +4 -0
- package/dist/vue/flags/4x3/ws.svg.js +4 -0
- package/dist/vue/flags/4x3/xk.svg.js +4 -0
- package/dist/vue/flags/4x3/xx.svg.js +4 -0
- package/dist/vue/flags/4x3/ye.svg.js +4 -0
- package/dist/vue/flags/4x3/yt.svg.js +4 -0
- package/dist/vue/flags/4x3/za.svg.js +4 -0
- package/dist/vue/flags/4x3/zm.svg.js +4 -0
- package/dist/vue/flags/4x3/zw.svg.js +4 -0
- package/package.json +60 -52
- package/.eslintrc.cjs +0 -23
- package/CHANGELOG.md +0 -3604
- package/__mocks__/ResizeObserver.js +0 -13
- package/babel.config.cjs +0 -12
- package/data/countries-borders.json +0 -1
- package/data/ne_110m_admin_0_countries.json +0 -1
- package/dist/components/.storybook/main.js +0 -88
- package/dist/components/.storybook/package.json +0 -3
- package/dist/components/.storybook/preview.js +0 -53
- package/dist/components/.storybook/tailwind.css +0 -5
- package/dist/components/KvAccordionItem.vue +0 -130
- package/dist/components/KvActivityRow.vue +0 -33
- package/dist/components/KvBorrowerImage.vue +0 -179
- package/dist/components/KvButton.vue +0 -288
- package/dist/components/KvCarousel.vue +0 -314
- package/dist/components/KvCartModal.vue +0 -365
- package/dist/components/KvCheckbox.vue +0 -203
- package/dist/components/KvChip.vue +0 -54
- package/dist/components/KvClassicLoanCard.vue +0 -527
- package/dist/components/KvCommentsAdd.vue +0 -135
- package/dist/components/KvCommentsContainer.vue +0 -84
- package/dist/components/KvCommentsHeartButton.vue +0 -70
- package/dist/components/KvCommentsList.vue +0 -68
- package/dist/components/KvCommentsListItem.vue +0 -241
- package/dist/components/KvCommentsReplyButton.vue +0 -52
- package/dist/components/KvContentfulImg.vue +0 -273
- package/dist/components/KvCountdownTimer.vue +0 -59
- package/dist/components/KvExpandable.vue +0 -84
- package/dist/components/KvExpandableQuestion.vue +0 -120
- package/dist/components/KvFlag.vue +0 -120
- package/dist/components/KvGrid.vue +0 -28
- package/dist/components/KvImpactDashboardHeader.vue +0 -40
- package/dist/components/KvInlineActivityCard.vue +0 -55
- package/dist/components/KvInlineActivityFeed.vue +0 -38
- package/dist/components/KvIntroductionLoanCard.vue +0 -449
- package/dist/components/KvLendAmountButton.vue +0 -65
- package/dist/components/KvLendCta.vue +0 -589
- package/dist/components/KvLightbox.vue +0 -334
- package/dist/components/KvLineGraph.vue +0 -128
- package/dist/components/KvLoadingPlaceholder.vue +0 -38
- package/dist/components/KvLoadingSpinner.vue +0 -81
- package/dist/components/KvLoanActivities.vue +0 -268
- package/dist/components/KvLoanBookmark.vue +0 -39
- package/dist/components/KvLoanCallouts.vue +0 -53
- package/dist/components/KvLoanProgressGroup.vue +0 -76
- package/dist/components/KvLoanTag.vue +0 -88
- package/dist/components/KvLoanTeamPick.vue +0 -44
- package/dist/components/KvLoanUse.vue +0 -92
- package/dist/components/KvMap.vue +0 -599
- package/dist/components/KvMaterialIcon.vue +0 -47
- package/dist/components/KvPageContainer.vue +0 -15
- package/dist/components/KvPagination.vue +0 -198
- package/dist/components/KvPieChart.vue +0 -257
- package/dist/components/KvPopper.vue +0 -178
- package/dist/components/KvProgressBar.vue +0 -149
- package/dist/components/KvRadio.vue +0 -198
- package/dist/components/KvSelect.vue +0 -114
- package/dist/components/KvSideSheet.vue +0 -203
- package/dist/components/KvSwitch.vue +0 -143
- package/dist/components/KvTab.vue +0 -90
- package/dist/components/KvTabPanel.vue +0 -64
- package/dist/components/KvTabs.vue +0 -182
- package/dist/components/KvTextInput.vue +0 -250
- package/dist/components/KvTextLink.vue +0 -138
- package/dist/components/KvThemeProvider.vue +0 -122
- package/dist/components/KvToast.vue +0 -221
- package/dist/components/KvTooltip.vue +0 -168
- package/dist/components/KvTreeMapChart.vue +0 -229
- package/dist/components/KvUserAvatar.vue +0 -132
- package/dist/components/KvVerticalCarousel.vue +0 -219
- package/dist/components/KvVotingCard.vue +0 -160
- package/dist/components/KvVotingCardV2.vue +0 -154
- package/dist/components/KvWideLoanCard.vue +0 -433
- package/dist/components/stories/Forms.stories.js +0 -62
- package/dist/components/stories/KvAccordionItem.stories.js +0 -24
- package/dist/components/stories/KvActivityRow.stories.js +0 -27
- package/dist/components/stories/KvBorrowerImage.stories.js +0 -62
- package/dist/components/stories/KvButton.stories.js +0 -142
- package/dist/components/stories/KvCarousel.stories.js +0 -489
- package/dist/components/stories/KvCartModal.stories.js +0 -51
- package/dist/components/stories/KvCheckbox.stories.js +0 -163
- package/dist/components/stories/KvChip.stories.js +0 -43
- package/dist/components/stories/KvClassicLoanCard.stories.js +0 -458
- package/dist/components/stories/KvCommentsAdd.stories.js +0 -32
- package/dist/components/stories/KvCommentsContainer.stories.js +0 -42
- package/dist/components/stories/KvCommentsHeartButton.stories.js +0 -25
- package/dist/components/stories/KvCommentsList.stories.js +0 -39
- package/dist/components/stories/KvCommentsListItem.stories.js +0 -45
- package/dist/components/stories/KvCommentsReplyButton.stories.js +0 -21
- package/dist/components/stories/KvContentfulImg.stories.js +0 -173
- package/dist/components/stories/KvCountdownTimer.stories.js +0 -31
- package/dist/components/stories/KvExpandableQuestion.stories.js +0 -129
- package/dist/components/stories/KvFlag.stories.js +0 -38
- package/dist/components/stories/KvGrid.stories.js +0 -97
- package/dist/components/stories/KvImpactDashboardHeader.stories.js +0 -22
- package/dist/components/stories/KvInlineActivityCard.stories.js +0 -69
- package/dist/components/stories/KvInlineActivityFeed.stories.js +0 -76
- package/dist/components/stories/KvIntroductionLoanCard.stories.js +0 -204
- package/dist/components/stories/KvLendAmountButton.stories.js +0 -31
- package/dist/components/stories/KvLendCta.stories.js +0 -332
- package/dist/components/stories/KvLightbox.stories.js +0 -308
- package/dist/components/stories/KvLineGraph.stories.js +0 -53
- package/dist/components/stories/KvLoadingPlaceholder.stories.js +0 -17
- package/dist/components/stories/KvLoadingSpinner.stories.js +0 -50
- package/dist/components/stories/KvLoanActivities.stories.js +0 -103
- package/dist/components/stories/KvLoanBookmark.stories.js +0 -23
- package/dist/components/stories/KvLoanCallouts.stories.js +0 -23
- package/dist/components/stories/KvLoanProgressGroup.stories.js +0 -29
- package/dist/components/stories/KvLoanTag.stories.js +0 -62
- package/dist/components/stories/KvLoanTeamPick.stories.js +0 -20
- package/dist/components/stories/KvLoanUse.stories.js +0 -54
- package/dist/components/stories/KvMap.stories.js +0 -108
- package/dist/components/stories/KvMaterialIcon.stories.js +0 -210
- package/dist/components/stories/KvPageContainer.stories.js +0 -50
- package/dist/components/stories/KvPagination.stories.js +0 -66
- package/dist/components/stories/KvPieChart.stories.js +0 -47
- package/dist/components/stories/KvProgressBar.stories.js +0 -48
- package/dist/components/stories/KvRadio.stories.js +0 -140
- package/dist/components/stories/KvSelect.stories.js +0 -125
- package/dist/components/stories/KvSideSheet.stories.js +0 -68
- package/dist/components/stories/KvSwitch.stories.js +0 -66
- package/dist/components/stories/KvTabs.stories.js +0 -106
- package/dist/components/stories/KvTextInput.stories.js +0 -194
- package/dist/components/stories/KvTextLink.stories.js +0 -51
- package/dist/components/stories/KvThemeProvider.stories.js +0 -212
- package/dist/components/stories/KvToast.stories.js +0 -111
- package/dist/components/stories/KvTooltip.stories.js +0 -26
- package/dist/components/stories/KvTreeMapChart.stories.js +0 -42
- package/dist/components/stories/KvUserAvatar.stories.js +0 -47
- package/dist/components/stories/KvVerticalCarousel.stories.js +0 -294
- package/dist/components/stories/KvVotingCard.stories.js +0 -33
- package/dist/components/stories/KvVotingCardV2.stories.js +0 -89
- package/dist/components/stories/KvWideLoanCard.stories.js +0 -278
- package/dist/components/stories/StyleguidePrimitives.stories.js +0 -498
- package/dist/components/stories/StyleguideProse.stories.js +0 -271
- package/dist/data/countries-borders.json +0 -1
- package/dist/data/ne_110m_admin_0_countries.json +0 -1
- package/dist/utils/Alea.cjs +0 -87
- package/dist/utils/attrs.cjs +0 -50
- package/dist/utils/carousels.cjs +0 -220
- package/dist/utils/chunk-3HK4G4NT.js +0 -27
- package/dist/utils/chunk-55HF2ORX.js +0 -201
- package/dist/utils/chunk-AY3PR5S4.js +0 -54
- package/dist/utils/chunk-B5J5WLAH.js +0 -18
- package/dist/utils/chunk-GPSH6OPA.js +0 -64
- package/dist/utils/chunk-HIY5IW65.js +0 -28
- package/dist/utils/chunk-HV3AUBFT.js +0 -15
- package/dist/utils/chunk-MSMZIN54.js +0 -110
- package/dist/utils/chunk-OXJCCNNW.js +0 -30
- package/dist/utils/chunk-S3MABILA.js +0 -22
- package/dist/utils/chunk-TR3NWLTZ.js +0 -184
- package/dist/utils/chunk-VIGEMAKO.js +0 -249
- package/dist/utils/chunk-YCNMJ4YV.js +0 -37
- package/dist/utils/chunk-YFEC5ODJ.js +0 -129
- package/dist/utils/expander.cjs +0 -78
- package/dist/utils/imageUtils.cjs +0 -54
- package/dist/utils/index.cjs +0 -1154
- package/dist/utils/index.js +0 -166
- package/dist/utils/loanCard.cjs +0 -222
- package/dist/utils/loanUtils.cjs +0 -170
- package/dist/utils/mapUtils.cjs +0 -276
- package/dist/utils/printing.cjs +0 -42
- package/dist/utils/scrollLock.cjs +0 -54
- package/dist/utils/throttle.cjs +0 -38
- package/dist/utils/touchEvents.cjs +0 -47
- package/dist/utils/treemap.cjs +0 -133
- package/jest.config.cjs +0 -47
- package/postcss.config.cjs +0 -6
- package/tailwind.config.cjs +0 -64
- package/tests/fixtures/mockCommentsData.js +0 -36
- package/tests/fixtures/mockLenderCountries.js +0 -674
- package/tests/unit/.eslintrc +0 -5
- package/tests/unit/jest-setup.js +0 -5
- package/tests/unit/specs/components/KvButton.spec.js +0 -92
- package/tests/unit/specs/components/KvCarousel.spec.js +0 -78
- package/tests/unit/specs/components/KvCheckbox.spec.js +0 -109
- package/tests/unit/specs/components/KvClassicLoanCard.spec.js +0 -201
- package/tests/unit/specs/components/KvCommentsAdd.spec.js +0 -108
- package/tests/unit/specs/components/KvCommentsContainer.spec.js +0 -40
- package/tests/unit/specs/components/KvCommentsHeartButton.spec.js +0 -32
- package/tests/unit/specs/components/KvCommentsList.spec.js +0 -83
- package/tests/unit/specs/components/KvCommentsListItem.spec.js +0 -120
- package/tests/unit/specs/components/KvCommentsReplyButton.spec.js +0 -23
- package/tests/unit/specs/components/KvExpandableQuestion.spec.js +0 -55
- package/tests/unit/specs/components/KvLendAmountButton.spec.js +0 -36
- package/tests/unit/specs/components/KvLightbox.spec.js +0 -14
- package/tests/unit/specs/components/KvLineGraph.spec.js +0 -58
- package/tests/unit/specs/components/KvLoanProgressGroup.spec.js +0 -50
- package/tests/unit/specs/components/KvPagination.spec.js +0 -132
- package/tests/unit/specs/components/KvProgressBar.spec.js +0 -11
- package/tests/unit/specs/components/KvRadio.spec.js +0 -184
- package/tests/unit/specs/components/KvSelect.spec.js +0 -113
- package/tests/unit/specs/components/KvSwitch.spec.js +0 -120
- package/tests/unit/specs/components/KvTabPanel.spec.js +0 -32
- package/tests/unit/specs/components/KvTabs.spec.js +0 -167
- package/tests/unit/specs/components/KvTextInput.spec.js +0 -151
- package/tests/unit/specs/components/KvTextLink.spec.js +0 -53
- package/tests/unit/specs/components/KvToast.spec.js +0 -11
- package/tests/unit/specs/components/KvWideLoanCard.spec.js +0 -136
- package/tests/unit/specs/utils/imageUtils.spec.js +0 -29
- package/tests/unit/specs/utils/loanUtils.spec.js +0 -437
- package/tests/unit/specs/utils/mapUtils.spec.js +0 -72
- package/tests/unit/specs/utils/treemap.spec.js +0 -248
- package/tests/unit/utils/addVueRouter.js +0 -18
- package/utils/Alea.js +0 -92
- package/utils/attrs.js +0 -62
- package/utils/carousels.js +0 -252
- package/utils/expander.js +0 -72
- package/utils/imageUtils.js +0 -43
- package/utils/index.js +0 -14
- package/utils/loanCard.js +0 -204
- package/utils/loanUtils.js +0 -209
- package/utils/mapUtils.js +0 -360
- package/utils/printing.js +0 -13
- package/utils/scrollLock.js +0 -25
- package/utils/themeUtils.cjs +0 -29
- package/utils/throttle.js +0 -11
- package/utils/touchEvents.js +0 -22
- package/utils/treemap.js +0 -138
- package/vue/.storybook/main.js +0 -88
- package/vue/.storybook/package.json +0 -3
- package/vue/.storybook/preview.js +0 -53
- package/vue/.storybook/tailwind.css +0 -5
- package/vue/KvAccordionItem.vue +0 -130
- package/vue/KvActivityRow.vue +0 -33
- package/vue/KvBorrowerImage.vue +0 -179
- package/vue/KvButton.vue +0 -288
- package/vue/KvCarousel.vue +0 -314
- package/vue/KvCartModal.vue +0 -365
- package/vue/KvCheckbox.vue +0 -203
- package/vue/KvChip.vue +0 -54
- package/vue/KvClassicLoanCard.vue +0 -527
- package/vue/KvCommentsAdd.vue +0 -135
- package/vue/KvCommentsContainer.vue +0 -84
- package/vue/KvCommentsHeartButton.vue +0 -70
- package/vue/KvCommentsList.vue +0 -68
- package/vue/KvCommentsListItem.vue +0 -241
- package/vue/KvCommentsReplyButton.vue +0 -52
- package/vue/KvContentfulImg.vue +0 -273
- package/vue/KvCountdownTimer.vue +0 -59
- package/vue/KvExpandable.vue +0 -84
- package/vue/KvExpandableQuestion.vue +0 -120
- package/vue/KvFlag.vue +0 -120
- package/vue/KvGrid.vue +0 -28
- package/vue/KvImpactDashboardHeader.vue +0 -40
- package/vue/KvInlineActivityCard.vue +0 -55
- package/vue/KvInlineActivityFeed.vue +0 -38
- package/vue/KvIntroductionLoanCard.vue +0 -449
- package/vue/KvLendAmountButton.vue +0 -65
- package/vue/KvLendCta.vue +0 -589
- package/vue/KvLightbox.vue +0 -334
- package/vue/KvLineGraph.vue +0 -128
- package/vue/KvLoadingPlaceholder.vue +0 -38
- package/vue/KvLoadingSpinner.vue +0 -81
- package/vue/KvLoanActivities.vue +0 -268
- package/vue/KvLoanBookmark.vue +0 -39
- package/vue/KvLoanCallouts.vue +0 -53
- package/vue/KvLoanProgressGroup.vue +0 -76
- package/vue/KvLoanTag.vue +0 -88
- package/vue/KvLoanTeamPick.vue +0 -44
- package/vue/KvLoanUse.vue +0 -92
- package/vue/KvMap.vue +0 -599
- package/vue/KvMaterialIcon.vue +0 -47
- package/vue/KvPageContainer.vue +0 -15
- package/vue/KvPagination.vue +0 -198
- package/vue/KvPieChart.vue +0 -257
- package/vue/KvPopper.vue +0 -178
- package/vue/KvProgressBar.vue +0 -149
- package/vue/KvRadio.vue +0 -198
- package/vue/KvSelect.vue +0 -114
- package/vue/KvSideSheet.vue +0 -203
- package/vue/KvSwitch.vue +0 -143
- package/vue/KvTab.vue +0 -90
- package/vue/KvTabPanel.vue +0 -64
- package/vue/KvTabs.vue +0 -182
- package/vue/KvTextInput.vue +0 -250
- package/vue/KvTextLink.vue +0 -138
- package/vue/KvThemeProvider.vue +0 -122
- package/vue/KvToast.vue +0 -221
- package/vue/KvTooltip.vue +0 -168
- package/vue/KvTreeMapChart.vue +0 -229
- package/vue/KvUserAvatar.vue +0 -132
- package/vue/KvVerticalCarousel.vue +0 -219
- package/vue/KvVotingCard.vue +0 -160
- package/vue/KvVotingCardV2.vue +0 -154
- package/vue/KvWideLoanCard.vue +0 -433
- package/vue/stories/Forms.stories.js +0 -62
- package/vue/stories/KvAccordionItem.stories.js +0 -24
- package/vue/stories/KvActivityRow.stories.js +0 -27
- package/vue/stories/KvBorrowerImage.stories.js +0 -62
- package/vue/stories/KvButton.stories.js +0 -142
- package/vue/stories/KvCarousel.stories.js +0 -489
- package/vue/stories/KvCartModal.stories.js +0 -51
- package/vue/stories/KvCheckbox.stories.js +0 -163
- package/vue/stories/KvChip.stories.js +0 -43
- package/vue/stories/KvClassicLoanCard.stories.js +0 -458
- package/vue/stories/KvCommentsAdd.stories.js +0 -32
- package/vue/stories/KvCommentsContainer.stories.js +0 -42
- package/vue/stories/KvCommentsHeartButton.stories.js +0 -25
- package/vue/stories/KvCommentsList.stories.js +0 -39
- package/vue/stories/KvCommentsListItem.stories.js +0 -45
- package/vue/stories/KvCommentsReplyButton.stories.js +0 -21
- package/vue/stories/KvContentfulImg.stories.js +0 -173
- package/vue/stories/KvCountdownTimer.stories.js +0 -31
- package/vue/stories/KvExpandableQuestion.stories.js +0 -129
- package/vue/stories/KvFlag.stories.js +0 -38
- package/vue/stories/KvGrid.stories.js +0 -97
- package/vue/stories/KvImpactDashboardHeader.stories.js +0 -22
- package/vue/stories/KvInlineActivityCard.stories.js +0 -69
- package/vue/stories/KvInlineActivityFeed.stories.js +0 -76
- package/vue/stories/KvIntroductionLoanCard.stories.js +0 -204
- package/vue/stories/KvLendAmountButton.stories.js +0 -31
- package/vue/stories/KvLendCta.stories.js +0 -332
- package/vue/stories/KvLightbox.stories.js +0 -308
- package/vue/stories/KvLineGraph.stories.js +0 -53
- package/vue/stories/KvLoadingPlaceholder.stories.js +0 -17
- package/vue/stories/KvLoadingSpinner.stories.js +0 -50
- package/vue/stories/KvLoanActivities.stories.js +0 -103
- package/vue/stories/KvLoanBookmark.stories.js +0 -23
- package/vue/stories/KvLoanCallouts.stories.js +0 -23
- package/vue/stories/KvLoanProgressGroup.stories.js +0 -29
- package/vue/stories/KvLoanTag.stories.js +0 -62
- package/vue/stories/KvLoanTeamPick.stories.js +0 -20
- package/vue/stories/KvLoanUse.stories.js +0 -54
- package/vue/stories/KvMap.stories.js +0 -108
- package/vue/stories/KvMaterialIcon.stories.js +0 -210
- package/vue/stories/KvPageContainer.stories.js +0 -50
- package/vue/stories/KvPagination.stories.js +0 -66
- package/vue/stories/KvPieChart.stories.js +0 -47
- package/vue/stories/KvProgressBar.stories.js +0 -48
- package/vue/stories/KvRadio.stories.js +0 -140
- package/vue/stories/KvSelect.stories.js +0 -125
- package/vue/stories/KvSideSheet.stories.js +0 -68
- package/vue/stories/KvSwitch.stories.js +0 -66
- package/vue/stories/KvTabs.stories.js +0 -106
- package/vue/stories/KvTextInput.stories.js +0 -194
- package/vue/stories/KvTextLink.stories.js +0 -51
- package/vue/stories/KvThemeProvider.stories.js +0 -212
- package/vue/stories/KvToast.stories.js +0 -111
- package/vue/stories/KvTooltip.stories.js +0 -26
- package/vue/stories/KvTreeMapChart.stories.js +0 -42
- package/vue/stories/KvUserAvatar.stories.js +0 -47
- package/vue/stories/KvVerticalCarousel.stories.js +0 -294
- package/vue/stories/KvVotingCard.stories.js +0 -33
- package/vue/stories/KvVotingCardV2.stories.js +0 -89
- package/vue/stories/KvWideLoanCard.stories.js +0 -278
- package/vue/stories/StyleguidePrimitives.stories.js +0 -498
- package/vue/stories/StyleguideProse.stories.js +0 -271
package/dist/utils/Alea.js
CHANGED
|
@@ -1,9 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
function f() {
|
|
2
|
+
let e = 4022871197;
|
|
3
|
+
const l = function(t) {
|
|
4
|
+
t = t.toString();
|
|
5
|
+
for (let n = 0; n < t.length; n++) {
|
|
6
|
+
e += t.charCodeAt(n);
|
|
7
|
+
let o = 0.02519603282416938 * e;
|
|
8
|
+
e = o >>> 0, o -= e, o *= e, e = o >>> 0, o -= e, e += o * 4294967296;
|
|
9
|
+
}
|
|
10
|
+
return (e >>> 0) * 23283064365386963e-26;
|
|
11
|
+
};
|
|
12
|
+
return l.version = "Mash 0.9", l;
|
|
13
|
+
}
|
|
14
|
+
function u() {
|
|
15
|
+
return function(e) {
|
|
16
|
+
let l = 0, t = 0, n = 0, o = 1;
|
|
17
|
+
e.length === 0 && (e = [+/* @__PURE__ */ new Date()]);
|
|
18
|
+
let i = f();
|
|
19
|
+
l = i(" "), t = i(" "), n = i(" ");
|
|
20
|
+
for (let r = 0; r < e.length; r++)
|
|
21
|
+
l -= i(e[r]), l < 0 && (l += 1), t -= i(e[r]), t < 0 && (t += 1), n -= i(e[r]), n < 0 && (n += 1);
|
|
22
|
+
i = null;
|
|
23
|
+
const c = function() {
|
|
24
|
+
const r = 2091639 * l + o * 23283064365386963e-26;
|
|
25
|
+
return l = t, t = n, n = r - (o = r | 0);
|
|
26
|
+
};
|
|
27
|
+
return c.version = "Alea 0.9", c.args = e, c;
|
|
28
|
+
}(Array.prototype.slice.call(arguments));
|
|
29
|
+
}
|
|
6
30
|
export {
|
|
7
|
-
Mash,
|
|
8
|
-
|
|
31
|
+
f as Mash,
|
|
32
|
+
u as default
|
|
9
33
|
};
|
package/dist/utils/attrs.js
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
|
|
1
|
+
function l(e) {
|
|
2
|
+
return e ? Array.isArray(e) ? e : [e] : [];
|
|
3
|
+
}
|
|
4
|
+
function A({ attrs: e, listeners: n }, o = []) {
|
|
5
|
+
const r = l(e == null ? void 0 : e.class), y = l(e == null ? void 0 : e.style), s = n ? { ...n } : {};
|
|
6
|
+
o.forEach((u) => {
|
|
7
|
+
delete s[u];
|
|
8
|
+
});
|
|
9
|
+
const c = { ...e };
|
|
10
|
+
return delete c.class, delete c.style, {
|
|
11
|
+
classes: r,
|
|
12
|
+
styles: y,
|
|
13
|
+
inputAttrs: c,
|
|
14
|
+
inputListeners: s
|
|
15
|
+
};
|
|
16
|
+
}
|
|
5
17
|
export {
|
|
6
|
-
useAttrs
|
|
18
|
+
A as useAttrs
|
|
7
19
|
};
|
package/dist/utils/carousels.js
CHANGED
|
@@ -1,8 +1,98 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import "
|
|
5
|
-
import "./
|
|
1
|
+
import { toRefs as F, ref as a, computed as r, onMounted as H, nextTick as w, onUnmounted as K } from "vue";
|
|
2
|
+
import M from "../node_modules/embla-carousel/esm/embla-carousel.esm.js";
|
|
3
|
+
import R from "../node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js";
|
|
4
|
+
import q from "../node_modules/embla-carousel-fade/esm/embla-carousel-fade.esm.js";
|
|
5
|
+
import { throttle as B } from "./throttle.js";
|
|
6
|
+
function X(O, { emit: v, slots: V }, k) {
|
|
7
|
+
var S;
|
|
8
|
+
const {
|
|
9
|
+
autoplayOptions: d,
|
|
10
|
+
fadeEnabled: A,
|
|
11
|
+
emblaOptions: y,
|
|
12
|
+
slidesToScroll: f
|
|
13
|
+
} = F(O), g = a(null), e = a(null), s = a([]), c = a(!1), P = ((S = y.value) == null ? void 0 : S.startIndex) ?? 0, u = a(P), I = a(0), m = r(() => Object.keys(V)), E = r(() => {
|
|
14
|
+
const t = u.value + 1;
|
|
15
|
+
return t < s.value.length ? t : 0;
|
|
16
|
+
}), L = r(() => {
|
|
17
|
+
const t = u.value - 1;
|
|
18
|
+
return t >= 0 ? t : s.value.length - 1;
|
|
19
|
+
}), h = (t) => {
|
|
20
|
+
var o, n;
|
|
21
|
+
const l = (n = (o = e.value) == null ? void 0 : o.plugins()) == null ? void 0 : n.autoplay;
|
|
22
|
+
l && l.stop(), e.value.scrollTo(t);
|
|
23
|
+
}, N = async (t, l) => {
|
|
24
|
+
t !== null && typeof t < "u" && (await w(), h(t)), v("interact-carousel", l);
|
|
25
|
+
}, U = () => {
|
|
26
|
+
var o, n;
|
|
27
|
+
const t = (n = (o = e.value) == null ? void 0 : o.plugins()) == null ? void 0 : n.autoplay;
|
|
28
|
+
if (!t) return;
|
|
29
|
+
(t.isPlaying() ? t.stop : t.play)();
|
|
30
|
+
}, i = () => {
|
|
31
|
+
const t = e.value ? e.value.scrollSnapList().length : 0;
|
|
32
|
+
return I.value = t, t;
|
|
33
|
+
}, p = () => {
|
|
34
|
+
const t = e.value.slidesInView(!0).length;
|
|
35
|
+
t && e.value.reInit({
|
|
36
|
+
slidesToScroll: t,
|
|
37
|
+
inViewThreshold: 0.9
|
|
38
|
+
});
|
|
39
|
+
}, j = () => {
|
|
40
|
+
e.value.reInit(), f.value === "visible" && p(), s.value = e.value.slideNodes(), i();
|
|
41
|
+
}, C = (t) => e.value ? !e.value.slidesInView(!0).includes(t) : !1, z = r(() => {
|
|
42
|
+
const t = [];
|
|
43
|
+
return Object.keys(d.value).length !== 0 && t.push(R(d.value)), A.value && t.push(q()), t;
|
|
44
|
+
});
|
|
45
|
+
return H(async () => {
|
|
46
|
+
var t, l, o;
|
|
47
|
+
e.value = M(g.value, {
|
|
48
|
+
loop: !0,
|
|
49
|
+
containScroll: "trimSnaps",
|
|
50
|
+
inViewThreshold: 0.9,
|
|
51
|
+
align: "start",
|
|
52
|
+
...k,
|
|
53
|
+
...y.value
|
|
54
|
+
}, z.value), f.value === "visible" && (p(), e.value.on(
|
|
55
|
+
"resize",
|
|
56
|
+
B(() => {
|
|
57
|
+
e.value.reInit({
|
|
58
|
+
slidesToScroll: e.value.slidesInView(!0).length || "auto",
|
|
59
|
+
inViewThreshold: 0.9
|
|
60
|
+
}), s.value = e.value.slideNodes(), i();
|
|
61
|
+
}, 250)
|
|
62
|
+
)), s.value = e.value.slideNodes(), i(), (t = e == null ? void 0 : e.value) == null || t.on("select", () => {
|
|
63
|
+
var x, T;
|
|
64
|
+
u.value = e.value.selectedScrollSnap();
|
|
65
|
+
const n = (T = (x = e.value) == null ? void 0 : x.plugins()) == null ? void 0 : T.autoplay;
|
|
66
|
+
n && (e.value.plugins().autoplay.options.playOnInit = n.isPlaying()), w(() => {
|
|
67
|
+
v("change", u);
|
|
68
|
+
});
|
|
69
|
+
}), (l = e == null ? void 0 : e.value) == null || l.on("autoplay:play", () => {
|
|
70
|
+
c.value = !0;
|
|
71
|
+
}), (o = e == null ? void 0 : e.value) == null || o.on("autoplay:stop", () => {
|
|
72
|
+
c.value = !1;
|
|
73
|
+
});
|
|
74
|
+
}), K(async () => {
|
|
75
|
+
var t, l, o, n;
|
|
76
|
+
(t = e == null ? void 0 : e.value) == null || t.off("select"), (l = e == null ? void 0 : e.value) == null || l.off("autoplay:play"), (o = e == null ? void 0 : e.value) == null || o.off("autoplay:stop"), (n = e == null ? void 0 : e.value) == null || n.destroy();
|
|
77
|
+
}), {
|
|
78
|
+
rootEl: g,
|
|
79
|
+
embla: e,
|
|
80
|
+
slides: s,
|
|
81
|
+
currentIndex: u,
|
|
82
|
+
componentSlotKeys: m,
|
|
83
|
+
nextIndex: E,
|
|
84
|
+
previousIndex: L,
|
|
85
|
+
slideIndicatorCount: I,
|
|
86
|
+
handleUserInteraction: N,
|
|
87
|
+
goToSlide: h,
|
|
88
|
+
reInit: j,
|
|
89
|
+
reInitVisible: p,
|
|
90
|
+
isAriaHidden: C,
|
|
91
|
+
isAutoplaying: c,
|
|
92
|
+
slideIndicatorListLength: i,
|
|
93
|
+
toggleAutoPlay: U
|
|
94
|
+
};
|
|
95
|
+
}
|
|
6
96
|
export {
|
|
7
|
-
carouselUtil
|
|
97
|
+
X as carouselUtil
|
|
8
98
|
};
|
package/dist/utils/expander.js
CHANGED
|
@@ -1,9 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
|
|
1
|
+
function d(t, { property: e, delay: i, easing: s }) {
|
|
2
|
+
t.style.overflow = "hidden", t.style.transition = `${e} ${i}ms ${s}`;
|
|
3
|
+
}
|
|
4
|
+
function a(t, { property: e }) {
|
|
5
|
+
t.style[e] = null, t.style.overflow = null, t.style.transition = null;
|
|
6
|
+
}
|
|
7
|
+
function f(t, {
|
|
8
|
+
easing: e = "ease",
|
|
9
|
+
delay: i = 500,
|
|
10
|
+
done: s = () => {
|
|
11
|
+
},
|
|
12
|
+
from: o = 0,
|
|
13
|
+
property: n = "height"
|
|
14
|
+
}) {
|
|
15
|
+
d(t, { property: n, delay: i, easing: e }), t.style[n] = "auto", t.style.display = null;
|
|
16
|
+
const u = window.getComputedStyle(t).getPropertyValue(n);
|
|
17
|
+
t.style[n] = o, t.addEventListener("transitionend", function l() {
|
|
18
|
+
a(t, { property: n }), s(), t.removeEventListener("transitionend", l, !0);
|
|
19
|
+
}, !0), t.offsetWidth, t.style[n] = u;
|
|
20
|
+
}
|
|
21
|
+
function v(t, {
|
|
22
|
+
easing: e = "ease",
|
|
23
|
+
delay: i = 500,
|
|
24
|
+
done: s = () => {
|
|
25
|
+
},
|
|
26
|
+
to: o = 0,
|
|
27
|
+
property: n = "height"
|
|
28
|
+
}) {
|
|
29
|
+
d(t, { property: n, delay: i, easing: e }), t.style[n] = window.getComputedStyle(t).getPropertyValue(n), t.addEventListener("transitionend", function u() {
|
|
30
|
+
a(t, { property: n }), s(), t.removeEventListener("transitionend", u, !0);
|
|
31
|
+
}, !0), t.offsetWidth, t.style[n] = o;
|
|
32
|
+
}
|
|
6
33
|
export {
|
|
7
|
-
collapse,
|
|
8
|
-
expand
|
|
34
|
+
v as collapse,
|
|
35
|
+
f as expand
|
|
9
36
|
};
|
package/dist/utils/imageUtils.js
CHANGED
|
@@ -1,9 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
function r(o) {
|
|
2
|
+
if (!o)
|
|
3
|
+
return !1;
|
|
4
|
+
let t = o.toString();
|
|
5
|
+
return t.includes(".") && ([t] = t.split(".")), ["726677", "315726", "4d844ac2c0b77a8a522741b908ea5c32"].includes(t);
|
|
6
|
+
}
|
|
7
|
+
function a() {
|
|
8
|
+
const o = [
|
|
9
|
+
{ color: "tw-text-action", bg: "tw-bg-brand-100" },
|
|
10
|
+
{ color: "tw-text-black", bg: "tw-bg-brand-100" },
|
|
11
|
+
{ color: "tw-text-white", bg: "tw-bg-action" },
|
|
12
|
+
{ color: "tw-text-brand-100", bg: "tw-bg-action" },
|
|
13
|
+
{ color: "tw-text-primary-inverse", bg: "tw-bg-action" },
|
|
14
|
+
{ color: "tw-text-white", bg: "tw-bg-black" },
|
|
15
|
+
{ color: "tw-text-action", bg: "tw-bg-black" }
|
|
16
|
+
], t = o[Math.floor(Math.random() * o.length)];
|
|
17
|
+
return `${t.color} ${t.bg}`;
|
|
18
|
+
}
|
|
6
19
|
export {
|
|
7
|
-
isLegacyPlaceholderAvatar,
|
|
8
|
-
randomizedUserAvatarClass
|
|
20
|
+
r as isLegacyPlaceholderAvatar,
|
|
21
|
+
a as randomizedUserAvatarClass
|
|
9
22
|
};
|
package/dist/utils/loanCard.js
CHANGED
|
@@ -1,9 +1,124 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { toRefs as Z, computed as n } from "vue";
|
|
2
|
+
import { mdiMapMarker as he } from "@mdi/js";
|
|
3
|
+
const me = "N/A", V = "ECO-FRIENDLY", W = "SUSTAINABLE AG", X = "SINGLE PARENT", Ce = "REFUGEES/DISPLACED", L = (i, p) => (i == null ? void 0 : i.find((d) => d.name.replace("#", "").toUpperCase() === p.toUpperCase())) ?? {};
|
|
4
|
+
function Ee(i, p = !1) {
|
|
5
|
+
const {
|
|
6
|
+
externalLinks: d,
|
|
7
|
+
customLoanDetails: C,
|
|
8
|
+
loanId: g,
|
|
9
|
+
loan: t,
|
|
10
|
+
categoryPageName: c,
|
|
11
|
+
customCallouts: U
|
|
12
|
+
} = Z(i), ee = n(() => d.value ? "a" : "router-link"), te = n(() => C.value ? "" : `/lend/${g.value}`), A = n(() => !g.value || !t.value), ae = n(() => {
|
|
13
|
+
var e;
|
|
14
|
+
return ((e = t.value) == null ? void 0 : e.name) || "";
|
|
15
|
+
}), v = n(() => {
|
|
16
|
+
var e, a, r;
|
|
17
|
+
return ((r = (a = (e = t.value) == null ? void 0 : e.geocode) == null ? void 0 : a.country) == null ? void 0 : r.name) || "";
|
|
18
|
+
}), oe = n(() => {
|
|
19
|
+
var e, a, r;
|
|
20
|
+
return ((r = (a = (e = t.value) == null ? void 0 : e.geocode) == null ? void 0 : a.country) == null ? void 0 : r.isoCode) || "";
|
|
21
|
+
}), y = n(() => {
|
|
22
|
+
var e, a;
|
|
23
|
+
return ((a = (e = t.value) == null ? void 0 : e.geocode) == null ? void 0 : a.city) || "";
|
|
24
|
+
}), N = n(() => {
|
|
25
|
+
var e, a;
|
|
26
|
+
return ((a = (e = t.value) == null ? void 0 : e.geocode) == null ? void 0 : a.state) || "";
|
|
27
|
+
}), P = n(() => {
|
|
28
|
+
var e;
|
|
29
|
+
return ((e = t.value) == null ? void 0 : e.distributionModel) || "";
|
|
30
|
+
}), ne = n(() => {
|
|
31
|
+
var e, a;
|
|
32
|
+
return ((a = (e = t.value) == null ? void 0 : e.image) == null ? void 0 : a.hash) ?? "";
|
|
33
|
+
}), I = n(() => {
|
|
34
|
+
var e, a;
|
|
35
|
+
return typeof ((e = t.value) == null ? void 0 : e.unreservedAmount) < "u" && typeof ((a = t.value) == null ? void 0 : a.fundraisingPercent) < "u";
|
|
36
|
+
}), se = n(() => !A.value && I.value), le = n(() => {
|
|
37
|
+
var e;
|
|
38
|
+
return ((e = t.value) == null ? void 0 : e.fundraisingPercent) ?? 0;
|
|
39
|
+
}), re = n(() => {
|
|
40
|
+
var a;
|
|
41
|
+
const e = ((a = t.value) == null ? void 0 : a.unreservedAmount) ?? "0";
|
|
42
|
+
return Number(e);
|
|
43
|
+
}), ue = n(() => {
|
|
44
|
+
if (P.value === "direct") {
|
|
45
|
+
const e = p && v.value.toLowerCase() === "united states" ? "" : `, ${v.value}`;
|
|
46
|
+
return `${y.value}, ${N.value}${e}`;
|
|
47
|
+
}
|
|
48
|
+
return v.value === "Puerto Rico" ? `${y.value}, PR` : v.value;
|
|
49
|
+
}), ie = n(() => {
|
|
50
|
+
var e;
|
|
51
|
+
return ((e = t.value) == null ? void 0 : e.use) ?? "";
|
|
52
|
+
}), ce = n(() => {
|
|
53
|
+
var e;
|
|
54
|
+
return ((e = t.value) == null ? void 0 : e.status) ?? "";
|
|
55
|
+
}), pe = n(() => {
|
|
56
|
+
var e;
|
|
57
|
+
return ((e = t.value) == null ? void 0 : e.loanAmount) ?? "0";
|
|
58
|
+
}), de = n(() => {
|
|
59
|
+
var e;
|
|
60
|
+
return ((e = t.value) == null ? void 0 : e.borrowerCount) ?? 0;
|
|
61
|
+
}), ve = n(() => {
|
|
62
|
+
var S, T, _, k, F, Y, G, $, w, K, x, B, O, H, j, q, z, J, Q;
|
|
63
|
+
const e = [], a = ((T = (S = t.value) == null ? void 0 : S.activity) == null ? void 0 : T.name) ?? "", r = ((k = (_ = t.value) == null ? void 0 : _.activity) == null ? void 0 : k.id) ?? null, h = ((Y = (F = t.value) == null ? void 0 : F.sector) == null ? void 0 : Y.name) ?? "", M = (($ = (G = t.value) == null ? void 0 : G.sector) == null ? void 0 : $.id) ?? null, u = ((K = (w = t.value) == null ? void 0 : w.tags) == null ? void 0 : K.filter((o) => o.charAt(0) === "#").map((o) => o.substring(1))) ?? [], m = ((x = t.value) == null ? void 0 : x.themes) ?? [], E = {
|
|
64
|
+
ecoFriendly: !!u.filter((o) => o.toUpperCase() === V || o.toUpperCase() === W).length,
|
|
65
|
+
refugeesIdps: !!m.filter((o) => o.toUpperCase() === Ce).length,
|
|
66
|
+
singleParents: !!u.filter((o) => o.toUpperCase() === X).length
|
|
67
|
+
}, D = (O = (B = t.value) == null ? void 0 : B.partnerName) == null ? void 0 : O.toUpperCase().includes(me), R = ((H = t.value) == null ? void 0 : H.tagsData) ?? [], fe = ((j = t.value) == null ? void 0 : j.themesData) ?? [];
|
|
68
|
+
if (D && u.length) {
|
|
69
|
+
const o = Math.floor(Math.random() * u.length), s = u[o], l = L(R, s), f = (l == null ? void 0 : l.id) ?? null;
|
|
70
|
+
e.push({ label: s, type: "tag", id: f });
|
|
71
|
+
}
|
|
72
|
+
if (c.value || (E.ecoFriendly && !e.find((o) => o.label.toUpperCase() === V || o.label.toUpperCase() === W) ? e.push({ label: "Eco-friendly", type: "tag", id: 9 }) : E.refugeesIdps ? e.push({ label: "Refugees and IDPs", type: "attribute", id: 28 }) : E.singleParents && !e.find((o) => o.label.toUpperCase() === X) && e.push({ label: "Single Parent", type: "tag", id: 17 })), a && r && ((q = c.value) == null ? void 0 : q.toUpperCase()) !== a.toUpperCase() && e.push({ id: r, label: a, type: "activity" }), h && M && a.toUpperCase() !== h.toUpperCase() && h.toUpperCase() !== ((z = c.value) == null ? void 0 : z.toUpperCase()) && e.length < 2 && e.push({ id: M, label: h, type: "sector" }), u.length && e.length < 2) {
|
|
73
|
+
const o = Math.floor(Math.random() * u.length), s = u[o], l = L(R, s), f = (l == null ? void 0 : l.id) ?? null;
|
|
74
|
+
e.filter((b) => b.label.toUpperCase() === s.toUpperCase()).length || e.push({ label: s, type: "tag", id: f });
|
|
75
|
+
}
|
|
76
|
+
if (m.length && e.length < 2) {
|
|
77
|
+
const o = Math.floor(Math.random() * m.length), s = m[o], l = L(fe, s), f = (l == null ? void 0 : l.id) ?? null;
|
|
78
|
+
!e.filter((b) => b.label.toUpperCase() === s.toUpperCase()).length && s.toUpperCase() !== ((J = c.value) == null ? void 0 : J.toUpperCase()) && e.push({ label: s, type: "attribute", id: f });
|
|
79
|
+
}
|
|
80
|
+
if (D && e.length > 1) return [e.shift()];
|
|
81
|
+
const ge = ((Q = U.value) == null ? void 0 : Q.map((o) => ({ label: o }))) ?? [];
|
|
82
|
+
return e.push(...ge), e;
|
|
83
|
+
});
|
|
84
|
+
return {
|
|
85
|
+
tag: ee,
|
|
86
|
+
readMorePath: te,
|
|
87
|
+
isLoading: A,
|
|
88
|
+
borrowerName: ae,
|
|
89
|
+
countryName: v,
|
|
90
|
+
countryCode: oe,
|
|
91
|
+
city: y,
|
|
92
|
+
state: N,
|
|
93
|
+
distributionModel: P,
|
|
94
|
+
imageHash: ne,
|
|
95
|
+
hasProgressData: I,
|
|
96
|
+
allDataLoaded: se,
|
|
97
|
+
fundraisingPercent: le,
|
|
98
|
+
unreservedAmount: re,
|
|
99
|
+
formattedLocation: ue,
|
|
100
|
+
loanUse: ie,
|
|
101
|
+
loanStatus: ce,
|
|
102
|
+
loanAmount: pe,
|
|
103
|
+
loanBorrowerCount: de,
|
|
104
|
+
mdiMapMarker: he,
|
|
105
|
+
loanCallouts: ve
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
function be(i, p) {
|
|
109
|
+
const {
|
|
110
|
+
loanId: d,
|
|
111
|
+
customLoanDetails: C,
|
|
112
|
+
kvTrackFunction: g
|
|
113
|
+
} = Z(i);
|
|
114
|
+
function t(c, U) {
|
|
115
|
+
g.value("Lending", "click-Read more", c, d.value), C.value && (U.preventDefault(), p("show-loan-details"));
|
|
116
|
+
}
|
|
117
|
+
return {
|
|
118
|
+
clickReadMore: t
|
|
119
|
+
};
|
|
120
|
+
}
|
|
6
121
|
export {
|
|
7
|
-
loanCardComputedProperties,
|
|
8
|
-
loanCardMethods
|
|
122
|
+
Ee as loanCardComputedProperties,
|
|
123
|
+
be as loanCardMethods
|
|
9
124
|
};
|
package/dist/utils/loanUtils.js
CHANGED
|
@@ -1,23 +1,80 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
1
|
+
import u from "numeral";
|
|
2
|
+
const a = "kverlfivedollarnotes", N = "TOPUP-VB-BALANCE-MPV1", A = "BASE-VB_BALANCE_MPV1", p = "REPAYMENT-NOTIFICATION_BALANCE_MPV1", P = "REPAYMENT-NOTIFICATION_NO-BALANCE_MPV1";
|
|
3
|
+
function C(r) {
|
|
4
|
+
return r > 20 ? 25 : r > 15 ? 20 : r > 10 ? 15 : r > 5 ? 10 : 5;
|
|
5
|
+
}
|
|
6
|
+
function E(r) {
|
|
7
|
+
return r <= 50 && r > 25;
|
|
8
|
+
}
|
|
9
|
+
function O(r) {
|
|
10
|
+
return r < 25 && r > 0;
|
|
11
|
+
}
|
|
12
|
+
function h(r, c, f, e, t, i, s) {
|
|
13
|
+
if (f && s)
|
|
14
|
+
return "5";
|
|
15
|
+
if (f && typeof i < "u") {
|
|
16
|
+
let o = r == null ? void 0 : r(a);
|
|
17
|
+
if (e && typeof e == "string" && !o) {
|
|
18
|
+
const n = /* @__PURE__ */ new Date();
|
|
19
|
+
n.setHours(n.getHours() + 24);
|
|
20
|
+
const l = e.toUpperCase();
|
|
21
|
+
o = l.includes(N) ? N : l.includes(A) ? A : l.includes(p) ? p : l.includes(P) ? P : "", o && c && c(a, o, { expires: n });
|
|
22
|
+
}
|
|
23
|
+
if (o) {
|
|
24
|
+
let n = Math.floor(i / 5) * 5;
|
|
25
|
+
return o === A ? (n = n === 0 ? 5 : n > 25 ? 25 : n, Number(n <= t ? n : t).toFixed()) : o === p ? (n = C(n), Number(n).toFixed()) : Number(t > 5 ? 5 : t).toFixed();
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return E(t) || O(t) ? Number(t).toFixed() : "25";
|
|
29
|
+
}
|
|
30
|
+
function _(r) {
|
|
31
|
+
const c = [];
|
|
32
|
+
let f = 100, e = r > 1e3 ? 1e3 : r, t = e / f;
|
|
33
|
+
for (let i = 1; i <= t; i += 1) {
|
|
34
|
+
const s = f * i + 500;
|
|
35
|
+
if (s > e) break;
|
|
36
|
+
c.push(u(s).format("0,0"));
|
|
37
|
+
}
|
|
38
|
+
f = 1e3, e = r > 1e4 ? 1e4 : r, t = e / f;
|
|
39
|
+
for (let i = 1; i <= t; i += 1) {
|
|
40
|
+
const s = f * i + 1e3;
|
|
41
|
+
if (s > e) break;
|
|
42
|
+
c.push(u(s).format("0,0"));
|
|
43
|
+
}
|
|
44
|
+
return c.includes(u(e).format("0,0")) || c.push(u(e).format("0,0")), c;
|
|
45
|
+
}
|
|
46
|
+
function b(r) {
|
|
47
|
+
const c = r < 50 ? r : 50, f = c / 5, e = Math.ceil((r - c) / 25) + 1, t = [];
|
|
48
|
+
for (let i = 1; i <= f; i += 1)
|
|
49
|
+
t.push(u(5 * i).format("0,0"));
|
|
50
|
+
if (r > c)
|
|
51
|
+
for (let i = 3; i <= e; i += 1)
|
|
52
|
+
t.push(u(25 * i).format("0,0"));
|
|
53
|
+
return t;
|
|
54
|
+
}
|
|
55
|
+
function d(r, c) {
|
|
56
|
+
const f = r / c, e = [];
|
|
57
|
+
for (let t = 1; t <= f; t += 1)
|
|
58
|
+
e.push(u(c * t).format("0,0"));
|
|
59
|
+
return e;
|
|
60
|
+
}
|
|
61
|
+
function y(r, c = !1, f = 25, e = !1, t = !1, i = !0, s = !1) {
|
|
62
|
+
const o = parseFloat(r);
|
|
63
|
+
let n = e && !s ? b(o).slice(0, 28) : d(o, f).slice(0, 20);
|
|
64
|
+
if (t && o > 500 && !i) {
|
|
65
|
+
const l = _(o);
|
|
66
|
+
n = n.concat(l);
|
|
67
|
+
}
|
|
68
|
+
return c && !n.includes(Number(r).toFixed()) && n.push(Number(r).toFixed()), n;
|
|
69
|
+
}
|
|
13
70
|
export {
|
|
14
|
-
BALANCE_CAMPAIGN,
|
|
15
|
-
BASE_CAMPAIGN,
|
|
16
|
-
ERL_COOKIE_NAME,
|
|
17
|
-
NO_BALANCE_CAMPAIGN,
|
|
18
|
-
TOP_UP_CAMPAIGN,
|
|
19
|
-
getDropdownPriceArray,
|
|
20
|
-
getLendCtaSelectedOption,
|
|
21
|
-
isBetween25And50,
|
|
22
|
-
isLessThan25
|
|
71
|
+
p as BALANCE_CAMPAIGN,
|
|
72
|
+
A as BASE_CAMPAIGN,
|
|
73
|
+
a as ERL_COOKIE_NAME,
|
|
74
|
+
P as NO_BALANCE_CAMPAIGN,
|
|
75
|
+
N as TOP_UP_CAMPAIGN,
|
|
76
|
+
y as getDropdownPriceArray,
|
|
77
|
+
h as getLendCtaSelectedOption,
|
|
78
|
+
E as isBetween25And50,
|
|
79
|
+
O as isLessThan25
|
|
23
80
|
};
|
package/dist/utils/mapUtils.js
CHANGED
|
@@ -1,15 +1,179 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
function p(e, t, r) {
|
|
2
|
+
return (Math.random() * (t - e) + e).toFixed(r) * 1;
|
|
3
|
+
}
|
|
4
|
+
const d = Array.from(
|
|
5
|
+
{ length: 20 },
|
|
6
|
+
() => [p(-180, 180, 3), p(-90, 90, 3)]
|
|
7
|
+
), m = [
|
|
8
|
+
100,
|
|
9
|
+
300,
|
|
10
|
+
500,
|
|
11
|
+
650,
|
|
12
|
+
800,
|
|
13
|
+
1e3
|
|
14
|
+
];
|
|
15
|
+
function M(e, t, r) {
|
|
16
|
+
if (!e || !t || !r || r < 1 || !Array.isArray(e) || !Array.isArray(t) || e.length !== 2 || t.length !== 2)
|
|
17
|
+
return [];
|
|
18
|
+
const n = t[0] - e[0], l = t[1] - e[1], i = n / r, a = l / r;
|
|
19
|
+
let o = 0, s = 0;
|
|
20
|
+
const c = [];
|
|
21
|
+
for (; Math.abs(o) < Math.abs(n) || Math.abs(s) < Math.abs(l); )
|
|
22
|
+
c.push([e[0] + o, e[1] + s]), Math.abs(o) < Math.abs(n) && (o += i), Math.abs(s) < Math.abs(l) && (s += a);
|
|
23
|
+
return c[c.length - 1] = [t[0], t[1]], c;
|
|
24
|
+
}
|
|
25
|
+
function b(e, t, r) {
|
|
26
|
+
return new Promise((l) => {
|
|
27
|
+
e.addSource("endpoint", {
|
|
28
|
+
type: "geojson",
|
|
29
|
+
data: {
|
|
30
|
+
type: "Point",
|
|
31
|
+
coordinates: [
|
|
32
|
+
r[0],
|
|
33
|
+
r[1]
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
const i = (a, o, s, c = !1) => {
|
|
38
|
+
const y = M(a, o, 100);
|
|
39
|
+
let g = 0;
|
|
40
|
+
const u = {
|
|
41
|
+
type: "FeatureCollection",
|
|
42
|
+
features: [{
|
|
43
|
+
type: "Feature",
|
|
44
|
+
geometry: {
|
|
45
|
+
type: "LineString",
|
|
46
|
+
coordinates: []
|
|
47
|
+
}
|
|
48
|
+
}]
|
|
49
|
+
};
|
|
50
|
+
e.addSource(`startPoint${s}`, {
|
|
51
|
+
type: "geojson",
|
|
52
|
+
data: {
|
|
53
|
+
type: "Point",
|
|
54
|
+
coordinates: [
|
|
55
|
+
a[0],
|
|
56
|
+
a[1]
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
}), e.addLayer({
|
|
60
|
+
id: `line-animation${s}`,
|
|
61
|
+
type: "line",
|
|
62
|
+
source: {
|
|
63
|
+
type: "geojson",
|
|
64
|
+
data: u
|
|
65
|
+
},
|
|
66
|
+
layout: {
|
|
67
|
+
"line-cap": "round",
|
|
68
|
+
"line-join": "round"
|
|
69
|
+
},
|
|
70
|
+
paint: {
|
|
71
|
+
"line-color": "#277056",
|
|
72
|
+
"line-width": 2
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
const h = () => {
|
|
76
|
+
if (g < y.length)
|
|
77
|
+
u.features[0].geometry.coordinates.push(y[g]), e.getSource(`line-animation${s}`).setData(u), requestAnimationFrame(h), g += 1;
|
|
78
|
+
else {
|
|
79
|
+
const f = u.features[0].geometry.coordinates;
|
|
80
|
+
f.shift(), f.shift(), f.length > 0 ? (u.features[0].geometry.coordinates = f, e.getSource(`line-animation${s}`).setData(u), requestAnimationFrame(h)) : (e.removeLayer(`line-animation${s}`), e.removeSource(`line-animation${s}`), e.removeSource(`startPoint${s}`), c && (e.removeSource("endpoint"), l()));
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
h();
|
|
84
|
+
};
|
|
85
|
+
t.forEach((a, o) => {
|
|
86
|
+
i(a, r, o, o === t.length - 1);
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
function $(e, t) {
|
|
91
|
+
const r = {
|
|
92
|
+
type: "FeatureCollection"
|
|
93
|
+
};
|
|
94
|
+
r.features = t.map((n) => ({
|
|
95
|
+
type: "Feature",
|
|
96
|
+
properties: {
|
|
97
|
+
message: "test",
|
|
98
|
+
image: n.image,
|
|
99
|
+
iconSize: [80, 80]
|
|
100
|
+
},
|
|
101
|
+
geometry: {
|
|
102
|
+
type: "Point",
|
|
103
|
+
coordinates: n.location
|
|
104
|
+
}
|
|
105
|
+
})), r.features.forEach((n) => {
|
|
106
|
+
const l = document.createElement("div");
|
|
107
|
+
l.className = "map-marker", l.style.backgroundImage = `url(${n.properties.image})`, l.style.width = `${n.properties.iconSize[0]}px`, l.style.height = `${n.properties.iconSize[1]}px`, new maplibregl.Marker({ element: l }).setLngLat(n.geometry.coordinates).addTo(e);
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
function A(e, t) {
|
|
111
|
+
return new Promise((r) => {
|
|
112
|
+
const n = t.map((o) => o.location), l = n.length;
|
|
113
|
+
let i = 0;
|
|
114
|
+
const a = (o) => {
|
|
115
|
+
e.flyTo({
|
|
116
|
+
// These options control the ending camera position: centered at
|
|
117
|
+
// the target, at zoom level 9, and north up.
|
|
118
|
+
center: n[o],
|
|
119
|
+
zoom: 4,
|
|
120
|
+
bearing: 0,
|
|
121
|
+
// These options control the flight curve, making it move
|
|
122
|
+
// slowly and zoom out almost completely before starting
|
|
123
|
+
// to pan.
|
|
124
|
+
speed: 0.9,
|
|
125
|
+
// make the flying slow
|
|
126
|
+
curve: 1,
|
|
127
|
+
// change the speed at which it zooms out
|
|
128
|
+
// This can be any easing function: it takes a number between
|
|
129
|
+
// 0 and 1 and returns another number between 0 and 1.
|
|
130
|
+
easing(s) {
|
|
131
|
+
return s;
|
|
132
|
+
},
|
|
133
|
+
// this animation is considered essential with respect to prefers-reduced-motion
|
|
134
|
+
essential: !0
|
|
135
|
+
}, { flyEnd: !0 });
|
|
136
|
+
};
|
|
137
|
+
e.on("moveend", (o) => {
|
|
138
|
+
o.flyEnd === !0 && b(e, d, n[i]).then(() => {
|
|
139
|
+
i < l - 1 ? (i += 1, a(i)) : r();
|
|
140
|
+
});
|
|
141
|
+
}), a(i);
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
const F = (e, t, r) => {
|
|
145
|
+
const n = Math.floor((t - e) / r), l = [];
|
|
146
|
+
if (n <= 0) return [[e, t]];
|
|
147
|
+
for (let i = 0; i < r; i += 1) {
|
|
148
|
+
let a = e + i * n, o = a + n < t ? a + n : t;
|
|
149
|
+
if (i > 0 && (a += 1 * i, o += 1 * i), i > 0 && o > t && (o = t), i === r - 1 && (o < t || o > t) && (o = t), l.push([a, o]), o >= t) break;
|
|
150
|
+
}
|
|
151
|
+
return l;
|
|
152
|
+
}, S = (e, t, r) => {
|
|
153
|
+
const n = [];
|
|
154
|
+
t.forEach((a) => {
|
|
155
|
+
n.push(a.value);
|
|
156
|
+
});
|
|
157
|
+
const l = Math.max(...n), i = F(1, l, 6);
|
|
158
|
+
if (i.length === 1) {
|
|
159
|
+
const [a, o] = i[0];
|
|
160
|
+
for (let s = 0; s < o; s += 1) {
|
|
161
|
+
const c = s + 1;
|
|
162
|
+
if (e && e >= c && e < c + 1)
|
|
163
|
+
return r.colors.brand[m[s]];
|
|
164
|
+
}
|
|
165
|
+
} else
|
|
166
|
+
for (let a = 0; a < i.length; a += 1) {
|
|
167
|
+
const [o, s] = i[a];
|
|
168
|
+
if (e && e >= o && e <= s)
|
|
169
|
+
return r.colors.brand[m[a]];
|
|
170
|
+
}
|
|
171
|
+
return r.colors.gray[300];
|
|
172
|
+
};
|
|
9
173
|
export {
|
|
10
|
-
animationCoordinator,
|
|
11
|
-
generateMapMarkers,
|
|
12
|
-
getCoordinatesBetween,
|
|
13
|
-
getCountryColor,
|
|
14
|
-
getLoansIntervals
|
|
174
|
+
A as animationCoordinator,
|
|
175
|
+
$ as generateMapMarkers,
|
|
176
|
+
M as getCoordinatesBetween,
|
|
177
|
+
S as getCountryColor,
|
|
178
|
+
F as getLoansIntervals
|
|
15
179
|
};
|