@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
|
@@ -0,0 +1,1037 @@
|
|
|
1
|
+
/**!
|
|
2
|
+
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
|
3
|
+
* @version 1.16.1
|
|
4
|
+
* @license
|
|
5
|
+
* Copyright (c) 2016 Federico Zivolo and contributors
|
|
6
|
+
*
|
|
7
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
* in the Software without restriction, including without limitation the rights
|
|
10
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
* furnished to do so, subject to the following conditions:
|
|
13
|
+
*
|
|
14
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
15
|
+
* copies or substantial portions of the Software.
|
|
16
|
+
*
|
|
17
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
+
* SOFTWARE.
|
|
24
|
+
*/
|
|
25
|
+
var T = typeof window < "u" && typeof document < "u" && typeof navigator < "u", pe = function() {
|
|
26
|
+
for (var e = ["Edge", "Trident", "Firefox"], t = 0; t < e.length; t += 1)
|
|
27
|
+
if (T && navigator.userAgent.indexOf(e[t]) >= 0)
|
|
28
|
+
return 1;
|
|
29
|
+
return 0;
|
|
30
|
+
}();
|
|
31
|
+
function ce(e) {
|
|
32
|
+
var t = !1;
|
|
33
|
+
return function() {
|
|
34
|
+
t || (t = !0, window.Promise.resolve().then(function() {
|
|
35
|
+
t = !1, e();
|
|
36
|
+
}));
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function de(e) {
|
|
40
|
+
var t = !1;
|
|
41
|
+
return function() {
|
|
42
|
+
t || (t = !0, setTimeout(function() {
|
|
43
|
+
t = !1, e();
|
|
44
|
+
}, pe));
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
var he = T && window.Promise, ve = he ? ce : de;
|
|
48
|
+
function K(e) {
|
|
49
|
+
var t = {};
|
|
50
|
+
return e && t.toString.call(e) === "[object Function]";
|
|
51
|
+
}
|
|
52
|
+
function O(e, t) {
|
|
53
|
+
if (e.nodeType !== 1)
|
|
54
|
+
return [];
|
|
55
|
+
var r = e.ownerDocument.defaultView, n = r.getComputedStyle(e, null);
|
|
56
|
+
return t ? n[t] : n;
|
|
57
|
+
}
|
|
58
|
+
function H(e) {
|
|
59
|
+
return e.nodeName === "HTML" ? e : e.parentNode || e.host;
|
|
60
|
+
}
|
|
61
|
+
function C(e) {
|
|
62
|
+
if (!e)
|
|
63
|
+
return document.body;
|
|
64
|
+
switch (e.nodeName) {
|
|
65
|
+
case "HTML":
|
|
66
|
+
case "BODY":
|
|
67
|
+
return e.ownerDocument.body;
|
|
68
|
+
case "#document":
|
|
69
|
+
return e.body;
|
|
70
|
+
}
|
|
71
|
+
var t = O(e), r = t.overflow, n = t.overflowX, o = t.overflowY;
|
|
72
|
+
return /(auto|scroll|overlay)/.test(r + o + n) ? e : C(H(e));
|
|
73
|
+
}
|
|
74
|
+
function X(e) {
|
|
75
|
+
return e && e.referenceNode ? e.referenceNode : e;
|
|
76
|
+
}
|
|
77
|
+
var z = T && !!(window.MSInputMethodContext && document.documentMode), Y = T && /MSIE 10/.test(navigator.userAgent);
|
|
78
|
+
function S(e) {
|
|
79
|
+
return e === 11 ? z : e === 10 ? Y : z || Y;
|
|
80
|
+
}
|
|
81
|
+
function x(e) {
|
|
82
|
+
if (!e)
|
|
83
|
+
return document.documentElement;
|
|
84
|
+
for (var t = S(10) ? document.body : null, r = e.offsetParent || null; r === t && e.nextElementSibling; )
|
|
85
|
+
r = (e = e.nextElementSibling).offsetParent;
|
|
86
|
+
var n = r && r.nodeName;
|
|
87
|
+
return !n || n === "BODY" || n === "HTML" ? e ? e.ownerDocument.documentElement : document.documentElement : ["TH", "TD", "TABLE"].indexOf(r.nodeName) !== -1 && O(r, "position") === "static" ? x(r) : r;
|
|
88
|
+
}
|
|
89
|
+
function me(e) {
|
|
90
|
+
var t = e.nodeName;
|
|
91
|
+
return t === "BODY" ? !1 : t === "HTML" || x(e.firstElementChild) === e;
|
|
92
|
+
}
|
|
93
|
+
function A(e) {
|
|
94
|
+
return e.parentNode !== null ? A(e.parentNode) : e;
|
|
95
|
+
}
|
|
96
|
+
function D(e, t) {
|
|
97
|
+
if (!e || !e.nodeType || !t || !t.nodeType)
|
|
98
|
+
return document.documentElement;
|
|
99
|
+
var r = e.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_FOLLOWING, n = r ? e : t, o = r ? t : e, i = document.createRange();
|
|
100
|
+
i.setStart(n, 0), i.setEnd(o, 0);
|
|
101
|
+
var f = i.commonAncestorContainer;
|
|
102
|
+
if (e !== f && t !== f || n.contains(o))
|
|
103
|
+
return me(f) ? f : x(f);
|
|
104
|
+
var s = A(e);
|
|
105
|
+
return s.host ? D(s.host, t) : D(e, A(t).host);
|
|
106
|
+
}
|
|
107
|
+
function P(e) {
|
|
108
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "top", r = t === "top" ? "scrollTop" : "scrollLeft", n = e.nodeName;
|
|
109
|
+
if (n === "BODY" || n === "HTML") {
|
|
110
|
+
var o = e.ownerDocument.documentElement, i = e.ownerDocument.scrollingElement || o;
|
|
111
|
+
return i[r];
|
|
112
|
+
}
|
|
113
|
+
return e[r];
|
|
114
|
+
}
|
|
115
|
+
function ge(e, t) {
|
|
116
|
+
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, n = P(t, "top"), o = P(t, "left"), i = r ? -1 : 1;
|
|
117
|
+
return e.top += n * i, e.bottom += n * i, e.left += o * i, e.right += o * i, e;
|
|
118
|
+
}
|
|
119
|
+
function q(e, t) {
|
|
120
|
+
var r = t === "x" ? "Left" : "Top", n = r === "Left" ? "Right" : "Bottom";
|
|
121
|
+
return parseFloat(e["border" + r + "Width"]) + parseFloat(e["border" + n + "Width"]);
|
|
122
|
+
}
|
|
123
|
+
function _(e, t, r, n) {
|
|
124
|
+
return Math.max(t["offset" + e], t["scroll" + e], r["client" + e], r["offset" + e], r["scroll" + e], S(10) ? parseInt(r["offset" + e]) + parseInt(n["margin" + (e === "Height" ? "Top" : "Left")]) + parseInt(n["margin" + (e === "Height" ? "Bottom" : "Right")]) : 0);
|
|
125
|
+
}
|
|
126
|
+
function J(e) {
|
|
127
|
+
var t = e.body, r = e.documentElement, n = S(10) && getComputedStyle(r);
|
|
128
|
+
return {
|
|
129
|
+
height: _("Height", t, r, n),
|
|
130
|
+
width: _("Width", t, r, n)
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
var be = function(e, t) {
|
|
134
|
+
if (!(e instanceof t))
|
|
135
|
+
throw new TypeError("Cannot call a class as a function");
|
|
136
|
+
}, we = /* @__PURE__ */ function() {
|
|
137
|
+
function e(t, r) {
|
|
138
|
+
for (var n = 0; n < r.length; n++) {
|
|
139
|
+
var o = r[n];
|
|
140
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
return function(t, r, n) {
|
|
144
|
+
return r && e(t.prototype, r), n && e(t, n), t;
|
|
145
|
+
};
|
|
146
|
+
}(), L = function(e, t, r) {
|
|
147
|
+
return t in e ? Object.defineProperty(e, t, {
|
|
148
|
+
value: r,
|
|
149
|
+
enumerable: !0,
|
|
150
|
+
configurable: !0,
|
|
151
|
+
writable: !0
|
|
152
|
+
}) : e[t] = r, e;
|
|
153
|
+
}, g = Object.assign || function(e) {
|
|
154
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
155
|
+
var r = arguments[t];
|
|
156
|
+
for (var n in r)
|
|
157
|
+
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
158
|
+
}
|
|
159
|
+
return e;
|
|
160
|
+
};
|
|
161
|
+
function y(e) {
|
|
162
|
+
return g({}, e, {
|
|
163
|
+
right: e.left + e.width,
|
|
164
|
+
bottom: e.top + e.height
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
function R(e) {
|
|
168
|
+
var t = {};
|
|
169
|
+
try {
|
|
170
|
+
if (S(10)) {
|
|
171
|
+
t = e.getBoundingClientRect();
|
|
172
|
+
var r = P(e, "top"), n = P(e, "left");
|
|
173
|
+
t.top += r, t.left += n, t.bottom += r, t.right += n;
|
|
174
|
+
} else
|
|
175
|
+
t = e.getBoundingClientRect();
|
|
176
|
+
} catch {
|
|
177
|
+
}
|
|
178
|
+
var o = {
|
|
179
|
+
left: t.left,
|
|
180
|
+
top: t.top,
|
|
181
|
+
width: t.right - t.left,
|
|
182
|
+
height: t.bottom - t.top
|
|
183
|
+
}, i = e.nodeName === "HTML" ? J(e.ownerDocument) : {}, f = i.width || e.clientWidth || o.width, s = i.height || e.clientHeight || o.height, a = e.offsetWidth - f, l = e.offsetHeight - s;
|
|
184
|
+
if (a || l) {
|
|
185
|
+
var p = O(e);
|
|
186
|
+
a -= q(p, "x"), l -= q(p, "y"), o.width -= a, o.height -= l;
|
|
187
|
+
}
|
|
188
|
+
return y(o);
|
|
189
|
+
}
|
|
190
|
+
function I(e, t) {
|
|
191
|
+
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, n = S(10), o = t.nodeName === "HTML", i = R(e), f = R(t), s = C(e), a = O(t), l = parseFloat(a.borderTopWidth), p = parseFloat(a.borderLeftWidth);
|
|
192
|
+
r && o && (f.top = Math.max(f.top, 0), f.left = Math.max(f.left, 0));
|
|
193
|
+
var u = y({
|
|
194
|
+
top: i.top - f.top - l,
|
|
195
|
+
left: i.left - f.left - p,
|
|
196
|
+
width: i.width,
|
|
197
|
+
height: i.height
|
|
198
|
+
});
|
|
199
|
+
if (u.marginTop = 0, u.marginLeft = 0, !n && o) {
|
|
200
|
+
var d = parseFloat(a.marginTop), c = parseFloat(a.marginLeft);
|
|
201
|
+
u.top -= l - d, u.bottom -= l - d, u.left -= p - c, u.right -= p - c, u.marginTop = d, u.marginLeft = c;
|
|
202
|
+
}
|
|
203
|
+
return (n && !r ? t.contains(s) : t === s && s.nodeName !== "BODY") && (u = ge(u, t)), u;
|
|
204
|
+
}
|
|
205
|
+
function ye(e) {
|
|
206
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, r = e.ownerDocument.documentElement, n = I(e, r), o = Math.max(r.clientWidth, window.innerWidth || 0), i = Math.max(r.clientHeight, window.innerHeight || 0), f = t ? 0 : P(r), s = t ? 0 : P(r, "left"), a = {
|
|
207
|
+
top: f - n.top + n.marginTop,
|
|
208
|
+
left: s - n.left + n.marginLeft,
|
|
209
|
+
width: o,
|
|
210
|
+
height: i
|
|
211
|
+
};
|
|
212
|
+
return y(a);
|
|
213
|
+
}
|
|
214
|
+
function Q(e) {
|
|
215
|
+
var t = e.nodeName;
|
|
216
|
+
if (t === "BODY" || t === "HTML")
|
|
217
|
+
return !1;
|
|
218
|
+
if (O(e, "position") === "fixed")
|
|
219
|
+
return !0;
|
|
220
|
+
var r = H(e);
|
|
221
|
+
return r ? Q(r) : !1;
|
|
222
|
+
}
|
|
223
|
+
function Z(e) {
|
|
224
|
+
if (!e || !e.parentElement || S())
|
|
225
|
+
return document.documentElement;
|
|
226
|
+
for (var t = e.parentElement; t && O(t, "transform") === "none"; )
|
|
227
|
+
t = t.parentElement;
|
|
228
|
+
return t || document.documentElement;
|
|
229
|
+
}
|
|
230
|
+
function k(e, t, r, n) {
|
|
231
|
+
var o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1, i = { top: 0, left: 0 }, f = o ? Z(e) : D(e, X(t));
|
|
232
|
+
if (n === "viewport")
|
|
233
|
+
i = ye(f, o);
|
|
234
|
+
else {
|
|
235
|
+
var s = void 0;
|
|
236
|
+
n === "scrollParent" ? (s = C(H(t)), s.nodeName === "BODY" && (s = e.ownerDocument.documentElement)) : n === "window" ? s = e.ownerDocument.documentElement : s = n;
|
|
237
|
+
var a = I(s, f, o);
|
|
238
|
+
if (s.nodeName === "HTML" && !Q(f)) {
|
|
239
|
+
var l = J(e.ownerDocument), p = l.height, u = l.width;
|
|
240
|
+
i.top += a.top - a.marginTop, i.bottom = p + a.top, i.left += a.left - a.marginLeft, i.right = u + a.left;
|
|
241
|
+
} else
|
|
242
|
+
i = a;
|
|
243
|
+
}
|
|
244
|
+
r = r || 0;
|
|
245
|
+
var d = typeof r == "number";
|
|
246
|
+
return i.left += d ? r : r.left || 0, i.top += d ? r : r.top || 0, i.right -= d ? r : r.right || 0, i.bottom -= d ? r : r.bottom || 0, i;
|
|
247
|
+
}
|
|
248
|
+
function Ee(e) {
|
|
249
|
+
var t = e.width, r = e.height;
|
|
250
|
+
return t * r;
|
|
251
|
+
}
|
|
252
|
+
function ee(e, t, r, n, o) {
|
|
253
|
+
var i = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : 0;
|
|
254
|
+
if (e.indexOf("auto") === -1)
|
|
255
|
+
return e;
|
|
256
|
+
var f = k(r, n, i, o), s = {
|
|
257
|
+
top: {
|
|
258
|
+
width: f.width,
|
|
259
|
+
height: t.top - f.top
|
|
260
|
+
},
|
|
261
|
+
right: {
|
|
262
|
+
width: f.right - t.right,
|
|
263
|
+
height: f.height
|
|
264
|
+
},
|
|
265
|
+
bottom: {
|
|
266
|
+
width: f.width,
|
|
267
|
+
height: f.bottom - t.bottom
|
|
268
|
+
},
|
|
269
|
+
left: {
|
|
270
|
+
width: t.left - f.left,
|
|
271
|
+
height: f.height
|
|
272
|
+
}
|
|
273
|
+
}, a = Object.keys(s).map(function(d) {
|
|
274
|
+
return g({
|
|
275
|
+
key: d
|
|
276
|
+
}, s[d], {
|
|
277
|
+
area: Ee(s[d])
|
|
278
|
+
});
|
|
279
|
+
}).sort(function(d, c) {
|
|
280
|
+
return c.area - d.area;
|
|
281
|
+
}), l = a.filter(function(d) {
|
|
282
|
+
var c = d.width, h = d.height;
|
|
283
|
+
return c >= r.clientWidth && h >= r.clientHeight;
|
|
284
|
+
}), p = l.length > 0 ? l[0].key : a[0].key, u = e.split("-")[1];
|
|
285
|
+
return p + (u ? "-" + u : "");
|
|
286
|
+
}
|
|
287
|
+
function te(e, t, r) {
|
|
288
|
+
var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null, o = n ? Z(t) : D(t, X(r));
|
|
289
|
+
return I(r, o, n);
|
|
290
|
+
}
|
|
291
|
+
function re(e) {
|
|
292
|
+
var t = e.ownerDocument.defaultView, r = t.getComputedStyle(e), n = parseFloat(r.marginTop || 0) + parseFloat(r.marginBottom || 0), o = parseFloat(r.marginLeft || 0) + parseFloat(r.marginRight || 0), i = {
|
|
293
|
+
width: e.offsetWidth + o,
|
|
294
|
+
height: e.offsetHeight + n
|
|
295
|
+
};
|
|
296
|
+
return i;
|
|
297
|
+
}
|
|
298
|
+
function N(e) {
|
|
299
|
+
var t = { left: "right", right: "left", bottom: "top", top: "bottom" };
|
|
300
|
+
return e.replace(/left|right|bottom|top/g, function(r) {
|
|
301
|
+
return t[r];
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
function ne(e, t, r) {
|
|
305
|
+
r = r.split("-")[0];
|
|
306
|
+
var n = re(e), o = {
|
|
307
|
+
width: n.width,
|
|
308
|
+
height: n.height
|
|
309
|
+
}, i = ["right", "left"].indexOf(r) !== -1, f = i ? "top" : "left", s = i ? "left" : "top", a = i ? "height" : "width", l = i ? "width" : "height";
|
|
310
|
+
return o[f] = t[f] + t[a] / 2 - n[a] / 2, r === s ? o[s] = t[s] - n[l] : o[s] = t[N(s)], o;
|
|
311
|
+
}
|
|
312
|
+
function M(e, t) {
|
|
313
|
+
return Array.prototype.find ? e.find(t) : e.filter(t)[0];
|
|
314
|
+
}
|
|
315
|
+
function Oe(e, t, r) {
|
|
316
|
+
if (Array.prototype.findIndex)
|
|
317
|
+
return e.findIndex(function(o) {
|
|
318
|
+
return o[t] === r;
|
|
319
|
+
});
|
|
320
|
+
var n = M(e, function(o) {
|
|
321
|
+
return o[t] === r;
|
|
322
|
+
});
|
|
323
|
+
return e.indexOf(n);
|
|
324
|
+
}
|
|
325
|
+
function ie(e, t, r) {
|
|
326
|
+
var n = r === void 0 ? e : e.slice(0, Oe(e, "name", r));
|
|
327
|
+
return n.forEach(function(o) {
|
|
328
|
+
o.function && console.warn("`modifier.function` is deprecated, use `modifier.fn`!");
|
|
329
|
+
var i = o.function || o.fn;
|
|
330
|
+
o.enabled && K(i) && (t.offsets.popper = y(t.offsets.popper), t.offsets.reference = y(t.offsets.reference), t = i(t, o));
|
|
331
|
+
}), t;
|
|
332
|
+
}
|
|
333
|
+
function xe() {
|
|
334
|
+
if (!this.state.isDestroyed) {
|
|
335
|
+
var e = {
|
|
336
|
+
instance: this,
|
|
337
|
+
styles: {},
|
|
338
|
+
arrowStyles: {},
|
|
339
|
+
attributes: {},
|
|
340
|
+
flipped: !1,
|
|
341
|
+
offsets: {}
|
|
342
|
+
};
|
|
343
|
+
e.offsets.reference = te(this.state, this.popper, this.reference, this.options.positionFixed), e.placement = ee(this.options.placement, e.offsets.reference, this.popper, this.reference, this.options.modifiers.flip.boundariesElement, this.options.modifiers.flip.padding), e.originalPlacement = e.placement, e.positionFixed = this.options.positionFixed, e.offsets.popper = ne(this.popper, e.offsets.reference, e.placement), e.offsets.popper.position = this.options.positionFixed ? "fixed" : "absolute", e = ie(this.modifiers, e), this.state.isCreated ? this.options.onUpdate(e) : (this.state.isCreated = !0, this.options.onCreate(e));
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
function oe(e, t) {
|
|
347
|
+
return e.some(function(r) {
|
|
348
|
+
var n = r.name, o = r.enabled;
|
|
349
|
+
return o && n === t;
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
function V(e) {
|
|
353
|
+
for (var t = [!1, "ms", "Webkit", "Moz", "O"], r = e.charAt(0).toUpperCase() + e.slice(1), n = 0; n < t.length; n++) {
|
|
354
|
+
var o = t[n], i = o ? "" + o + r : e;
|
|
355
|
+
if (typeof document.body.style[i] < "u")
|
|
356
|
+
return i;
|
|
357
|
+
}
|
|
358
|
+
return null;
|
|
359
|
+
}
|
|
360
|
+
function Pe() {
|
|
361
|
+
return this.state.isDestroyed = !0, oe(this.modifiers, "applyStyle") && (this.popper.removeAttribute("x-placement"), this.popper.style.position = "", this.popper.style.top = "", this.popper.style.left = "", this.popper.style.right = "", this.popper.style.bottom = "", this.popper.style.willChange = "", this.popper.style[V("transform")] = ""), this.disableEventListeners(), this.options.removeOnDestroy && this.popper.parentNode.removeChild(this.popper), this;
|
|
362
|
+
}
|
|
363
|
+
function fe(e) {
|
|
364
|
+
var t = e.ownerDocument;
|
|
365
|
+
return t ? t.defaultView : window;
|
|
366
|
+
}
|
|
367
|
+
function se(e, t, r, n) {
|
|
368
|
+
var o = e.nodeName === "BODY", i = o ? e.ownerDocument.defaultView : e;
|
|
369
|
+
i.addEventListener(t, r, { passive: !0 }), o || se(C(i.parentNode), t, r, n), n.push(i);
|
|
370
|
+
}
|
|
371
|
+
function Le(e, t, r, n) {
|
|
372
|
+
r.updateBound = n, fe(e).addEventListener("resize", r.updateBound, { passive: !0 });
|
|
373
|
+
var o = C(e);
|
|
374
|
+
return se(o, "scroll", r.updateBound, r.scrollParents), r.scrollElement = o, r.eventsEnabled = !0, r;
|
|
375
|
+
}
|
|
376
|
+
function Se() {
|
|
377
|
+
this.state.eventsEnabled || (this.state = Le(this.reference, this.options, this.state, this.scheduleUpdate));
|
|
378
|
+
}
|
|
379
|
+
function Te(e, t) {
|
|
380
|
+
return fe(e).removeEventListener("resize", t.updateBound), t.scrollParents.forEach(function(r) {
|
|
381
|
+
r.removeEventListener("scroll", t.updateBound);
|
|
382
|
+
}), t.updateBound = null, t.scrollParents = [], t.scrollElement = null, t.eventsEnabled = !1, t;
|
|
383
|
+
}
|
|
384
|
+
function Ce() {
|
|
385
|
+
this.state.eventsEnabled && (cancelAnimationFrame(this.scheduleUpdate), this.state = Te(this.reference, this.state));
|
|
386
|
+
}
|
|
387
|
+
function $(e) {
|
|
388
|
+
return e !== "" && !isNaN(parseFloat(e)) && isFinite(e);
|
|
389
|
+
}
|
|
390
|
+
function W(e, t) {
|
|
391
|
+
Object.keys(t).forEach(function(r) {
|
|
392
|
+
var n = "";
|
|
393
|
+
["width", "height", "top", "right", "bottom", "left"].indexOf(r) !== -1 && $(t[r]) && (n = "px"), e.style[r] = t[r] + n;
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
function Me(e, t) {
|
|
397
|
+
Object.keys(t).forEach(function(r) {
|
|
398
|
+
var n = t[r];
|
|
399
|
+
n !== !1 ? e.setAttribute(r, t[r]) : e.removeAttribute(r);
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
function De(e) {
|
|
403
|
+
return W(e.instance.popper, e.styles), Me(e.instance.popper, e.attributes), e.arrowElement && Object.keys(e.arrowStyles).length && W(e.arrowElement, e.arrowStyles), e;
|
|
404
|
+
}
|
|
405
|
+
function Ne(e, t, r, n, o) {
|
|
406
|
+
var i = te(o, t, e, r.positionFixed), f = ee(r.placement, i, t, e, r.modifiers.flip.boundariesElement, r.modifiers.flip.padding);
|
|
407
|
+
return t.setAttribute("x-placement", f), W(t, { position: r.positionFixed ? "fixed" : "absolute" }), r;
|
|
408
|
+
}
|
|
409
|
+
function Be(e, t) {
|
|
410
|
+
var r = e.offsets, n = r.popper, o = r.reference, i = Math.round, f = Math.floor, s = function(w) {
|
|
411
|
+
return w;
|
|
412
|
+
}, a = i(o.width), l = i(n.width), p = ["left", "right"].indexOf(e.placement) !== -1, u = e.placement.indexOf("-") !== -1, d = a % 2 === l % 2, c = a % 2 === 1 && l % 2 === 1, h = t ? p || u || d ? i : f : s, v = t ? i : s;
|
|
413
|
+
return {
|
|
414
|
+
left: h(c && !u && t ? n.left - 1 : n.left),
|
|
415
|
+
top: v(n.top),
|
|
416
|
+
bottom: v(n.bottom),
|
|
417
|
+
right: h(n.right)
|
|
418
|
+
};
|
|
419
|
+
}
|
|
420
|
+
var Fe = T && /Firefox/i.test(navigator.userAgent);
|
|
421
|
+
function Ae(e, t) {
|
|
422
|
+
var r = t.x, n = t.y, o = e.offsets.popper, i = M(e.instance.modifiers, function(E) {
|
|
423
|
+
return E.name === "applyStyle";
|
|
424
|
+
}).gpuAcceleration;
|
|
425
|
+
i !== void 0 && console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");
|
|
426
|
+
var f = i !== void 0 ? i : t.gpuAcceleration, s = x(e.instance.popper), a = R(s), l = {
|
|
427
|
+
position: o.position
|
|
428
|
+
}, p = Be(e, window.devicePixelRatio < 2 || !Fe), u = r === "bottom" ? "top" : "bottom", d = n === "right" ? "left" : "right", c = V("transform"), h = void 0, v = void 0;
|
|
429
|
+
if (u === "bottom" ? s.nodeName === "HTML" ? v = -s.clientHeight + p.bottom : v = -a.height + p.bottom : v = p.top, d === "right" ? s.nodeName === "HTML" ? h = -s.clientWidth + p.right : h = -a.width + p.right : h = p.left, f && c)
|
|
430
|
+
l[c] = "translate3d(" + h + "px, " + v + "px, 0)", l[u] = 0, l[d] = 0, l.willChange = "transform";
|
|
431
|
+
else {
|
|
432
|
+
var b = u === "bottom" ? -1 : 1, w = d === "right" ? -1 : 1;
|
|
433
|
+
l[u] = v * b, l[d] = h * w, l.willChange = u + ", " + d;
|
|
434
|
+
}
|
|
435
|
+
var m = {
|
|
436
|
+
"x-placement": e.placement
|
|
437
|
+
};
|
|
438
|
+
return e.attributes = g({}, m, e.attributes), e.styles = g({}, l, e.styles), e.arrowStyles = g({}, e.offsets.arrow, e.arrowStyles), e;
|
|
439
|
+
}
|
|
440
|
+
function ae(e, t, r) {
|
|
441
|
+
var n = M(e, function(s) {
|
|
442
|
+
var a = s.name;
|
|
443
|
+
return a === t;
|
|
444
|
+
}), o = !!n && e.some(function(s) {
|
|
445
|
+
return s.name === r && s.enabled && s.order < n.order;
|
|
446
|
+
});
|
|
447
|
+
if (!o) {
|
|
448
|
+
var i = "`" + t + "`", f = "`" + r + "`";
|
|
449
|
+
console.warn(f + " modifier is required by " + i + " modifier in order to work, be sure to include it before " + i + "!");
|
|
450
|
+
}
|
|
451
|
+
return o;
|
|
452
|
+
}
|
|
453
|
+
function Re(e, t) {
|
|
454
|
+
var r;
|
|
455
|
+
if (!ae(e.instance.modifiers, "arrow", "keepTogether"))
|
|
456
|
+
return e;
|
|
457
|
+
var n = t.element;
|
|
458
|
+
if (typeof n == "string") {
|
|
459
|
+
if (n = e.instance.popper.querySelector(n), !n)
|
|
460
|
+
return e;
|
|
461
|
+
} else if (!e.instance.popper.contains(n))
|
|
462
|
+
return console.warn("WARNING: `arrow.element` must be child of its popper element!"), e;
|
|
463
|
+
var o = e.placement.split("-")[0], i = e.offsets, f = i.popper, s = i.reference, a = ["left", "right"].indexOf(o) !== -1, l = a ? "height" : "width", p = a ? "Top" : "Left", u = p.toLowerCase(), d = a ? "left" : "top", c = a ? "bottom" : "right", h = re(n)[l];
|
|
464
|
+
s[c] - h < f[u] && (e.offsets.popper[u] -= f[u] - (s[c] - h)), s[u] + h > f[c] && (e.offsets.popper[u] += s[u] + h - f[c]), e.offsets.popper = y(e.offsets.popper);
|
|
465
|
+
var v = s[u] + s[l] / 2 - h / 2, b = O(e.instance.popper), w = parseFloat(b["margin" + p]), m = parseFloat(b["border" + p + "Width"]), E = v - e.offsets.popper[u] - w - m;
|
|
466
|
+
return E = Math.max(Math.min(f[l] - h, E), 0), e.arrowElement = n, e.offsets.arrow = (r = {}, L(r, u, Math.round(E)), L(r, d, ""), r), e;
|
|
467
|
+
}
|
|
468
|
+
function We(e) {
|
|
469
|
+
return e === "end" ? "start" : e === "start" ? "end" : e;
|
|
470
|
+
}
|
|
471
|
+
var ue = ["auto-start", "auto", "auto-end", "top-start", "top", "top-end", "right-start", "right", "right-end", "bottom-end", "bottom", "bottom-start", "left-end", "left", "left-start"], B = ue.slice(3);
|
|
472
|
+
function G(e) {
|
|
473
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, r = B.indexOf(e), n = B.slice(r + 1).concat(B.slice(0, r));
|
|
474
|
+
return t ? n.reverse() : n;
|
|
475
|
+
}
|
|
476
|
+
var F = {
|
|
477
|
+
FLIP: "flip",
|
|
478
|
+
CLOCKWISE: "clockwise",
|
|
479
|
+
COUNTERCLOCKWISE: "counterclockwise"
|
|
480
|
+
};
|
|
481
|
+
function He(e, t) {
|
|
482
|
+
if (oe(e.instance.modifiers, "inner") || e.flipped && e.placement === e.originalPlacement)
|
|
483
|
+
return e;
|
|
484
|
+
var r = k(e.instance.popper, e.instance.reference, t.padding, t.boundariesElement, e.positionFixed), n = e.placement.split("-")[0], o = N(n), i = e.placement.split("-")[1] || "", f = [];
|
|
485
|
+
switch (t.behavior) {
|
|
486
|
+
case F.FLIP:
|
|
487
|
+
f = [n, o];
|
|
488
|
+
break;
|
|
489
|
+
case F.CLOCKWISE:
|
|
490
|
+
f = G(n);
|
|
491
|
+
break;
|
|
492
|
+
case F.COUNTERCLOCKWISE:
|
|
493
|
+
f = G(n, !0);
|
|
494
|
+
break;
|
|
495
|
+
default:
|
|
496
|
+
f = t.behavior;
|
|
497
|
+
}
|
|
498
|
+
return f.forEach(function(s, a) {
|
|
499
|
+
if (n !== s || f.length === a + 1)
|
|
500
|
+
return e;
|
|
501
|
+
n = e.placement.split("-")[0], o = N(n);
|
|
502
|
+
var l = e.offsets.popper, p = e.offsets.reference, u = Math.floor, d = n === "left" && u(l.right) > u(p.left) || n === "right" && u(l.left) < u(p.right) || n === "top" && u(l.bottom) > u(p.top) || n === "bottom" && u(l.top) < u(p.bottom), c = u(l.left) < u(r.left), h = u(l.right) > u(r.right), v = u(l.top) < u(r.top), b = u(l.bottom) > u(r.bottom), w = n === "left" && c || n === "right" && h || n === "top" && v || n === "bottom" && b, m = ["top", "bottom"].indexOf(n) !== -1, E = !!t.flipVariations && (m && i === "start" && c || m && i === "end" && h || !m && i === "start" && v || !m && i === "end" && b), le = !!t.flipVariationsByContent && (m && i === "start" && h || m && i === "end" && c || !m && i === "start" && b || !m && i === "end" && v), j = E || le;
|
|
503
|
+
(d || w || j) && (e.flipped = !0, (d || w) && (n = f[a + 1]), j && (i = We(i)), e.placement = n + (i ? "-" + i : ""), e.offsets.popper = g({}, e.offsets.popper, ne(e.instance.popper, e.offsets.reference, e.placement)), e = ie(e.instance.modifiers, e, "flip"));
|
|
504
|
+
}), e;
|
|
505
|
+
}
|
|
506
|
+
function Ie(e) {
|
|
507
|
+
var t = e.offsets, r = t.popper, n = t.reference, o = e.placement.split("-")[0], i = Math.floor, f = ["top", "bottom"].indexOf(o) !== -1, s = f ? "right" : "bottom", a = f ? "left" : "top", l = f ? "width" : "height";
|
|
508
|
+
return r[s] < i(n[a]) && (e.offsets.popper[a] = i(n[a]) - r[l]), r[a] > i(n[s]) && (e.offsets.popper[a] = i(n[s])), e;
|
|
509
|
+
}
|
|
510
|
+
function ke(e, t, r, n) {
|
|
511
|
+
var o = e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/), i = +o[1], f = o[2];
|
|
512
|
+
if (!i)
|
|
513
|
+
return e;
|
|
514
|
+
if (f.indexOf("%") === 0) {
|
|
515
|
+
var s = void 0;
|
|
516
|
+
switch (f) {
|
|
517
|
+
case "%p":
|
|
518
|
+
s = r;
|
|
519
|
+
break;
|
|
520
|
+
case "%":
|
|
521
|
+
case "%r":
|
|
522
|
+
default:
|
|
523
|
+
s = n;
|
|
524
|
+
}
|
|
525
|
+
var a = y(s);
|
|
526
|
+
return a[t] / 100 * i;
|
|
527
|
+
} else if (f === "vh" || f === "vw") {
|
|
528
|
+
var l = void 0;
|
|
529
|
+
return f === "vh" ? l = Math.max(document.documentElement.clientHeight, window.innerHeight || 0) : l = Math.max(document.documentElement.clientWidth, window.innerWidth || 0), l / 100 * i;
|
|
530
|
+
} else
|
|
531
|
+
return i;
|
|
532
|
+
}
|
|
533
|
+
function Ve(e, t, r, n) {
|
|
534
|
+
var o = [0, 0], i = ["right", "left"].indexOf(n) !== -1, f = e.split(/(\+|\-)/).map(function(p) {
|
|
535
|
+
return p.trim();
|
|
536
|
+
}), s = f.indexOf(M(f, function(p) {
|
|
537
|
+
return p.search(/,|\s/) !== -1;
|
|
538
|
+
}));
|
|
539
|
+
f[s] && f[s].indexOf(",") === -1 && console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");
|
|
540
|
+
var a = /\s*,\s*|\s+/, l = s !== -1 ? [f.slice(0, s).concat([f[s].split(a)[0]]), [f[s].split(a)[1]].concat(f.slice(s + 1))] : [f];
|
|
541
|
+
return l = l.map(function(p, u) {
|
|
542
|
+
var d = (u === 1 ? !i : i) ? "height" : "width", c = !1;
|
|
543
|
+
return p.reduce(function(h, v) {
|
|
544
|
+
return h[h.length - 1] === "" && ["+", "-"].indexOf(v) !== -1 ? (h[h.length - 1] = v, c = !0, h) : c ? (h[h.length - 1] += v, c = !1, h) : h.concat(v);
|
|
545
|
+
}, []).map(function(h) {
|
|
546
|
+
return ke(h, d, t, r);
|
|
547
|
+
});
|
|
548
|
+
}), l.forEach(function(p, u) {
|
|
549
|
+
p.forEach(function(d, c) {
|
|
550
|
+
$(d) && (o[u] += d * (p[c - 1] === "-" ? -1 : 1));
|
|
551
|
+
});
|
|
552
|
+
}), o;
|
|
553
|
+
}
|
|
554
|
+
function $e(e, t) {
|
|
555
|
+
var r = t.offset, n = e.placement, o = e.offsets, i = o.popper, f = o.reference, s = n.split("-")[0], a = void 0;
|
|
556
|
+
return $(+r) ? a = [+r, 0] : a = Ve(r, i, f, s), s === "left" ? (i.top += a[0], i.left -= a[1]) : s === "right" ? (i.top += a[0], i.left += a[1]) : s === "top" ? (i.left += a[0], i.top -= a[1]) : s === "bottom" && (i.left += a[0], i.top += a[1]), e.popper = i, e;
|
|
557
|
+
}
|
|
558
|
+
function Ue(e, t) {
|
|
559
|
+
var r = t.boundariesElement || x(e.instance.popper);
|
|
560
|
+
e.instance.reference === r && (r = x(r));
|
|
561
|
+
var n = V("transform"), o = e.instance.popper.style, i = o.top, f = o.left, s = o[n];
|
|
562
|
+
o.top = "", o.left = "", o[n] = "";
|
|
563
|
+
var a = k(e.instance.popper, e.instance.reference, t.padding, r, e.positionFixed);
|
|
564
|
+
o.top = i, o.left = f, o[n] = s, t.boundaries = a;
|
|
565
|
+
var l = t.priority, p = e.offsets.popper, u = {
|
|
566
|
+
primary: function(c) {
|
|
567
|
+
var h = p[c];
|
|
568
|
+
return p[c] < a[c] && !t.escapeWithReference && (h = Math.max(p[c], a[c])), L({}, c, h);
|
|
569
|
+
},
|
|
570
|
+
secondary: function(c) {
|
|
571
|
+
var h = c === "right" ? "left" : "top", v = p[h];
|
|
572
|
+
return p[c] > a[c] && !t.escapeWithReference && (v = Math.min(p[h], a[c] - (c === "right" ? p.width : p.height))), L({}, h, v);
|
|
573
|
+
}
|
|
574
|
+
};
|
|
575
|
+
return l.forEach(function(d) {
|
|
576
|
+
var c = ["left", "top"].indexOf(d) !== -1 ? "primary" : "secondary";
|
|
577
|
+
p = g({}, p, u[c](d));
|
|
578
|
+
}), e.offsets.popper = p, e;
|
|
579
|
+
}
|
|
580
|
+
function je(e) {
|
|
581
|
+
var t = e.placement, r = t.split("-")[0], n = t.split("-")[1];
|
|
582
|
+
if (n) {
|
|
583
|
+
var o = e.offsets, i = o.reference, f = o.popper, s = ["bottom", "top"].indexOf(r) !== -1, a = s ? "left" : "top", l = s ? "width" : "height", p = {
|
|
584
|
+
start: L({}, a, i[a]),
|
|
585
|
+
end: L({}, a, i[a] + i[l] - f[l])
|
|
586
|
+
};
|
|
587
|
+
e.offsets.popper = g({}, f, p[n]);
|
|
588
|
+
}
|
|
589
|
+
return e;
|
|
590
|
+
}
|
|
591
|
+
function ze(e) {
|
|
592
|
+
if (!ae(e.instance.modifiers, "hide", "preventOverflow"))
|
|
593
|
+
return e;
|
|
594
|
+
var t = e.offsets.reference, r = M(e.instance.modifiers, function(n) {
|
|
595
|
+
return n.name === "preventOverflow";
|
|
596
|
+
}).boundaries;
|
|
597
|
+
if (t.bottom < r.top || t.left > r.right || t.top > r.bottom || t.right < r.left) {
|
|
598
|
+
if (e.hide === !0)
|
|
599
|
+
return e;
|
|
600
|
+
e.hide = !0, e.attributes["x-out-of-boundaries"] = "";
|
|
601
|
+
} else {
|
|
602
|
+
if (e.hide === !1)
|
|
603
|
+
return e;
|
|
604
|
+
e.hide = !1, e.attributes["x-out-of-boundaries"] = !1;
|
|
605
|
+
}
|
|
606
|
+
return e;
|
|
607
|
+
}
|
|
608
|
+
function Ye(e) {
|
|
609
|
+
var t = e.placement, r = t.split("-")[0], n = e.offsets, o = n.popper, i = n.reference, f = ["left", "right"].indexOf(r) !== -1, s = ["top", "left"].indexOf(r) === -1;
|
|
610
|
+
return o[f ? "left" : "top"] = i[r] - (s ? o[f ? "width" : "height"] : 0), e.placement = N(t), e.offsets.popper = y(o), e;
|
|
611
|
+
}
|
|
612
|
+
var qe = {
|
|
613
|
+
/**
|
|
614
|
+
* Modifier used to shift the popper on the start or end of its reference
|
|
615
|
+
* element.<br />
|
|
616
|
+
* It will read the variation of the `placement` property.<br />
|
|
617
|
+
* It can be one either `-end` or `-start`.
|
|
618
|
+
* @memberof modifiers
|
|
619
|
+
* @inner
|
|
620
|
+
*/
|
|
621
|
+
shift: {
|
|
622
|
+
/** @prop {number} order=100 - Index used to define the order of execution */
|
|
623
|
+
order: 100,
|
|
624
|
+
/** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
|
|
625
|
+
enabled: !0,
|
|
626
|
+
/** @prop {ModifierFn} */
|
|
627
|
+
fn: je
|
|
628
|
+
},
|
|
629
|
+
/**
|
|
630
|
+
* The `offset` modifier can shift your popper on both its axis.
|
|
631
|
+
*
|
|
632
|
+
* It accepts the following units:
|
|
633
|
+
* - `px` or unit-less, interpreted as pixels
|
|
634
|
+
* - `%` or `%r`, percentage relative to the length of the reference element
|
|
635
|
+
* - `%p`, percentage relative to the length of the popper element
|
|
636
|
+
* - `vw`, CSS viewport width unit
|
|
637
|
+
* - `vh`, CSS viewport height unit
|
|
638
|
+
*
|
|
639
|
+
* For length is intended the main axis relative to the placement of the popper.<br />
|
|
640
|
+
* This means that if the placement is `top` or `bottom`, the length will be the
|
|
641
|
+
* `width`. In case of `left` or `right`, it will be the `height`.
|
|
642
|
+
*
|
|
643
|
+
* You can provide a single value (as `Number` or `String`), or a pair of values
|
|
644
|
+
* as `String` divided by a comma or one (or more) white spaces.<br />
|
|
645
|
+
* The latter is a deprecated method because it leads to confusion and will be
|
|
646
|
+
* removed in v2.<br />
|
|
647
|
+
* Additionally, it accepts additions and subtractions between different units.
|
|
648
|
+
* Note that multiplications and divisions aren't supported.
|
|
649
|
+
*
|
|
650
|
+
* Valid examples are:
|
|
651
|
+
* ```
|
|
652
|
+
* 10
|
|
653
|
+
* '10%'
|
|
654
|
+
* '10, 10'
|
|
655
|
+
* '10%, 10'
|
|
656
|
+
* '10 + 10%'
|
|
657
|
+
* '10 - 5vh + 3%'
|
|
658
|
+
* '-10px + 5vh, 5px - 6%'
|
|
659
|
+
* ```
|
|
660
|
+
* > **NB**: If you desire to apply offsets to your poppers in a way that may make them overlap
|
|
661
|
+
* > with their reference element, unfortunately, you will have to disable the `flip` modifier.
|
|
662
|
+
* > You can read more on this at this [issue](https://github.com/FezVrasta/popper.js/issues/373).
|
|
663
|
+
*
|
|
664
|
+
* @memberof modifiers
|
|
665
|
+
* @inner
|
|
666
|
+
*/
|
|
667
|
+
offset: {
|
|
668
|
+
/** @prop {number} order=200 - Index used to define the order of execution */
|
|
669
|
+
order: 200,
|
|
670
|
+
/** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
|
|
671
|
+
enabled: !0,
|
|
672
|
+
/** @prop {ModifierFn} */
|
|
673
|
+
fn: $e,
|
|
674
|
+
/** @prop {Number|String} offset=0
|
|
675
|
+
* The offset value as described in the modifier description
|
|
676
|
+
*/
|
|
677
|
+
offset: 0
|
|
678
|
+
},
|
|
679
|
+
/**
|
|
680
|
+
* Modifier used to prevent the popper from being positioned outside the boundary.
|
|
681
|
+
*
|
|
682
|
+
* A scenario exists where the reference itself is not within the boundaries.<br />
|
|
683
|
+
* We can say it has "escaped the boundaries" — or just "escaped".<br />
|
|
684
|
+
* In this case we need to decide whether the popper should either:
|
|
685
|
+
*
|
|
686
|
+
* - detach from the reference and remain "trapped" in the boundaries, or
|
|
687
|
+
* - if it should ignore the boundary and "escape with its reference"
|
|
688
|
+
*
|
|
689
|
+
* When `escapeWithReference` is set to`true` and reference is completely
|
|
690
|
+
* outside its boundaries, the popper will overflow (or completely leave)
|
|
691
|
+
* the boundaries in order to remain attached to the edge of the reference.
|
|
692
|
+
*
|
|
693
|
+
* @memberof modifiers
|
|
694
|
+
* @inner
|
|
695
|
+
*/
|
|
696
|
+
preventOverflow: {
|
|
697
|
+
/** @prop {number} order=300 - Index used to define the order of execution */
|
|
698
|
+
order: 300,
|
|
699
|
+
/** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
|
|
700
|
+
enabled: !0,
|
|
701
|
+
/** @prop {ModifierFn} */
|
|
702
|
+
fn: Ue,
|
|
703
|
+
/**
|
|
704
|
+
* @prop {Array} [priority=['left','right','top','bottom']]
|
|
705
|
+
* Popper will try to prevent overflow following these priorities by default,
|
|
706
|
+
* then, it could overflow on the left and on top of the `boundariesElement`
|
|
707
|
+
*/
|
|
708
|
+
priority: ["left", "right", "top", "bottom"],
|
|
709
|
+
/**
|
|
710
|
+
* @prop {number} padding=5
|
|
711
|
+
* Amount of pixel used to define a minimum distance between the boundaries
|
|
712
|
+
* and the popper. This makes sure the popper always has a little padding
|
|
713
|
+
* between the edges of its container
|
|
714
|
+
*/
|
|
715
|
+
padding: 5,
|
|
716
|
+
/**
|
|
717
|
+
* @prop {String|HTMLElement} boundariesElement='scrollParent'
|
|
718
|
+
* Boundaries used by the modifier. Can be `scrollParent`, `window`,
|
|
719
|
+
* `viewport` or any DOM element.
|
|
720
|
+
*/
|
|
721
|
+
boundariesElement: "scrollParent"
|
|
722
|
+
},
|
|
723
|
+
/**
|
|
724
|
+
* Modifier used to make sure the reference and its popper stay near each other
|
|
725
|
+
* without leaving any gap between the two. Especially useful when the arrow is
|
|
726
|
+
* enabled and you want to ensure that it points to its reference element.
|
|
727
|
+
* It cares only about the first axis. You can still have poppers with margin
|
|
728
|
+
* between the popper and its reference element.
|
|
729
|
+
* @memberof modifiers
|
|
730
|
+
* @inner
|
|
731
|
+
*/
|
|
732
|
+
keepTogether: {
|
|
733
|
+
/** @prop {number} order=400 - Index used to define the order of execution */
|
|
734
|
+
order: 400,
|
|
735
|
+
/** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
|
|
736
|
+
enabled: !0,
|
|
737
|
+
/** @prop {ModifierFn} */
|
|
738
|
+
fn: Ie
|
|
739
|
+
},
|
|
740
|
+
/**
|
|
741
|
+
* This modifier is used to move the `arrowElement` of the popper to make
|
|
742
|
+
* sure it is positioned between the reference element and its popper element.
|
|
743
|
+
* It will read the outer size of the `arrowElement` node to detect how many
|
|
744
|
+
* pixels of conjunction are needed.
|
|
745
|
+
*
|
|
746
|
+
* It has no effect if no `arrowElement` is provided.
|
|
747
|
+
* @memberof modifiers
|
|
748
|
+
* @inner
|
|
749
|
+
*/
|
|
750
|
+
arrow: {
|
|
751
|
+
/** @prop {number} order=500 - Index used to define the order of execution */
|
|
752
|
+
order: 500,
|
|
753
|
+
/** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
|
|
754
|
+
enabled: !0,
|
|
755
|
+
/** @prop {ModifierFn} */
|
|
756
|
+
fn: Re,
|
|
757
|
+
/** @prop {String|HTMLElement} element='[x-arrow]' - Selector or node used as arrow */
|
|
758
|
+
element: "[x-arrow]"
|
|
759
|
+
},
|
|
760
|
+
/**
|
|
761
|
+
* Modifier used to flip the popper's placement when it starts to overlap its
|
|
762
|
+
* reference element.
|
|
763
|
+
*
|
|
764
|
+
* Requires the `preventOverflow` modifier before it in order to work.
|
|
765
|
+
*
|
|
766
|
+
* **NOTE:** this modifier will interrupt the current update cycle and will
|
|
767
|
+
* restart it if it detects the need to flip the placement.
|
|
768
|
+
* @memberof modifiers
|
|
769
|
+
* @inner
|
|
770
|
+
*/
|
|
771
|
+
flip: {
|
|
772
|
+
/** @prop {number} order=600 - Index used to define the order of execution */
|
|
773
|
+
order: 600,
|
|
774
|
+
/** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
|
|
775
|
+
enabled: !0,
|
|
776
|
+
/** @prop {ModifierFn} */
|
|
777
|
+
fn: He,
|
|
778
|
+
/**
|
|
779
|
+
* @prop {String|Array} behavior='flip'
|
|
780
|
+
* The behavior used to change the popper's placement. It can be one of
|
|
781
|
+
* `flip`, `clockwise`, `counterclockwise` or an array with a list of valid
|
|
782
|
+
* placements (with optional variations)
|
|
783
|
+
*/
|
|
784
|
+
behavior: "flip",
|
|
785
|
+
/**
|
|
786
|
+
* @prop {number} padding=5
|
|
787
|
+
* The popper will flip if it hits the edges of the `boundariesElement`
|
|
788
|
+
*/
|
|
789
|
+
padding: 5,
|
|
790
|
+
/**
|
|
791
|
+
* @prop {String|HTMLElement} boundariesElement='viewport'
|
|
792
|
+
* The element which will define the boundaries of the popper position.
|
|
793
|
+
* The popper will never be placed outside of the defined boundaries
|
|
794
|
+
* (except if `keepTogether` is enabled)
|
|
795
|
+
*/
|
|
796
|
+
boundariesElement: "viewport",
|
|
797
|
+
/**
|
|
798
|
+
* @prop {Boolean} flipVariations=false
|
|
799
|
+
* The popper will switch placement variation between `-start` and `-end` when
|
|
800
|
+
* the reference element overlaps its boundaries.
|
|
801
|
+
*
|
|
802
|
+
* The original placement should have a set variation.
|
|
803
|
+
*/
|
|
804
|
+
flipVariations: !1,
|
|
805
|
+
/**
|
|
806
|
+
* @prop {Boolean} flipVariationsByContent=false
|
|
807
|
+
* The popper will switch placement variation between `-start` and `-end` when
|
|
808
|
+
* the popper element overlaps its reference boundaries.
|
|
809
|
+
*
|
|
810
|
+
* The original placement should have a set variation.
|
|
811
|
+
*/
|
|
812
|
+
flipVariationsByContent: !1
|
|
813
|
+
},
|
|
814
|
+
/**
|
|
815
|
+
* Modifier used to make the popper flow toward the inner of the reference element.
|
|
816
|
+
* By default, when this modifier is disabled, the popper will be placed outside
|
|
817
|
+
* the reference element.
|
|
818
|
+
* @memberof modifiers
|
|
819
|
+
* @inner
|
|
820
|
+
*/
|
|
821
|
+
inner: {
|
|
822
|
+
/** @prop {number} order=700 - Index used to define the order of execution */
|
|
823
|
+
order: 700,
|
|
824
|
+
/** @prop {Boolean} enabled=false - Whether the modifier is enabled or not */
|
|
825
|
+
enabled: !1,
|
|
826
|
+
/** @prop {ModifierFn} */
|
|
827
|
+
fn: Ye
|
|
828
|
+
},
|
|
829
|
+
/**
|
|
830
|
+
* Modifier used to hide the popper when its reference element is outside of the
|
|
831
|
+
* popper boundaries. It will set a `x-out-of-boundaries` attribute which can
|
|
832
|
+
* be used to hide with a CSS selector the popper when its reference is
|
|
833
|
+
* out of boundaries.
|
|
834
|
+
*
|
|
835
|
+
* Requires the `preventOverflow` modifier before it in order to work.
|
|
836
|
+
* @memberof modifiers
|
|
837
|
+
* @inner
|
|
838
|
+
*/
|
|
839
|
+
hide: {
|
|
840
|
+
/** @prop {number} order=800 - Index used to define the order of execution */
|
|
841
|
+
order: 800,
|
|
842
|
+
/** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
|
|
843
|
+
enabled: !0,
|
|
844
|
+
/** @prop {ModifierFn} */
|
|
845
|
+
fn: ze
|
|
846
|
+
},
|
|
847
|
+
/**
|
|
848
|
+
* Computes the style that will be applied to the popper element to gets
|
|
849
|
+
* properly positioned.
|
|
850
|
+
*
|
|
851
|
+
* Note that this modifier will not touch the DOM, it just prepares the styles
|
|
852
|
+
* so that `applyStyle` modifier can apply it. This separation is useful
|
|
853
|
+
* in case you need to replace `applyStyle` with a custom implementation.
|
|
854
|
+
*
|
|
855
|
+
* This modifier has `850` as `order` value to maintain backward compatibility
|
|
856
|
+
* with previous versions of Popper.js. Expect the modifiers ordering method
|
|
857
|
+
* to change in future major versions of the library.
|
|
858
|
+
*
|
|
859
|
+
* @memberof modifiers
|
|
860
|
+
* @inner
|
|
861
|
+
*/
|
|
862
|
+
computeStyle: {
|
|
863
|
+
/** @prop {number} order=850 - Index used to define the order of execution */
|
|
864
|
+
order: 850,
|
|
865
|
+
/** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
|
|
866
|
+
enabled: !0,
|
|
867
|
+
/** @prop {ModifierFn} */
|
|
868
|
+
fn: Ae,
|
|
869
|
+
/**
|
|
870
|
+
* @prop {Boolean} gpuAcceleration=true
|
|
871
|
+
* If true, it uses the CSS 3D transformation to position the popper.
|
|
872
|
+
* Otherwise, it will use the `top` and `left` properties
|
|
873
|
+
*/
|
|
874
|
+
gpuAcceleration: !0,
|
|
875
|
+
/**
|
|
876
|
+
* @prop {string} [x='bottom']
|
|
877
|
+
* Where to anchor the X axis (`bottom` or `top`). AKA X offset origin.
|
|
878
|
+
* Change this if your popper should grow in a direction different from `bottom`
|
|
879
|
+
*/
|
|
880
|
+
x: "bottom",
|
|
881
|
+
/**
|
|
882
|
+
* @prop {string} [x='left']
|
|
883
|
+
* Where to anchor the Y axis (`left` or `right`). AKA Y offset origin.
|
|
884
|
+
* Change this if your popper should grow in a direction different from `right`
|
|
885
|
+
*/
|
|
886
|
+
y: "right"
|
|
887
|
+
},
|
|
888
|
+
/**
|
|
889
|
+
* Applies the computed styles to the popper element.
|
|
890
|
+
*
|
|
891
|
+
* All the DOM manipulations are limited to this modifier. This is useful in case
|
|
892
|
+
* you want to integrate Popper.js inside a framework or view library and you
|
|
893
|
+
* want to delegate all the DOM manipulations to it.
|
|
894
|
+
*
|
|
895
|
+
* Note that if you disable this modifier, you must make sure the popper element
|
|
896
|
+
* has its position set to `absolute` before Popper.js can do its work!
|
|
897
|
+
*
|
|
898
|
+
* Just disable this modifier and define your own to achieve the desired effect.
|
|
899
|
+
*
|
|
900
|
+
* @memberof modifiers
|
|
901
|
+
* @inner
|
|
902
|
+
*/
|
|
903
|
+
applyStyle: {
|
|
904
|
+
/** @prop {number} order=900 - Index used to define the order of execution */
|
|
905
|
+
order: 900,
|
|
906
|
+
/** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
|
|
907
|
+
enabled: !0,
|
|
908
|
+
/** @prop {ModifierFn} */
|
|
909
|
+
fn: De,
|
|
910
|
+
/** @prop {Function} */
|
|
911
|
+
onLoad: Ne,
|
|
912
|
+
/**
|
|
913
|
+
* @deprecated since version 1.10.0, the property moved to `computeStyle` modifier
|
|
914
|
+
* @prop {Boolean} gpuAcceleration=true
|
|
915
|
+
* If true, it uses the CSS 3D transformation to position the popper.
|
|
916
|
+
* Otherwise, it will use the `top` and `left` properties
|
|
917
|
+
*/
|
|
918
|
+
gpuAcceleration: void 0
|
|
919
|
+
}
|
|
920
|
+
}, _e = {
|
|
921
|
+
/**
|
|
922
|
+
* Popper's placement.
|
|
923
|
+
* @prop {Popper.placements} placement='bottom'
|
|
924
|
+
*/
|
|
925
|
+
placement: "bottom",
|
|
926
|
+
/**
|
|
927
|
+
* Set this to true if you want popper to position it self in 'fixed' mode
|
|
928
|
+
* @prop {Boolean} positionFixed=false
|
|
929
|
+
*/
|
|
930
|
+
positionFixed: !1,
|
|
931
|
+
/**
|
|
932
|
+
* Whether events (resize, scroll) are initially enabled.
|
|
933
|
+
* @prop {Boolean} eventsEnabled=true
|
|
934
|
+
*/
|
|
935
|
+
eventsEnabled: !0,
|
|
936
|
+
/**
|
|
937
|
+
* Set to true if you want to automatically remove the popper when
|
|
938
|
+
* you call the `destroy` method.
|
|
939
|
+
* @prop {Boolean} removeOnDestroy=false
|
|
940
|
+
*/
|
|
941
|
+
removeOnDestroy: !1,
|
|
942
|
+
/**
|
|
943
|
+
* Callback called when the popper is created.<br />
|
|
944
|
+
* By default, it is set to no-op.<br />
|
|
945
|
+
* Access Popper.js instance with `data.instance`.
|
|
946
|
+
* @prop {onCreate}
|
|
947
|
+
*/
|
|
948
|
+
onCreate: function() {
|
|
949
|
+
},
|
|
950
|
+
/**
|
|
951
|
+
* Callback called when the popper is updated. This callback is not called
|
|
952
|
+
* on the initialization/creation of the popper, but only on subsequent
|
|
953
|
+
* updates.<br />
|
|
954
|
+
* By default, it is set to no-op.<br />
|
|
955
|
+
* Access Popper.js instance with `data.instance`.
|
|
956
|
+
* @prop {onUpdate}
|
|
957
|
+
*/
|
|
958
|
+
onUpdate: function() {
|
|
959
|
+
},
|
|
960
|
+
/**
|
|
961
|
+
* List of modifiers used to modify the offsets before they are applied to the popper.
|
|
962
|
+
* They provide most of the functionalities of Popper.js.
|
|
963
|
+
* @prop {modifiers}
|
|
964
|
+
*/
|
|
965
|
+
modifiers: qe
|
|
966
|
+
}, U = function() {
|
|
967
|
+
function e(t, r) {
|
|
968
|
+
var n = this, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
969
|
+
be(this, e), this.scheduleUpdate = function() {
|
|
970
|
+
return requestAnimationFrame(n.update);
|
|
971
|
+
}, this.update = ve(this.update.bind(this)), this.options = g({}, e.Defaults, o), this.state = {
|
|
972
|
+
isDestroyed: !1,
|
|
973
|
+
isCreated: !1,
|
|
974
|
+
scrollParents: []
|
|
975
|
+
}, this.reference = t && t.jquery ? t[0] : t, this.popper = r && r.jquery ? r[0] : r, this.options.modifiers = {}, Object.keys(g({}, e.Defaults.modifiers, o.modifiers)).forEach(function(f) {
|
|
976
|
+
n.options.modifiers[f] = g({}, e.Defaults.modifiers[f] || {}, o.modifiers ? o.modifiers[f] : {});
|
|
977
|
+
}), this.modifiers = Object.keys(this.options.modifiers).map(function(f) {
|
|
978
|
+
return g({
|
|
979
|
+
name: f
|
|
980
|
+
}, n.options.modifiers[f]);
|
|
981
|
+
}).sort(function(f, s) {
|
|
982
|
+
return f.order - s.order;
|
|
983
|
+
}), this.modifiers.forEach(function(f) {
|
|
984
|
+
f.enabled && K(f.onLoad) && f.onLoad(n.reference, n.popper, n.options, f, n.state);
|
|
985
|
+
}), this.update();
|
|
986
|
+
var i = this.options.eventsEnabled;
|
|
987
|
+
i && this.enableEventListeners(), this.state.eventsEnabled = i;
|
|
988
|
+
}
|
|
989
|
+
return we(e, [{
|
|
990
|
+
key: "update",
|
|
991
|
+
value: function() {
|
|
992
|
+
return xe.call(this);
|
|
993
|
+
}
|
|
994
|
+
}, {
|
|
995
|
+
key: "destroy",
|
|
996
|
+
value: function() {
|
|
997
|
+
return Pe.call(this);
|
|
998
|
+
}
|
|
999
|
+
}, {
|
|
1000
|
+
key: "enableEventListeners",
|
|
1001
|
+
value: function() {
|
|
1002
|
+
return Se.call(this);
|
|
1003
|
+
}
|
|
1004
|
+
}, {
|
|
1005
|
+
key: "disableEventListeners",
|
|
1006
|
+
value: function() {
|
|
1007
|
+
return Ce.call(this);
|
|
1008
|
+
}
|
|
1009
|
+
/**
|
|
1010
|
+
* Schedules an update. It will run on the next UI update available.
|
|
1011
|
+
* @method scheduleUpdate
|
|
1012
|
+
* @memberof Popper
|
|
1013
|
+
*/
|
|
1014
|
+
/**
|
|
1015
|
+
* Collection of utilities useful when writing custom modifiers.
|
|
1016
|
+
* Starting from version 1.7, this method is available only if you
|
|
1017
|
+
* include `popper-utils.js` before `popper.js`.
|
|
1018
|
+
*
|
|
1019
|
+
* **DEPRECATION**: This way to access PopperUtils is deprecated
|
|
1020
|
+
* and will be removed in v2! Use the PopperUtils module directly instead.
|
|
1021
|
+
* Due to the high instability of the methods contained in Utils, we can't
|
|
1022
|
+
* guarantee them to follow semver. Use them at your own risk!
|
|
1023
|
+
* @static
|
|
1024
|
+
* @private
|
|
1025
|
+
* @type {Object}
|
|
1026
|
+
* @deprecated since version 1.8
|
|
1027
|
+
* @member Utils
|
|
1028
|
+
* @memberof Popper
|
|
1029
|
+
*/
|
|
1030
|
+
}]), e;
|
|
1031
|
+
}();
|
|
1032
|
+
U.Utils = (typeof window < "u" ? window : global).PopperUtils;
|
|
1033
|
+
U.placements = ue;
|
|
1034
|
+
U.Defaults = _e;
|
|
1035
|
+
export {
|
|
1036
|
+
U as default
|
|
1037
|
+
};
|