@telesign/boreal-web-components 0.1.0-alpha.3 → 0.1.0-alpha.5
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/components-build/bds-avatar.d.ts +11 -0
- package/components-build/bds-avatar.js +1 -0
- package/components-build/bds-badge.d.ts +11 -0
- package/components-build/bds-badge.js +1 -0
- package/components-build/bds-banner.js +1 -1
- package/components-build/bds-button-group.d.ts +11 -0
- package/components-build/bds-button-group.js +1 -0
- package/components-build/bds-button.js +1 -1
- package/components-build/bds-checkbox-card.d.ts +11 -0
- package/components-build/bds-checkbox-card.js +1 -0
- package/components-build/bds-checkbox.js +1 -1
- package/components-build/bds-dialog.js +1 -1
- package/components-build/bds-divider.d.ts +11 -0
- package/components-build/bds-divider.js +1 -0
- package/components-build/bds-flag.js +1 -1
- package/components-build/bds-grid-item.d.ts +11 -0
- package/components-build/bds-grid-item.js +1 -0
- package/components-build/bds-grid.d.ts +11 -0
- package/components-build/bds-grid.js +1 -0
- package/components-build/bds-list-menu-item.d.ts +11 -0
- package/components-build/bds-list-menu-item.js +1 -0
- package/components-build/bds-list-menu.d.ts +11 -0
- package/components-build/bds-list-menu.js +1 -0
- package/components-build/bds-popover.js +1 -1
- package/components-build/bds-radio-button.d.ts +11 -0
- package/components-build/bds-radio-button.js +1 -0
- package/components-build/bds-radio-card.d.ts +11 -0
- package/components-build/bds-radio-card.js +1 -0
- package/components-build/bds-radio-group.d.ts +11 -0
- package/components-build/bds-radio-group.js +1 -0
- package/components-build/bds-radio.d.ts +11 -0
- package/components-build/bds-radio.js +1 -0
- package/components-build/bds-spinner.js +1 -1
- package/components-build/bds-status.d.ts +11 -0
- package/components-build/bds-status.js +1 -0
- package/components-build/bds-tag.d.ts +11 -0
- package/components-build/bds-tag.js +1 -0
- package/components-build/bds-text-field.js +1 -1
- package/components-build/bds-toggle.d.ts +11 -0
- package/components-build/bds-toggle.js +1 -0
- package/components-build/bds-tooltip.js +1 -1
- package/components-build/bds-typography.js +1 -1
- package/components-build/index.js +1 -1
- package/components-build/p-BSlaf0ff.js +1 -0
- package/components-build/p-Bfazyxqi.js +1 -0
- package/components-build/p-CPvuMm5C.js +1 -0
- package/components-build/p-Cbibqaz0.js +1 -0
- package/components-build/p-ClR-wgiT.js +1 -0
- package/components-build/p-DfaYciGa.js +1 -0
- package/components-build/p-Dh8DSJs_.js +1 -0
- package/components-build/p-DhSchGPI.js +1 -0
- package/components-build/p-N_tqtRV2.js +1 -0
- package/components-build/p-bAMuJ4Jx.js +1 -0
- package/components-build/p-c2z3tneT.js +1 -0
- package/components-build/p-dz9-Q2N8.js +1 -0
- package/components-build/{p-CaHOghy5.js → p-fUK0GCeC.js} +1 -1
- package/components-build/p-iq2UuV7c.js +1 -0
- package/components-build/p-kGnB15Lz.js +1 -0
- package/components-build/p-nxYzL9uu.js +1 -0
- package/custom-elements.json +4611 -891
- package/dist/boreal-web-components/boreal-web-components.esm.js +1 -1
- package/dist/boreal-web-components/boreal-web-components.js +1 -1
- package/dist/boreal-web-components/css/boreal.css +1066 -1074
- package/dist/boreal-web-components/css/global.css +403 -407
- package/dist/boreal-web-components/css/theme-connect.css +163 -164
- package/dist/boreal-web-components/css/theme-engage.css +163 -164
- package/dist/boreal-web-components/css/theme-protect.css +163 -164
- package/dist/boreal-web-components/css/theme-proximus.css +164 -165
- package/dist/boreal-web-components/p-024d90b0.system.entry.js +1 -0
- package/dist/boreal-web-components/p-06DrzEMB.system.js +1 -0
- package/dist/boreal-web-components/p-11e4c0ec.system.entry.js +1 -0
- package/dist/boreal-web-components/p-147d6652.system.entry.js +1 -0
- package/dist/boreal-web-components/p-148d510f.entry.js +1 -0
- package/dist/boreal-web-components/p-19f9352d.entry.js +1 -0
- package/dist/boreal-web-components/p-277f142e.system.entry.js +1 -0
- package/dist/boreal-web-components/{p-8c57e06a.entry.js → p-2adf2cd5.entry.js} +1 -1
- package/dist/boreal-web-components/p-2be4aa3a.system.entry.js +1 -0
- package/dist/boreal-web-components/p-340896b2.entry.js +1 -0
- package/dist/boreal-web-components/p-365e8e5c.system.entry.js +1 -0
- package/dist/boreal-web-components/p-3d4ce8eb.system.entry.js +1 -0
- package/dist/boreal-web-components/p-44a8fde5.entry.js +1 -0
- package/dist/boreal-web-components/{p-efe57901.system.entry.js → p-48ebbfbe.system.entry.js} +1 -1
- package/dist/boreal-web-components/{p-5fa53a80.system.entry.js → p-4dc01078.system.entry.js} +1 -1
- package/dist/boreal-web-components/p-5681b294.system.entry.js +1 -0
- package/dist/boreal-web-components/p-5ed75075.entry.js +1 -0
- package/dist/boreal-web-components/p-635f676b.system.entry.js +1 -0
- package/dist/boreal-web-components/p-6629be14.entry.js +1 -0
- package/dist/boreal-web-components/p-68b83680.system.entry.js +1 -0
- package/dist/boreal-web-components/p-6a60d134.system.entry.js +1 -0
- package/dist/boreal-web-components/p-71ed1e1d.entry.js +1 -0
- package/dist/boreal-web-components/p-732e98f1.system.entry.js +1 -0
- package/dist/boreal-web-components/p-77658a5b.system.entry.js +1 -0
- package/dist/boreal-web-components/p-7aff4c78.entry.js +1 -0
- package/dist/boreal-web-components/p-7bb88855.entry.js +1 -0
- package/dist/boreal-web-components/p-7d3a8f61.entry.js +1 -0
- package/dist/boreal-web-components/p-7e672cce.entry.js +1 -0
- package/dist/boreal-web-components/p-7ebc67c9.entry.js +1 -0
- package/dist/boreal-web-components/p-81401e2a.system.entry.js +1 -0
- package/dist/boreal-web-components/p-8289e506.entry.js +1 -0
- package/dist/boreal-web-components/p-82d15372.entry.js +1 -0
- package/dist/boreal-web-components/p-851c06f2.entry.js +1 -0
- package/dist/boreal-web-components/p-8a3716ec.entry.js +1 -0
- package/dist/boreal-web-components/p-8f4f8af0.system.entry.js +1 -0
- package/dist/boreal-web-components/p-93066db4.system.entry.js +1 -0
- package/dist/boreal-web-components/p-Bfazyxqi.js +1 -0
- package/dist/boreal-web-components/{p-D4EFsvs1.js → p-BqJlOB6b.js} +2 -2
- package/dist/boreal-web-components/p-BsZkk4oK.system.js +1 -0
- package/dist/boreal-web-components/p-C-g3hhl_.system.js +1 -0
- package/dist/boreal-web-components/p-C0P3gzq5.system.js +1 -0
- package/dist/boreal-web-components/p-C4HM8wQe.js +1 -0
- package/dist/boreal-web-components/p-CPvuMm5C.js +1 -0
- package/dist/boreal-web-components/p-CRMH6mfq.system.js +1 -0
- package/dist/boreal-web-components/p-CU_dRLdk.system.js +1 -0
- package/dist/boreal-web-components/p-CW4-dkCF.system.js +1 -0
- package/dist/boreal-web-components/p-CXz1RLGi.system.js +1 -0
- package/dist/boreal-web-components/p-DCKg5Cg_.system.js +2 -0
- package/dist/boreal-web-components/{p-BuxZeJbu.system.js → p-DSU8tkVw.system.js} +1 -1
- package/dist/boreal-web-components/p-DYlZcFrB.system.js +1 -0
- package/dist/boreal-web-components/p-DfaYciGa.js +1 -0
- package/dist/boreal-web-components/p-DhSchGPI.js +1 -0
- package/dist/boreal-web-components/p-DlVzZK7o.js +1 -0
- package/dist/boreal-web-components/p-DlYG-OVB.js +1 -0
- package/dist/boreal-web-components/p-DnIhjwCH.system.js +1 -0
- package/dist/boreal-web-components/p-DpnBDSUm.system.js +1 -0
- package/dist/boreal-web-components/p-Dwo1hcd9.js +1 -0
- package/dist/boreal-web-components/p-RhSdMyWk.system.js +1 -0
- package/dist/boreal-web-components/{p-CaHOghy5.js → p-U9yfbs7i.js} +1 -1
- package/dist/boreal-web-components/p-a73659ac.system.entry.js +1 -0
- package/dist/boreal-web-components/p-b2ad9535.system.entry.js +1 -0
- package/dist/boreal-web-components/p-d4c30d2b.entry.js +1 -0
- package/dist/boreal-web-components/p-db0c10b9.system.entry.js +1 -0
- package/dist/boreal-web-components/p-dc7d429c.entry.js +1 -0
- package/dist/boreal-web-components/p-dca16a3d.entry.js +1 -0
- package/dist/boreal-web-components/p-de846c43.system.entry.js +1 -0
- package/dist/boreal-web-components/p-df087e23.system.entry.js +1 -0
- package/dist/boreal-web-components/p-dfb4854e.entry.js +1 -0
- package/dist/boreal-web-components/p-dz9-Q2N8.js +1 -0
- package/dist/boreal-web-components/p-e09b4d14.system.entry.js +1 -0
- package/dist/boreal-web-components/p-e0a41cab.system.entry.js +1 -0
- package/dist/boreal-web-components/p-e55f2a8b.entry.js +1 -0
- package/dist/boreal-web-components/p-e7af1e1a.entry.js +1 -0
- package/dist/boreal-web-components/p-efe159aa.entry.js +1 -0
- package/dist/boreal-web-components/p-f65e9d0c.system.entry.js +1 -0
- package/dist/boreal-web-components/p-f792aa74.entry.js +1 -0
- package/dist/boreal-web-components/p-fb9a0e94.entry.js +1 -0
- package/dist/boreal-web-components/p-iq2UuV7c.js +1 -0
- package/dist/boreal-web-components/p-kGnB15Lz.js +1 -0
- package/dist/boreal-web-components/p-vzZJGcYF.system.js +1 -0
- package/dist/boreal-web-components/p-wREMI3WA.js +1 -0
- package/dist/boreal-web-components/scss/maps/_primitives.scss +404 -408
- package/dist/boreal-web-components/scss/maps/_theme-connect.scss +164 -165
- package/dist/boreal-web-components/scss/maps/_theme-engage.scss +164 -165
- package/dist/boreal-web-components/scss/maps/_theme-protect.scss +164 -165
- package/dist/boreal-web-components/scss/maps/_theme-proximus.scss +165 -166
- package/dist/boreal-web-components/scss/variables/_primitives.scss +404 -408
- package/dist/boreal-web-components/scss/variables/_theme-connect.scss +164 -165
- package/dist/boreal-web-components/scss/variables/_theme-engage.scss +164 -165
- package/dist/boreal-web-components/scss/variables/_theme-protect.scss +164 -165
- package/dist/boreal-web-components/scss/variables/_theme-proximus.scss +165 -166
- package/dist/cjs/BaseAttributes-DBBhKt7O.js +14 -0
- package/dist/cjs/Keys-rKl2za5q.js +18 -0
- package/dist/cjs/Logger-DnziItRH.js +51 -0
- package/dist/cjs/{attributes-wIHueigW.js → attributes-CgRFplrN.js} +3 -0
- package/dist/cjs/bds-avatar.cjs.entry.js +89 -0
- package/dist/cjs/bds-badge.cjs.entry.js +50 -0
- package/dist/cjs/bds-banner.cjs.entry.js +13 -6
- package/dist/cjs/bds-button-group.cjs.entry.js +95 -0
- package/dist/cjs/bds-button.cjs.entry.js +11 -17
- package/dist/cjs/bds-checkbox-card.cjs.entry.js +121 -0
- package/dist/cjs/bds-checkbox.cjs.entry.js +13 -6
- package/dist/cjs/bds-dialog.cjs.entry.js +8 -7
- package/dist/cjs/bds-divider.cjs.entry.js +46 -0
- package/dist/cjs/bds-flag.cjs.entry.js +3 -3
- package/dist/cjs/bds-grid-item.cjs.entry.js +93 -0
- package/dist/cjs/bds-grid.cjs.entry.js +37 -0
- package/dist/cjs/bds-list-menu-item.cjs.entry.js +493 -0
- package/dist/cjs/bds-list-menu.cjs.entry.js +199 -0
- package/dist/cjs/bds-popover.cjs.entry.js +19 -9
- package/dist/cjs/bds-radio-button.cjs.entry.js +60 -0
- package/dist/cjs/bds-radio-card.cjs.entry.js +76 -0
- package/dist/cjs/bds-radio-group.cjs.entry.js +285 -0
- package/dist/cjs/bds-radio.cjs.entry.js +60 -0
- package/dist/cjs/bds-spinner.cjs.entry.js +4 -4
- package/dist/cjs/bds-status.cjs.entry.js +59 -0
- package/dist/cjs/bds-tag.cjs.entry.js +140 -0
- package/dist/cjs/bds-text-field.cjs.entry.js +8 -17
- package/dist/cjs/bds-toggle.cjs.entry.js +187 -0
- package/dist/cjs/bds-tooltip_2.cjs.entry.js +321 -0
- package/dist/cjs/boreal-web-components.cjs.js +2 -2
- package/dist/cjs/coreColors-CQGojc0l.js +10 -0
- package/dist/cjs/{enum-DLblRCkQ.js → enum-DeTWfR0D.js} +3 -3
- package/dist/cjs/form-associated.mixin-BCR6bj29.js +33 -0
- package/dist/cjs/{anchored.mixin-CnIwkaUi.js → getOffset-k4ezB-eT.js} +45 -76
- package/dist/cjs/{index-BcSjvXJk.js → index-CwYIVC9N.js} +64 -0
- package/dist/cjs/{internals-X77qKxsK.js → internals-D8x7GMfR.js} +0 -31
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/menu-BxKaEajh.js +8 -0
- package/dist/cjs/orientation-DQAIleEJ.js +8 -0
- package/dist/cjs/{states-iIYiazaM.js → states-BweP5Vpu.js} +8 -0
- package/dist/cjs/validateProps-CJe9X5x8.js +42 -0
- package/dist/collection/collection-manifest.json +16 -0
- package/dist/collection/components/actions/bds-button/bds-button.css +19 -19
- package/dist/collection/components/actions/bds-button/bds-button.js +8 -8
- package/dist/collection/components/actions/bds-button/types/enum.js +3 -3
- package/dist/collection/components/actions/bds-button-group/bds-button-group.css +77 -0
- package/dist/collection/components/actions/bds-button-group/bds-button-group.js +245 -0
- package/dist/collection/components/actions/bds-button-group/types/IButtonGroup.js +1 -0
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu/bds-list-menu.css +51 -0
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu/bds-list-menu.js +400 -0
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu/types/IListMenu.js +1 -0
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu/types/enum.js +4 -0
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu/types/types.js +1 -0
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu-item/bds-list-menu-item.css +87 -0
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu-item/bds-list-menu-item.js +482 -0
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu-item/types/IListMenuItem.js +1 -0
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu-item/types/enum.js +4 -0
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu-item/types/types.js +1 -0
- package/dist/collection/components/actions/bds-toggle/bds-toggle.css +120 -0
- package/dist/collection/components/actions/bds-toggle/bds-toggle.js +544 -0
- package/dist/collection/components/actions/bds-toggle/types/IEventChange.js +1 -0
- package/dist/collection/components/actions/bds-toggle/types/IToggle.js +1 -0
- package/dist/collection/components/actions/bds-toggle/types/enum.js +4 -0
- package/dist/collection/components/actions/bds-toggle/types/index.js +4 -0
- package/dist/collection/components/actions/bds-toggle/types/types.js +1 -0
- package/dist/collection/components/feedback/bds-badge/bds-badge.css +76 -0
- package/dist/collection/components/feedback/bds-badge/bds-badge.js +120 -0
- package/dist/collection/components/feedback/bds-badge/types/IBadge.js +1 -0
- package/dist/collection/components/feedback/bds-badge/types/enum.js +5 -0
- package/dist/collection/components/feedback/bds-banner/bds-banner.css +1 -2
- package/dist/collection/components/feedback/bds-banner/bds-banner.js +30 -6
- package/dist/collection/components/feedback/bds-spinner/bds-spinner.css +7 -8
- package/dist/collection/components/feedback/bds-spinner/bds-spinner.js +1 -1
- package/dist/collection/components/feedback/bds-status/bds-status.css +101 -0
- package/dist/collection/components/feedback/bds-status/bds-status.js +122 -0
- package/dist/collection/components/feedback/bds-status/types/IStatus.js +1 -0
- package/dist/collection/components/feedback/bds-status/types/enum.js +5 -0
- package/dist/collection/components/feedback/bds-status/types/types.js +1 -0
- package/dist/collection/components/feedback/bds-tag/bds-tag.css +202 -0
- package/dist/collection/components/feedback/bds-tag/bds-tag.js +375 -0
- package/dist/collection/components/feedback/bds-tag/types/ITag.js +1 -0
- package/dist/collection/components/feedback/bds-tag/types/enum.js +10 -0
- package/dist/collection/components/feedback/bds-tag/types/index.js +3 -0
- package/dist/collection/components/feedback/bds-tag/types/types.js +1 -0
- package/dist/collection/components/forms/bds-checkbox/bds-checkbox.css +9 -8
- package/dist/collection/components/forms/bds-checkbox/bds-checkbox.js +7 -1
- package/dist/collection/components/forms/bds-checkbox-card/bds-checkbox-card.css +127 -0
- package/dist/collection/components/forms/bds-checkbox-card/bds-checkbox-card.js +397 -0
- package/dist/collection/components/forms/bds-checkbox-card/types/ICheckboxCard.js +1 -0
- package/dist/collection/components/forms/bds-flag/bds-flag.js +1 -1
- package/dist/collection/components/forms/bds-radio/bds-radio.css +121 -0
- package/dist/collection/components/forms/bds-radio/bds-radio.js +238 -0
- package/dist/collection/components/forms/bds-radio/types/IRadio.js +1 -0
- package/dist/collection/components/forms/bds-radio-button/bds-radio-button.css +109 -0
- package/dist/collection/components/forms/bds-radio-button/bds-radio-button.js +238 -0
- package/dist/collection/components/forms/bds-radio-button/types/IRadioButton.js +1 -0
- package/dist/collection/components/forms/bds-radio-card/bds-radio-card.css +156 -0
- package/dist/collection/components/forms/bds-radio-card/bds-radio-card.js +307 -0
- package/dist/collection/components/forms/bds-radio-card/types/IRadioCard.js +1 -0
- package/dist/collection/components/forms/bds-radio-group/bds-radio-group.css +55 -0
- package/dist/collection/components/forms/bds-radio-group/bds-radio-group.js +620 -0
- package/dist/collection/components/forms/bds-radio-group/types/IRadioGroup.js +1 -0
- package/dist/collection/components/forms/bds-radio-group/types/enum.js +5 -0
- package/dist/collection/components/forms/bds-radio-group/types/types.js +1 -0
- package/dist/collection/components/forms/bds-text-field/bds-text-field.js +1 -1
- package/dist/collection/components/helpers/bds-divider/bds-divider.css +44 -0
- package/dist/collection/components/helpers/bds-divider/bds-divider.js +88 -0
- package/dist/collection/components/helpers/bds-divider/types/IDivider.js +1 -0
- package/dist/collection/components/helpers/bds-divider/types/enum.js +4 -0
- package/dist/collection/components/helpers/bds-divider/types/types.js +1 -0
- package/dist/collection/components/images-icons/bds-avatar/bds-avatar.css +52 -0
- package/dist/collection/components/images-icons/bds-avatar/bds-avatar.js +219 -0
- package/dist/collection/components/images-icons/bds-avatar/types/IAvatar.js +1 -0
- package/dist/collection/components/images-icons/bds-avatar/types/enum.js +5 -0
- package/dist/collection/components/images-icons/bds-avatar/types/index.js +3 -0
- package/dist/collection/components/images-icons/bds-avatar/types/types.js +1 -0
- package/dist/collection/components/layouts/bds-grid/grid/bds-grid.css +57 -0
- package/dist/collection/components/layouts/bds-grid/grid/bds-grid.js +100 -0
- package/dist/collection/components/layouts/bds-grid/grid/types/IGrid.js +1 -0
- package/dist/collection/components/layouts/bds-grid/grid/types/enum.js +4 -0
- package/dist/collection/components/layouts/bds-grid/grid/types/index.js +3 -0
- package/dist/collection/components/layouts/bds-grid/grid/types/types.js +1 -0
- package/dist/collection/components/layouts/bds-grid/grid-item/bds-grid-item.css +70 -0
- package/dist/collection/components/layouts/bds-grid/grid-item/bds-grid-item.js +306 -0
- package/dist/collection/components/layouts/bds-grid/grid-item/types/IGridItem.js +1 -0
- package/dist/collection/components/layouts/bds-grid/grid-item/types/enum.js +10 -0
- package/dist/collection/components/layouts/bds-grid/grid-item/types/index.js +3 -0
- package/dist/collection/components/layouts/bds-grid/grid-item/types/types.js +1 -0
- package/dist/collection/components/overlays/bds-dialog/bds-dialog.js +4 -3
- package/dist/collection/components/overlays/bds-popover/bds-popover.css +16 -2
- package/dist/collection/components/overlays/bds-popover/bds-popover.js +12 -4
- package/dist/collection/components/overlays/bds-popover/constants/Offset.js +1 -0
- package/dist/collection/components/overlays/bds-tooltip/bds-tooltip.css +2 -13
- package/dist/collection/components/overlays/bds-tooltip/bds-tooltip.js +6 -4
- package/dist/collection/components/overlays/bds-tooltip/constants/Offset.js +1 -0
- package/dist/collection/components/titles-text/bds-typography/bds-typography.css +9 -0
- package/dist/collection/components/titles-text/bds-typography/bds-typography.js +20 -19
- package/dist/collection/components/titles-text/bds-typography/utils/bds-typography-utils.js +2 -2
- package/dist/collection/css/boreal.css +1066 -1074
- package/dist/collection/css/global.css +403 -407
- package/dist/collection/css/theme-connect.css +163 -164
- package/dist/collection/css/theme-engage.css +163 -164
- package/dist/collection/css/theme-protect.css +163 -164
- package/dist/collection/css/theme-proximus.css +164 -165
- package/dist/collection/mixins/anchored.mixin.js +16 -3
- package/dist/collection/mixins/index.js +2 -0
- package/dist/collection/mixins/links.mixin.js +152 -0
- package/dist/collection/mixins/menu-behavior.mixin.js +119 -0
- package/dist/collection/scss/maps/_primitives.scss +404 -408
- package/dist/collection/scss/maps/_theme-connect.scss +164 -165
- package/dist/collection/scss/maps/_theme-engage.scss +164 -165
- package/dist/collection/scss/maps/_theme-protect.scss +164 -165
- package/dist/collection/scss/maps/_theme-proximus.scss +165 -166
- package/dist/collection/scss/variables/_primitives.scss +404 -408
- package/dist/collection/scss/variables/_theme-connect.scss +164 -165
- package/dist/collection/scss/variables/_theme-engage.scss +164 -165
- package/dist/collection/scss/variables/_theme-protect.scss +164 -165
- package/dist/collection/scss/variables/_theme-proximus.scss +165 -166
- package/dist/collection/services/floating/positioning.service.js +1 -1
- package/dist/collection/types/IFormProps.js +1 -0
- package/dist/collection/types/index.js +5 -0
- package/dist/collection/types/links.js +1 -0
- package/dist/collection/types/menu.js +8 -0
- package/dist/collection/types/orientation.js +4 -0
- package/dist/collection/types/position.js +6 -2
- package/dist/collection/utils/constants/common/Keys.js +10 -12
- package/dist/collection/utils/helpers/overlays/getOffset.js +13 -0
- package/dist/collection/utils/helpers/validateProps.js +21 -0
- package/dist/collection/utils/index.js +2 -1
- package/dist/collection/utils/menu/index.js +1 -0
- package/dist/collection/utils/menu/menu-item.utils.js +82 -0
- package/dist/collection/utils/{__test__ → testing}/helpers.js +10 -0
- package/dist/collection/utils/{__test__ → testing}/index.js +0 -2
- package/dist/collection/utils/testing/mocks/console.js +30 -0
- package/dist/collection/utils/testing/mocks/index.js +4 -0
- package/dist/css/boreal.css +1066 -1074
- package/dist/css/global.css +403 -407
- package/dist/css/theme-connect.css +163 -164
- package/dist/css/theme-engage.css +163 -164
- package/dist/css/theme-protect.css +163 -164
- package/dist/css/theme-proximus.css +164 -165
- package/dist/esm/BaseAttributes-DhSchGPI.js +12 -0
- package/dist/esm/Keys-DlYG-OVB.js +16 -0
- package/dist/esm/Logger-iq2UuV7c.js +49 -0
- package/dist/esm/{attributes-CaHOghy5.js → attributes-U9yfbs7i.js} +3 -0
- package/dist/esm/bds-avatar.entry.js +87 -0
- package/dist/esm/bds-badge.entry.js +48 -0
- package/dist/esm/bds-banner.entry.js +13 -6
- package/dist/esm/bds-button-group.entry.js +93 -0
- package/dist/esm/bds-button.entry.js +9 -15
- package/dist/esm/bds-checkbox-card.entry.js +119 -0
- package/dist/esm/bds-checkbox.entry.js +12 -5
- package/dist/esm/bds-dialog.entry.js +8 -7
- package/dist/esm/bds-divider.entry.js +44 -0
- package/dist/esm/bds-flag.entry.js +3 -3
- package/dist/esm/bds-grid-item.entry.js +91 -0
- package/dist/esm/bds-grid.entry.js +35 -0
- package/dist/esm/bds-list-menu-item.entry.js +491 -0
- package/dist/esm/bds-list-menu.entry.js +197 -0
- package/dist/esm/bds-popover.entry.js +18 -8
- package/dist/esm/bds-radio-button.entry.js +58 -0
- package/dist/esm/bds-radio-card.entry.js +74 -0
- package/dist/esm/bds-radio-group.entry.js +283 -0
- package/dist/esm/bds-radio.entry.js +58 -0
- package/dist/esm/bds-spinner.entry.js +4 -4
- package/dist/esm/bds-status.entry.js +57 -0
- package/dist/esm/bds-tag.entry.js +138 -0
- package/dist/esm/bds-text-field.entry.js +6 -15
- package/dist/esm/bds-toggle.entry.js +185 -0
- package/dist/esm/bds-tooltip_2.entry.js +318 -0
- package/dist/esm/boreal-web-components.js +3 -3
- package/dist/esm/coreColors-Dwo1hcd9.js +8 -0
- package/dist/esm/{enum-C8mRvnTA.js → enum-DlVzZK7o.js} +4 -4
- package/dist/esm/form-associated.mixin-C4HM8wQe.js +31 -0
- package/dist/esm/{anchored.mixin-Y3MkGc2X.js → getOffset-BYS3c13B.js} +43 -75
- package/dist/esm/{index-D4EFsvs1.js → index-BqJlOB6b.js} +64 -0
- package/dist/esm/{internals-Dy7QKP9e.js → internals-DfaYciGa.js} +1 -31
- package/dist/esm/loader.js +3 -3
- package/dist/esm/menu-dz9-Q2N8.js +6 -0
- package/dist/esm/orientation-CPvuMm5C.js +6 -0
- package/dist/esm/{states-BhTPNsBb.js → states-Bfazyxqi.js} +8 -1
- package/dist/esm/validateProps-kGnB15Lz.js +39 -0
- package/dist/esm-es5/BaseAttributes-DhSchGPI.js +1 -0
- package/dist/esm-es5/Keys-DlYG-OVB.js +1 -0
- package/dist/esm-es5/Logger-iq2UuV7c.js +1 -0
- package/dist/esm-es5/{attributes-CaHOghy5.js → attributes-U9yfbs7i.js} +1 -1
- package/dist/esm-es5/bds-avatar.entry.js +1 -0
- package/dist/esm-es5/bds-badge.entry.js +1 -0
- package/dist/esm-es5/bds-banner.entry.js +1 -1
- package/dist/esm-es5/bds-button-group.entry.js +1 -0
- package/dist/esm-es5/bds-button.entry.js +1 -1
- package/dist/esm-es5/bds-checkbox-card.entry.js +1 -0
- package/dist/esm-es5/bds-checkbox.entry.js +1 -1
- package/dist/esm-es5/bds-dialog.entry.js +1 -1
- package/dist/esm-es5/bds-divider.entry.js +1 -0
- package/dist/esm-es5/bds-flag.entry.js +1 -1
- package/dist/esm-es5/bds-grid-item.entry.js +1 -0
- package/dist/esm-es5/bds-grid.entry.js +1 -0
- package/dist/esm-es5/bds-list-menu-item.entry.js +1 -0
- package/dist/esm-es5/bds-list-menu.entry.js +1 -0
- package/dist/esm-es5/bds-popover.entry.js +1 -1
- package/dist/esm-es5/bds-radio-button.entry.js +1 -0
- package/dist/esm-es5/bds-radio-card.entry.js +1 -0
- package/dist/esm-es5/bds-radio-group.entry.js +1 -0
- package/dist/esm-es5/bds-radio.entry.js +1 -0
- package/dist/esm-es5/bds-spinner.entry.js +1 -1
- package/dist/esm-es5/bds-status.entry.js +1 -0
- package/dist/esm-es5/bds-tag.entry.js +1 -0
- package/dist/esm-es5/bds-text-field.entry.js +1 -1
- package/dist/esm-es5/bds-toggle.entry.js +1 -0
- package/dist/esm-es5/bds-tooltip_2.entry.js +1 -0
- package/dist/esm-es5/boreal-web-components.js +1 -1
- package/dist/esm-es5/coreColors-Dwo1hcd9.js +1 -0
- package/dist/esm-es5/enum-DlVzZK7o.js +1 -0
- package/dist/esm-es5/form-associated.mixin-C4HM8wQe.js +1 -0
- package/dist/esm-es5/getOffset-BYS3c13B.js +1 -0
- package/dist/esm-es5/index-BqJlOB6b.js +2 -0
- package/dist/esm-es5/internals-DfaYciGa.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/menu-dz9-Q2N8.js +1 -0
- package/dist/esm-es5/orientation-CPvuMm5C.js +1 -0
- package/dist/esm-es5/states-Bfazyxqi.js +1 -0
- package/dist/esm-es5/validateProps-kGnB15Lz.js +1 -0
- package/dist/scss/maps/_primitives.scss +404 -408
- package/dist/scss/maps/_theme-connect.scss +164 -165
- package/dist/scss/maps/_theme-engage.scss +164 -165
- package/dist/scss/maps/_theme-protect.scss +164 -165
- package/dist/scss/maps/_theme-proximus.scss +165 -166
- package/dist/scss/variables/_primitives.scss +404 -408
- package/dist/scss/variables/_theme-connect.scss +164 -165
- package/dist/scss/variables/_theme-engage.scss +164 -165
- package/dist/scss/variables/_theme-protect.scss +164 -165
- package/dist/scss/variables/_theme-proximus.scss +165 -166
- package/dist/types/components/actions/bds-button/bds-button.d.ts +4 -4
- package/dist/types/components/actions/bds-button/types/enum.d.ts +3 -3
- package/dist/types/components/actions/bds-button-group/bds-button-group.d.ts +36 -0
- package/dist/types/components/actions/bds-button-group/types/IButtonGroup.d.ts +11 -0
- package/dist/types/components/actions/bds-list-menu/bds-list-menu/bds-list-menu.d.ts +74 -0
- package/dist/types/components/actions/bds-list-menu/bds-list-menu/types/IListMenu.d.ts +14 -0
- package/dist/types/components/actions/bds-list-menu/bds-list-menu/types/enum.d.ts +5 -0
- package/dist/types/components/actions/bds-list-menu/bds-list-menu/types/types.d.ts +3 -0
- package/dist/types/components/actions/bds-list-menu/bds-list-menu-item/bds-list-menu-item.d.ts +122 -0
- package/dist/types/components/actions/bds-list-menu/bds-list-menu-item/types/IListMenuItem.d.ts +13 -0
- package/dist/types/components/actions/bds-list-menu/bds-list-menu-item/types/enum.d.ts +5 -0
- package/dist/types/components/actions/bds-list-menu/bds-list-menu-item/types/types.d.ts +3 -0
- package/dist/types/components/actions/bds-toggle/bds-toggle.d.ts +91 -0
- package/dist/types/components/actions/bds-toggle/types/IEventChange.d.ts +5 -0
- package/dist/types/components/actions/bds-toggle/types/IToggle.d.ts +12 -0
- package/dist/types/components/actions/bds-toggle/types/enum.d.ts +5 -0
- package/dist/types/components/actions/bds-toggle/types/index.d.ts +5 -0
- package/dist/types/components/actions/bds-toggle/types/types.d.ts +3 -0
- package/dist/types/components/feedback/bds-badge/bds-badge.d.ts +31 -0
- package/dist/types/components/feedback/bds-badge/types/IBadge.d.ts +6 -0
- package/dist/types/components/feedback/bds-badge/types/enum.d.ts +9 -0
- package/dist/types/components/feedback/bds-banner/bds-banner.d.ts +8 -4
- package/dist/types/components/feedback/bds-status/bds-status.d.ts +26 -0
- package/dist/types/components/feedback/bds-status/types/IStatus.d.ts +7 -0
- package/dist/types/components/feedback/bds-status/types/enum.d.ts +6 -0
- package/dist/types/components/feedback/bds-status/types/types.d.ts +3 -0
- package/dist/types/components/feedback/bds-tag/bds-tag.d.ts +71 -0
- package/dist/types/components/feedback/bds-tag/types/ITag.d.ts +13 -0
- package/dist/types/components/feedback/bds-tag/types/enum.d.ts +11 -0
- package/dist/types/components/feedback/bds-tag/types/index.d.ts +4 -0
- package/dist/types/components/feedback/bds-tag/types/types.d.ts +8 -0
- package/dist/types/components/forms/bds-checkbox/bds-checkbox.d.ts +2 -0
- package/dist/types/components/forms/bds-checkbox-card/bds-checkbox-card.d.ts +70 -0
- package/dist/types/components/forms/bds-checkbox-card/types/ICheckboxCard.d.ts +8 -0
- package/dist/types/components/forms/bds-flag/bds-flag.d.ts +3 -4
- package/dist/types/components/forms/bds-radio/bds-radio.d.ts +36 -0
- package/dist/types/components/forms/bds-radio/types/IRadio.d.ts +13 -0
- package/dist/types/components/forms/bds-radio-button/bds-radio-button.d.ts +36 -0
- package/dist/types/components/forms/bds-radio-button/types/IRadioButton.d.ts +13 -0
- package/dist/types/components/forms/bds-radio-card/bds-radio-card.d.ts +57 -0
- package/dist/types/components/forms/bds-radio-card/types/IRadioCard.d.ts +14 -0
- package/dist/types/components/forms/bds-radio-group/bds-radio-group.d.ts +82 -0
- package/dist/types/components/forms/bds-radio-group/types/IRadioGroup.d.ts +19 -0
- package/dist/types/components/forms/bds-radio-group/types/enum.d.ts +6 -0
- package/dist/types/components/forms/bds-radio-group/types/types.d.ts +3 -0
- package/dist/types/components/helpers/bds-divider/bds-divider.d.ts +26 -0
- package/dist/types/components/helpers/bds-divider/types/IDivider.d.ts +5 -0
- package/dist/types/components/helpers/bds-divider/types/enum.d.ts +5 -0
- package/dist/types/components/helpers/bds-divider/types/types.d.ts +3 -0
- package/dist/types/components/images-icons/bds-avatar/bds-avatar.d.ts +51 -0
- package/dist/types/components/images-icons/bds-avatar/types/IAvatar.d.ts +9 -0
- package/dist/types/components/images-icons/bds-avatar/types/enum.d.ts +6 -0
- package/dist/types/components/images-icons/bds-avatar/types/index.d.ts +4 -0
- package/dist/types/components/images-icons/bds-avatar/types/types.d.ts +3 -0
- package/dist/types/components/layouts/bds-grid/grid/bds-grid.d.ts +19 -0
- package/dist/types/components/layouts/bds-grid/grid/types/IGrid.d.ts +6 -0
- package/dist/types/components/layouts/bds-grid/grid/types/enum.d.ts +5 -0
- package/dist/types/components/layouts/bds-grid/grid/types/index.d.ts +4 -0
- package/dist/types/components/layouts/bds-grid/grid/types/types.d.ts +3 -0
- package/dist/types/components/layouts/bds-grid/grid-item/bds-grid-item.d.ts +31 -0
- package/dist/types/components/layouts/bds-grid/grid-item/types/IGridItem.d.ts +12 -0
- package/dist/types/components/layouts/bds-grid/grid-item/types/enum.d.ts +11 -0
- package/dist/types/components/layouts/bds-grid/grid-item/types/index.d.ts +4 -0
- package/dist/types/components/layouts/bds-grid/grid-item/types/types.d.ts +3 -0
- package/dist/types/components/overlays/bds-dialog/bds-dialog.d.ts +2 -2
- package/dist/types/components/overlays/bds-popover/bds-popover.d.ts +1 -0
- package/dist/types/components/overlays/bds-popover/constants/Offset.d.ts +2 -0
- package/dist/types/components/overlays/bds-tooltip/bds-tooltip.d.ts +1 -0
- package/dist/types/components/overlays/bds-tooltip/constants/Offset.d.ts +2 -0
- package/dist/types/components/titles-text/bds-typography/bds-typography.d.ts +9 -9
- package/dist/types/components/titles-text/bds-typography/types/ITypography.d.ts +2 -2
- package/dist/types/components/titles-text/bds-typography/utils/bds-typography-utils.d.ts +1 -1
- package/dist/types/components.d.ts +2542 -450
- package/dist/types/mixins/anchored.mixin.d.ts +5 -0
- package/dist/types/mixins/index.d.ts +2 -0
- package/dist/types/mixins/links.mixin.d.ts +85 -0
- package/dist/types/mixins/menu-behavior.mixin.d.ts +95 -0
- package/dist/types/types/IFormProps.d.ts +25 -0
- package/dist/types/types/index.d.ts +5 -0
- package/dist/types/types/links.d.ts +14 -0
- package/dist/types/types/menu.d.ts +16 -0
- package/dist/types/types/orientation.d.ts +6 -0
- package/dist/types/types/position.d.ts +6 -2
- package/dist/types/utils/constants/common/Keys.d.ts +12 -14
- package/dist/types/utils/helpers/overlays/getOffset.d.ts +9 -0
- package/dist/types/utils/helpers/validateProps.d.ts +11 -0
- package/dist/types/utils/index.d.ts +2 -1
- package/dist/types/utils/menu/index.d.ts +2 -0
- package/dist/types/utils/menu/menu-item.utils.d.ts +50 -0
- package/dist/types/utils/{__test__ → testing}/helpers.d.ts +8 -0
- package/dist/types/utils/{__test__ → testing}/index.d.ts +0 -2
- package/dist/types/utils/{__test__/backdrop-mock.d.ts → testing/mocks/backdrop.d.ts} +1 -1
- package/dist/types/utils/testing/mocks/console.d.ts +17 -0
- package/dist/types/utils/{__test__/mocks/ElementInternals.d.ts → testing/mocks/elementInternals.d.ts} +1 -1
- package/dist/types/utils/testing/mocks/index.d.ts +5 -0
- package/dist/types/utils/{__test__/popover-mock.d.ts → testing/mocks/popover.d.ts} +1 -1
- package/package.json +1 -1
- package/components-build/p-B6R9EVXK.js +0 -1
- package/components-build/p-BSpJ_e9f.js +0 -1
- package/components-build/p-BYEAJCas.js +0 -1
- package/components-build/p-BhTPNsBb.js +0 -1
- package/components-build/p-CYojP4vI.js +0 -1
- package/components-build/p-D5omSME4.js +0 -1
- package/components-build/p-vfAIdwy0.js +0 -1
- package/dist/boreal-web-components/p-07a933df.entry.js +0 -1
- package/dist/boreal-web-components/p-1bb2b33f.entry.js +0 -1
- package/dist/boreal-web-components/p-1fccea3f.system.entry.js +0 -1
- package/dist/boreal-web-components/p-20af732b.system.entry.js +0 -1
- package/dist/boreal-web-components/p-22378341.system.entry.js +0 -1
- package/dist/boreal-web-components/p-39c26e58.entry.js +0 -1
- package/dist/boreal-web-components/p-6210d025.entry.js +0 -1
- package/dist/boreal-web-components/p-6de2b44c.system.entry.js +0 -1
- package/dist/boreal-web-components/p-91b9e94e.entry.js +0 -1
- package/dist/boreal-web-components/p-9e06910d.system.entry.js +0 -1
- package/dist/boreal-web-components/p-BIJhHSAt.system.js +0 -1
- package/dist/boreal-web-components/p-BKRyWlfr.js +0 -1
- package/dist/boreal-web-components/p-BhTPNsBb.js +0 -1
- package/dist/boreal-web-components/p-BkDQsB4R.system.js +0 -1
- package/dist/boreal-web-components/p-C8mRvnTA.js +0 -1
- package/dist/boreal-web-components/p-CdKFZYxk.system.js +0 -1
- package/dist/boreal-web-components/p-DoDeP7KR.system.js +0 -1
- package/dist/boreal-web-components/p-Dtp4O0H2.system.js +0 -1
- package/dist/boreal-web-components/p-Dy7QKP9e.js +0 -1
- package/dist/boreal-web-components/p-GjKJvOVG.system.js +0 -2
- package/dist/boreal-web-components/p-ac64d4a5.system.entry.js +0 -1
- package/dist/boreal-web-components/p-b61fe06c.entry.js +0 -1
- package/dist/boreal-web-components/p-cdc87437.entry.js +0 -1
- package/dist/boreal-web-components/p-d8ec8557.system.entry.js +0 -1
- package/dist/boreal-web-components/p-ea889727.entry.js +0 -1
- package/dist/boreal-web-components/p-fa327346.system.entry.js +0 -1
- package/dist/boreal-web-components/p-fc2cb919.entry.js +0 -1
- package/dist/boreal-web-components/p-sDZFaZMN.system.js +0 -1
- package/dist/boreal-web-components/p-vfAIdwy0.js +0 -1
- package/dist/cjs/bds-tooltip.cjs.entry.js +0 -152
- package/dist/cjs/bds-typography.cjs.entry.js +0 -168
- package/dist/cjs/validateProps-BNOBk1Xs.js +0 -20
- package/dist/collection/utils/__test__/mocks/index.js +0 -1
- package/dist/esm/bds-tooltip.entry.js +0 -150
- package/dist/esm/bds-typography.entry.js +0 -166
- package/dist/esm/validateProps-vfAIdwy0.js +0 -18
- package/dist/esm-es5/anchored.mixin-Y3MkGc2X.js +0 -1
- package/dist/esm-es5/bds-tooltip.entry.js +0 -1
- package/dist/esm-es5/bds-typography.entry.js +0 -1
- package/dist/esm-es5/enum-C8mRvnTA.js +0 -1
- package/dist/esm-es5/index-D4EFsvs1.js +0 -2
- package/dist/esm-es5/internals-Dy7QKP9e.js +0 -1
- package/dist/esm-es5/states-BhTPNsBb.js +0 -1
- package/dist/esm-es5/validateProps-vfAIdwy0.js +0 -1
- package/dist/types/utils/__test__/mocks/index.d.ts +0 -2
- /package/dist/collection/utils/{__test__ → testing}/constants.js +0 -0
- /package/dist/collection/utils/{__test__ → testing}/fixtures.js +0 -0
- /package/dist/collection/utils/{__test__/backdrop-mock.js → testing/mocks/backdrop.js} +0 -0
- /package/dist/collection/utils/{__test__/mocks/ElementInternals.js → testing/mocks/elementInternals.js} +0 -0
- /package/dist/collection/utils/{__test__/popover-mock.js → testing/mocks/popover.js} +0 -0
- /package/dist/types/utils/{__test__ → testing}/constants.d.ts +0 -0
- /package/dist/types/utils/{__test__ → testing}/fixtures.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
var __spreadArray=this&&this.__spreadArray||function(a,s,i){if(i||arguments.length===2)for(var n=0,t=s.length,o;n<t;n++){if(o||!(n in s)){if(!o)o=Array.prototype.slice.call(s,0,n);o[n]=s[n]}}return a.concat(o||Array.prototype.slice.call(s))};import{r as registerInstance,d as getAssetPath,h,a as Host,g as getElement}from"./index-D4EFsvs1.js";import{v as validatePropValue}from"./validateProps-vfAIdwy0.js";var FlagIdentifier={ISO2:"iso2",ISO3:"iso3",CODE:"code"};var AlignFlag={LEFT:"left",RIGHT:"right"};var Shape={CIRCLE:"circle",SQUARE:"square",RECTANGLE:"rectangle"};var allCountries=[{capital:"Kabul",iso2:"af",continent:"Asia",flag_1x1:"flags/1x1/af.svg",flag_4x3:"flags/4x3/af.svg",iso:true,name:"Afghanistan",country:"93",iso3:"AFG"},{capital:"Mariehamn",iso2:"ax",continent:"Europe",flag_1x1:"flags/1x1/ax.svg",flag_4x3:"flags/4x3/ax.svg",iso:true,name:"Aland Islands",country:"358-18",iso3:"ALA"},{capital:"Tirana",iso2:"al",continent:"Europe",flag_1x1:"flags/1x1/al.svg",flag_4x3:"flags/4x3/al.svg",iso:true,name:"Albania",country:"355",iso3:"ALB"},{capital:"Algiers",iso2:"dz",continent:"Africa",flag_1x1:"flags/1x1/dz.svg",flag_4x3:"flags/4x3/dz.svg",iso:true,name:"Algeria",country:"213",iso3:"DZA"},{capital:"Pago Pago",iso2:"as",continent:"Oceania",flag_1x1:"flags/1x1/as.svg",flag_4x3:"flags/4x3/as.svg",iso:true,name:"American Samoa",country:"1-684",iso3:"ASM"},{capital:"Andorra la Vella",iso2:"ad",continent:"Europe",flag_1x1:"flags/1x1/ad.svg",flag_4x3:"flags/4x3/ad.svg",iso:true,name:"Andorra",country:"376",iso3:"AND"},{capital:"Luanda",iso2:"ao",continent:"Africa",flag_1x1:"flags/1x1/ao.svg",flag_4x3:"flags/4x3/ao.svg",iso:true,name:"Angola",country:"244",iso3:"AGO"},{capital:"The Valley",iso2:"ai",continent:"North America",flag_1x1:"flags/1x1/ai.svg",flag_4x3:"flags/4x3/ai.svg",iso:true,name:"Anguilla",country:"1-264",iso3:"AIA"},{capital:"St. John's",iso2:"ag",continent:"North America",flag_1x1:"flags/1x1/ag.svg",flag_4x3:"flags/4x3/ag.svg",iso:true,name:"Antigua and Barbuda",country:"1-268",iso3:"ATG"},{capital:"Buenos Aires",iso2:"ar",continent:"South America",flag_1x1:"flags/1x1/ar.svg",flag_4x3:"flags/4x3/ar.svg",iso:true,name:"Argentina",country:"54",iso3:"ARG"},{capital:"Yerevan",iso2:"am",continent:"Asia",flag_1x1:"flags/1x1/am.svg",flag_4x3:"flags/4x3/am.svg",iso:true,name:"Armenia",country:"374",iso3:"ARM"},{capital:"Oranjestad",iso2:"aw",continent:"South America",flag_1x1:"flags/1x1/aw.svg",flag_4x3:"flags/4x3/aw.svg",iso:true,name:"Aruba",country:"297",iso3:"ABW"},{capital:"Canberra",iso2:"au",continent:"Oceania",flag_1x1:"flags/1x1/au.svg",flag_4x3:"flags/4x3/au.svg",iso:true,name:"Australia",country:"61",iso3:"AUS"},{capital:"Vienna",iso2:"at",continent:"Europe",flag_1x1:"flags/1x1/at.svg",flag_4x3:"flags/4x3/at.svg",iso:true,name:"Austria",country:"43",iso3:"AUT"},{capital:"Baku",iso2:"az",continent:"Asia",flag_1x1:"flags/1x1/az.svg",flag_4x3:"flags/4x3/az.svg",iso:true,name:"Azerbaijan",country:"994",iso3:"AZE"},{capital:"Nassau",iso2:"bs",continent:"North America",flag_1x1:"flags/1x1/bs.svg",flag_4x3:"flags/4x3/bs.svg",iso:true,name:"Bahamas",country:"1-242",iso3:"BHS"},{capital:"Manama",iso2:"bh",continent:"Asia",flag_1x1:"flags/1x1/bh.svg",flag_4x3:"flags/4x3/bh.svg",iso:true,name:"Bahrain",country:"973",iso3:"BHR"},{capital:"Dhaka",iso2:"bd",continent:"Asia",flag_1x1:"flags/1x1/bd.svg",flag_4x3:"flags/4x3/bd.svg",iso:true,name:"Bangladesh",country:"880",iso3:"BGD"},{capital:"Bridgetown",iso2:"bb",continent:"North America",flag_1x1:"flags/1x1/bb.svg",flag_4x3:"flags/4x3/bb.svg",iso:true,name:"Barbados",country:"1-246",iso3:"BRB"},{capital:"Minsk",iso2:"by",continent:"Europe",flag_1x1:"flags/1x1/by.svg",flag_4x3:"flags/4x3/by.svg",iso:true,name:"Belarus",country:"375",iso3:"BLR"},{capital:"Brussels",iso2:"be",continent:"Europe",flag_1x1:"flags/1x1/be.svg",flag_4x3:"flags/4x3/be.svg",iso:true,name:"Belgium",country:"32",iso3:"BEL"},{capital:"Belmopan",iso2:"bz",continent:"North America",flag_1x1:"flags/1x1/bz.svg",flag_4x3:"flags/4x3/bz.svg",iso:true,name:"Belize",country:"501",iso3:"BLZ"},{capital:"Porto-Novo",iso2:"bj",continent:"Africa",flag_1x1:"flags/1x1/bj.svg",flag_4x3:"flags/4x3/bj.svg",iso:true,name:"Benin",country:"229",iso3:"BEN"},{capital:"Hamilton",iso2:"bm",continent:"North America",flag_1x1:"flags/1x1/bm.svg",flag_4x3:"flags/4x3/bm.svg",iso:true,name:"Bermuda",country:"1-441",iso3:"BMU"},{capital:"Thimphu",iso2:"bt",continent:"Asia",flag_1x1:"flags/1x1/bt.svg",flag_4x3:"flags/4x3/bt.svg",iso:true,name:"Bhutan",country:"975",iso3:"BTN"},{capital:"Sucre",iso2:"bo",continent:"South America",flag_1x1:"flags/1x1/bo.svg",flag_4x3:"flags/4x3/bo.svg",iso:true,name:"Bolivia",country:"591",iso3:"BOL"},{capital:"Kralendijk",iso2:"bq",continent:"South America",flag_1x1:"flags/1x1/bq.svg",flag_4x3:"flags/4x3/bq.svg",iso:true,name:"Bonaire, Sint Eustatius and Saba",country:"599",iso3:"BES"},{capital:"Sarajevo",iso2:"ba",continent:"Europe",flag_1x1:"flags/1x1/ba.svg",flag_4x3:"flags/4x3/ba.svg",iso:true,name:"Bosnia and Herzegovina",country:"387",iso3:"BIH"},{capital:"Gaborone",iso2:"bw",continent:"Africa",flag_1x1:"flags/1x1/bw.svg",flag_4x3:"flags/4x3/bw.svg",iso:true,name:"Botswana",country:"267",iso3:"BWA"},{capital:"Brasília",iso2:"br",continent:"South America",flag_1x1:"flags/1x1/br.svg",flag_4x3:"flags/4x3/br.svg",iso:true,name:"Brazil",country:"55",iso3:"BRA"},{capital:"Diego Garcia",iso2:"io",continent:"Asia",flag_1x1:"flags/1x1/io.svg",flag_4x3:"flags/4x3/io.svg",iso:true,name:"British Indian Ocean Territory",country:"246",iso3:"IOT"},{capital:"Bandar Seri Begawan",iso2:"bn",continent:"Asia",flag_1x1:"flags/1x1/bn.svg",flag_4x3:"flags/4x3/bn.svg",iso:true,name:"Brunei Darussalam",country:"673",iso3:"BRN"},{capital:"Sofia",iso2:"bg",continent:"Europe",flag_1x1:"flags/1x1/bg.svg",flag_4x3:"flags/4x3/bg.svg",iso:true,name:"Bulgaria",country:"359",iso3:"BGR"},{capital:"Ouagadougou",iso2:"bf",continent:"Africa",flag_1x1:"flags/1x1/bf.svg",flag_4x3:"flags/4x3/bf.svg",iso:true,name:"Burkina Faso",country:"226",iso3:"BFA"},{capital:"Bujumbura",iso2:"bi",continent:"Africa",flag_1x1:"flags/1x1/bi.svg",flag_4x3:"flags/4x3/bi.svg",iso:true,name:"Burundi",country:"257",iso3:"BDI"},{capital:"Praia",iso2:"cv",continent:"Africa",flag_1x1:"flags/1x1/cv.svg",flag_4x3:"flags/4x3/cv.svg",iso:true,name:"Cabo Verde",country:"238",iso3:"CPV"},{capital:"Phnom Penh",iso2:"kh",continent:"Asia",flag_1x1:"flags/1x1/kh.svg",flag_4x3:"flags/4x3/kh.svg",iso:true,name:"Cambodia",country:"855",iso3:"KHM"},{capital:"Yaoundé",iso2:"cm",continent:"Africa",flag_1x1:"flags/1x1/cm.svg",flag_4x3:"flags/4x3/cm.svg",iso:true,name:"Cameroon",country:"237",iso3:"CMR"},{capital:"George Town",iso2:"ky",continent:"North America",flag_1x1:"flags/1x1/ky.svg",flag_4x3:"flags/4x3/ky.svg",iso:true,name:"Cayman Islands",country:"1-345",iso3:"CYM"},{capital:"Bangui",iso2:"cf",continent:"Africa",flag_1x1:"flags/1x1/cf.svg",flag_4x3:"flags/4x3/cf.svg",iso:true,name:"Central African Republic",country:"236",iso3:"CAF"},{capital:"N'Djamena",iso2:"td",continent:"Africa",flag_1x1:"flags/1x1/td.svg",flag_4x3:"flags/4x3/td.svg",iso:true,name:"Chad",country:"235",iso3:"TCD"},{capital:"Santiago",iso2:"cl",continent:"South America",flag_1x1:"flags/1x1/cl.svg",flag_4x3:"flags/4x3/cl.svg",iso:true,name:"Chile",country:"56",iso3:"CHL"},{capital:"Beijing",iso2:"cn",continent:"Asia",flag_1x1:"flags/1x1/cn.svg",flag_4x3:"flags/4x3/cn.svg",iso:true,name:"China",country:"86",iso3:"CHN"},{capital:"Flying Fish Cove",iso2:"cx",continent:"Asia",flag_1x1:"flags/1x1/cx.svg",flag_4x3:"flags/4x3/cx.svg",iso:true,name:"Christmas Island",country:"61",iso3:"CXR"},{capital:"West Island",iso2:"cc",continent:"Asia",flag_1x1:"flags/1x1/cc.svg",flag_4x3:"flags/4x3/cc.svg",iso:true,name:"Cocos (Keeling) Islands",country:"61",iso3:"CCK"},{capital:"Bogotá",iso2:"co",continent:"South America",flag_1x1:"flags/1x1/co.svg",flag_4x3:"flags/4x3/co.svg",iso:true,name:"Colombia",country:"57",iso3:"COL"},{capital:"Moroni",iso2:"km",continent:"Africa",flag_1x1:"flags/1x1/km.svg",flag_4x3:"flags/4x3/km.svg",iso:true,name:"Comoros",country:"269",iso3:"COM"},{capital:"Avarua",iso2:"ck",continent:"Oceania",flag_1x1:"flags/1x1/ck.svg",flag_4x3:"flags/4x3/ck.svg",iso:true,name:"Cook Islands",country:"682",iso3:"COK"},{capital:"San José",iso2:"cr",continent:"North America",flag_1x1:"flags/1x1/cr.svg",flag_4x3:"flags/4x3/cr.svg",iso:true,name:"Costa Rica",country:"506",iso3:"CRI"},{capital:"Zagreb",iso2:"hr",continent:"Europe",flag_1x1:"flags/1x1/hr.svg",flag_4x3:"flags/4x3/hr.svg",iso:true,name:"Croatia",country:"385",iso3:"HRV"},{capital:"Havana",iso2:"cu",continent:"North America",flag_1x1:"flags/1x1/cu.svg",flag_4x3:"flags/4x3/cu.svg",iso:true,name:"Cuba",country:"53",iso3:"CUB"},{capital:"Willemstad",iso2:"cw",continent:"South America",flag_1x1:"flags/1x1/cw.svg",flag_4x3:"flags/4x3/cw.svg",iso:true,name:"Curaçao",country:"599",iso3:"CUW"},{capital:"Nicosia",iso2:"cy",continent:"Europe",flag_1x1:"flags/1x1/cy.svg",flag_4x3:"flags/4x3/cy.svg",iso:true,name:"Cyprus",country:"357",iso3:"CYP"},{capital:"Prague",iso2:"cz",continent:"Europe",flag_1x1:"flags/1x1/cz.svg",flag_4x3:"flags/4x3/cz.svg",iso:true,name:"Czech Republic",country:"420",iso3:"CZE"},{capital:"Yamoussoukro",iso2:"ci",continent:"Africa",flag_1x1:"flags/1x1/ci.svg",flag_4x3:"flags/4x3/ci.svg",iso:true,name:"Côte d'Ivoire",country:"225",iso3:"CIV"},{capital:"Kinshasa",iso2:"cd",continent:"Africa",flag_1x1:"flags/1x1/cd.svg",flag_4x3:"flags/4x3/cd.svg",iso:true,name:"Democratic Republic of the Congo",country:"243",iso3:"COD"},{capital:"Copenhagen",iso2:"dk",continent:"Europe",flag_1x1:"flags/1x1/dk.svg",flag_4x3:"flags/4x3/dk.svg",iso:true,name:"Denmark",country:"45",iso3:"DNK"},{capital:"Djibouti",iso2:"dj",continent:"Africa",flag_1x1:"flags/1x1/dj.svg",flag_4x3:"flags/4x3/dj.svg",iso:true,name:"Djibouti",country:"253",iso3:"DJI"},{capital:"Roseau",iso2:"dm",continent:"North America",flag_1x1:"flags/1x1/dm.svg",flag_4x3:"flags/4x3/dm.svg",iso:true,name:"Dominica",country:"1-767",iso3:"DMA"},{capital:"Santo Domingo",iso2:"do",continent:"North America",flag_1x1:"flags/1x1/do.svg",flag_4x3:"flags/4x3/do.svg",iso:true,name:"Dominican Republic",country:"1-809",iso3:"DOM"},{capital:"Quito",iso2:"ec",continent:"South America",flag_1x1:"flags/1x1/ec.svg",flag_4x3:"flags/4x3/ec.svg",iso:true,name:"Ecuador",country:"593",iso3:"ECU"},{capital:"Cairo",iso2:"eg",continent:"Africa",flag_1x1:"flags/1x1/eg.svg",flag_4x3:"flags/4x3/eg.svg",iso:true,name:"Egypt",country:"20",iso3:"EGY"},{capital:"San Salvador",iso2:"sv",continent:"North America",flag_1x1:"flags/1x1/sv.svg",flag_4x3:"flags/4x3/sv.svg",iso:true,name:"El Salvador",country:"503",iso3:"SLV"},{capital:"Malabo",iso2:"gq",continent:"Africa",flag_1x1:"flags/1x1/gq.svg",flag_4x3:"flags/4x3/gq.svg",iso:true,name:"Equatorial Guinea",country:"240",iso3:"GNQ"},{capital:"Asmara",iso2:"er",continent:"Africa",flag_1x1:"flags/1x1/er.svg",flag_4x3:"flags/4x3/er.svg",iso:true,name:"Eritrea",country:"291",iso3:"ERI"},{capital:"Tallinn",iso2:"ee",continent:"Europe",flag_1x1:"flags/1x1/ee.svg",flag_4x3:"flags/4x3/ee.svg",iso:true,name:"Estonia",country:"372",iso3:"EST"},{capital:"Lobamba, Mbabane",iso2:"sz",continent:"Africa",flag_1x1:"flags/1x1/sz.svg",flag_4x3:"flags/4x3/sz.svg",iso:true,name:"Eswatini",country:"268",iso3:"SWZ"},{capital:"Addis Ababa",iso2:"et",continent:"Africa",flag_1x1:"flags/1x1/et.svg",flag_4x3:"flags/4x3/et.svg",iso:true,name:"Ethiopia",country:"251",iso3:"ETH"},{capital:"Stanley",iso2:"fk",continent:"South America",flag_1x1:"flags/1x1/fk.svg",flag_4x3:"flags/4x3/fk.svg",iso:true,name:"Falkland Islands",country:"500",iso3:"FLK"},{capital:"Tórshavn",iso2:"fo",continent:"Europe",flag_1x1:"flags/1x1/fo.svg",flag_4x3:"flags/4x3/fo.svg",iso:true,name:"Faroe Islands",country:"298",iso3:"FRO"},{capital:"Palikir",iso2:"fm",continent:"Oceania",flag_1x1:"flags/1x1/fm.svg",flag_4x3:"flags/4x3/fm.svg",iso:true,name:"Federated States of Micronesia",country:"691",iso3:"FSM"},{capital:"Suva",iso2:"fj",continent:"Oceania",flag_1x1:"flags/1x1/fj.svg",flag_4x3:"flags/4x3/fj.svg",iso:true,name:"Fiji",country:"679",iso3:"FJI"},{capital:"Helsinki",iso2:"fi",continent:"Europe",flag_1x1:"flags/1x1/fi.svg",flag_4x3:"flags/4x3/fi.svg",iso:true,name:"Finland",country:"358",iso3:"FIN"},{capital:"Paris",iso2:"fr",continent:"Europe",flag_1x1:"flags/1x1/fr.svg",flag_4x3:"flags/4x3/fr.svg",iso:true,name:"France",country:"33",iso3:"FRA"},{capital:"Cayenne",iso2:"gf",continent:"South America",flag_1x1:"flags/1x1/gf.svg",flag_4x3:"flags/4x3/gf.svg",iso:true,name:"French Guiana",country:"594",iso3:"GUF"},{capital:"Papeete",iso2:"pf",continent:"Oceania",flag_1x1:"flags/1x1/pf.svg",flag_4x3:"flags/4x3/pf.svg",iso:true,name:"French Polynesia",country:"689",iso3:"PYF"},{capital:"Libreville",iso2:"ga",continent:"Africa",flag_1x1:"flags/1x1/ga.svg",flag_4x3:"flags/4x3/ga.svg",iso:true,name:"Gabon",country:"241",iso3:"GAB"},{capital:"Banjul",iso2:"gm",continent:"Africa",flag_1x1:"flags/1x1/gm.svg",flag_4x3:"flags/4x3/gm.svg",iso:true,name:"Gambia",country:"220",iso3:"GMB"},{capital:"Tbilisi",iso2:"ge",continent:"Asia",flag_1x1:"flags/1x1/ge.svg",flag_4x3:"flags/4x3/ge.svg",iso:true,name:"Georgia",country:"995",iso3:"GEO"},{capital:"Berlin",iso2:"de",continent:"Europe",flag_1x1:"flags/1x1/de.svg",flag_4x3:"flags/4x3/de.svg",iso:true,name:"Germany",country:"49",iso3:"DEU"},{capital:"Accra",iso2:"gh",continent:"Africa",flag_1x1:"flags/1x1/gh.svg",flag_4x3:"flags/4x3/gh.svg",iso:true,name:"Ghana",country:"233",iso3:"GHA"},{capital:"Gibraltar",iso2:"gi",continent:"Europe",flag_1x1:"flags/1x1/gi.svg",flag_4x3:"flags/4x3/gi.svg",iso:true,name:"Gibraltar",country:"350",iso3:"GIB"},{capital:"Athens",iso2:"gr",continent:"Europe",flag_1x1:"flags/1x1/gr.svg",flag_4x3:"flags/4x3/gr.svg",iso:true,name:"Greece",country:"30",iso3:"GRC"},{capital:"Nuuk",iso2:"gl",continent:"North America",flag_1x1:"flags/1x1/gl.svg",flag_4x3:"flags/4x3/gl.svg",iso:true,name:"Greenland",country:"299",iso3:"GRL"},{capital:"St. George's",iso2:"gd",continent:"North America",flag_1x1:"flags/1x1/gd.svg",flag_4x3:"flags/4x3/gd.svg",iso:true,name:"Grenada",country:"1-473",iso3:"GRD"},{capital:"Basse-Terre",iso2:"gp",continent:"North America",flag_1x1:"flags/1x1/gp.svg",flag_4x3:"flags/4x3/gp.svg",iso:true,name:"Guadeloupe",country:"590",iso3:"GLP"},{capital:"Hagåtña",iso2:"gu",continent:"Oceania",flag_1x1:"flags/1x1/gu.svg",flag_4x3:"flags/4x3/gu.svg",iso:true,name:"Guam",country:"1-671",iso3:"GUM"},{capital:"Guatemala City",iso2:"gt",continent:"North America",flag_1x1:"flags/1x1/gt.svg",flag_4x3:"flags/4x3/gt.svg",iso:true,name:"Guatemala",country:"502",iso3:"GTM"},{capital:"Saint Peter Port",iso2:"gg",continent:"Europe",flag_1x1:"flags/1x1/gg.svg",flag_4x3:"flags/4x3/gg.svg",iso:true,name:"Guernsey",country:"44-1481",iso3:"GGY"},{capital:"Conakry",iso2:"gn",continent:"Africa",flag_1x1:"flags/1x1/gn.svg",flag_4x3:"flags/4x3/gn.svg",iso:true,name:"Guinea",country:"224",iso3:"GIN"},{capital:"Bissau",iso2:"gw",continent:"Africa",flag_1x1:"flags/1x1/gw.svg",flag_4x3:"flags/4x3/gw.svg",iso:true,name:"Guinea-Bissau",country:"245",iso3:"GNB"},{capital:"Georgetown",iso2:"gy",continent:"South America",flag_1x1:"flags/1x1/gy.svg",flag_4x3:"flags/4x3/gy.svg",iso:true,name:"Guyana",country:"592",iso3:"GUY"},{capital:"Port-au-Prince",iso2:"ht",continent:"North America",flag_1x1:"flags/1x1/ht.svg",flag_4x3:"flags/4x3/ht.svg",iso:true,name:"Haiti",country:"509",iso3:"HTI"},{iso2:"hm",flag_1x1:"flags/1x1/hm.svg",flag_4x3:"flags/4x3/hm.svg",iso:true,name:"Heard Island and McDonald Islands",country:" ",iso3:"HMD"},{capital:"Vatican City",iso2:"va",continent:"Europe",flag_1x1:"flags/1x1/va.svg",flag_4x3:"flags/4x3/va.svg",iso:true,name:"Holy See",country:"379",iso3:"VAT"},{capital:"Tegucigalpa",iso2:"hn",continent:"North America",flag_1x1:"flags/1x1/hn.svg",flag_4x3:"flags/4x3/hn.svg",iso:true,name:"Honduras",country:"504",iso3:"HND"},{capital:"Hong Kong",iso2:"hk",continent:"Asia",flag_1x1:"flags/1x1/hk.svg",flag_4x3:"flags/4x3/hk.svg",iso:true,name:"Hong Kong",country:"852",iso3:"HKG"},{capital:"Budapest",iso2:"hu",continent:"Europe",flag_1x1:"flags/1x1/hu.svg",flag_4x3:"flags/4x3/hu.svg",iso:true,name:"Hungary",country:"36",iso3:"HUN"},{capital:"Reykjavik",iso2:"is",continent:"Europe",flag_1x1:"flags/1x1/is.svg",flag_4x3:"flags/4x3/is.svg",iso:true,name:"Iceland",country:"354",iso3:"ISL"},{capital:"New Delhi",iso2:"in",continent:"Asia",flag_1x1:"flags/1x1/in.svg",flag_4x3:"flags/4x3/in.svg",iso:true,name:"India",country:"91",iso3:"IND"},{capital:"Jakarta",iso2:"id",continent:"Asia",flag_1x1:"flags/1x1/id.svg",flag_4x3:"flags/4x3/id.svg",iso:true,name:"Indonesia",country:"62",iso3:"IDN"},{capital:"Tehran",iso2:"ir",continent:"Asia",flag_1x1:"flags/1x1/ir.svg",flag_4x3:"flags/4x3/ir.svg",iso:true,name:"Iran",country:"98",iso3:"IRN"},{capital:"Baghdad",iso2:"iq",continent:"Asia",flag_1x1:"flags/1x1/iq.svg",flag_4x3:"flags/4x3/iq.svg",iso:true,name:"Iraq",country:"964",iso3:"IRQ"},{capital:"Dublin",iso2:"ie",continent:"Europe",flag_1x1:"flags/1x1/ie.svg",flag_4x3:"flags/4x3/ie.svg",iso:true,name:"Ireland",country:"353",iso3:"IRL"},{capital:"Douglas",iso2:"im",continent:"Europe",flag_1x1:"flags/1x1/im.svg",flag_4x3:"flags/4x3/im.svg",iso:true,name:"Isle of Man",country:"44-1624",iso3:"IMN"},{capital:"Jerusalem",iso2:"il",continent:"Asia",flag_1x1:"flags/1x1/il.svg",flag_4x3:"flags/4x3/il.svg",iso:true,name:"Israel",country:"972",iso3:"ISR"},{capital:"Rome",iso2:"it",continent:"Europe",flag_1x1:"flags/1x1/it.svg",flag_4x3:"flags/4x3/it.svg",iso:true,name:"Italy",country:"39",iso3:"ITA"},{capital:"Kingston",iso2:"jm",continent:"North America",flag_1x1:"flags/1x1/jm.svg",flag_4x3:"flags/4x3/jm.svg",iso:true,name:"Jamaica",country:"1-876",iso3:"JAM"},{capital:"Tokyo",iso2:"jp",continent:"Asia",flag_1x1:"flags/1x1/jp.svg",flag_4x3:"flags/4x3/jp.svg",iso:true,name:"Japan",country:"81",iso3:"JPN"},{capital:"Saint Helier",iso2:"je",continent:"Europe",flag_1x1:"flags/1x1/je.svg",flag_4x3:"flags/4x3/je.svg",iso:true,name:"Jersey",country:"44-1534",iso3:"JEY"},{capital:"Amman",iso2:"jo",continent:"Asia",flag_1x1:"flags/1x1/jo.svg",flag_4x3:"flags/4x3/jo.svg",iso:true,name:"Jordan",country:"962",iso3:"JOR"},{capital:"Astana",iso2:"kz",continent:"Asia",flag_1x1:"flags/1x1/kz.svg",flag_4x3:"flags/4x3/kz.svg",iso:true,name:"Kazakhstan",country:"7",iso3:"KAZ"},{capital:"Nairobi",iso2:"ke",continent:"Africa",flag_1x1:"flags/1x1/ke.svg",flag_4x3:"flags/4x3/ke.svg",iso:true,name:"Kenya",country:"254",iso3:"KEN"},{capital:"South Tarawa",iso2:"ki",continent:"Oceania",flag_1x1:"flags/1x1/ki.svg",flag_4x3:"flags/4x3/ki.svg",iso:true,name:"Kiribati",country:"686",iso3:"KIR"},{capital:"Kuwait City",iso2:"kw",continent:"Asia",flag_1x1:"flags/1x1/kw.svg",flag_4x3:"flags/4x3/kw.svg",iso:true,name:"Kuwait",country:"965",iso3:"KWT"},{capital:"Bishkek",iso2:"kg",continent:"Asia",flag_1x1:"flags/1x1/kg.svg",flag_4x3:"flags/4x3/kg.svg",iso:true,name:"Kyrgyzstan",country:"996",iso3:"KGZ"},{capital:"Vientiane",iso2:"la",continent:"Asia",flag_1x1:"flags/1x1/la.svg",flag_4x3:"flags/4x3/la.svg",iso:true,name:"Laos",country:"856",iso3:"LAO"},{capital:"Riga",iso2:"lv",continent:"Europe",flag_1x1:"flags/1x1/lv.svg",flag_4x3:"flags/4x3/lv.svg",iso:true,name:"Latvia",country:"371",iso3:"LVA"},{capital:"Beirut",iso2:"lb",continent:"Asia",flag_1x1:"flags/1x1/lb.svg",flag_4x3:"flags/4x3/lb.svg",iso:true,name:"Lebanon",country:"961",iso3:"LBN"},{capital:"Maseru",iso2:"ls",continent:"Africa",flag_1x1:"flags/1x1/ls.svg",flag_4x3:"flags/4x3/ls.svg",iso:true,name:"Lesotho",country:"266",iso3:"LSO"},{capital:"Monrovia",iso2:"lr",continent:"Africa",flag_1x1:"flags/1x1/lr.svg",flag_4x3:"flags/4x3/lr.svg",iso:true,name:"Liberia",country:"231",iso3:"LBR"},{capital:"Tripoli",iso2:"ly",continent:"Africa",flag_1x1:"flags/1x1/ly.svg",flag_4x3:"flags/4x3/ly.svg",iso:true,name:"Libya",country:"218",iso3:"LBY"},{capital:"Vaduz",iso2:"li",continent:"Europe",flag_1x1:"flags/1x1/li.svg",flag_4x3:"flags/4x3/li.svg",iso:true,name:"Liechtenstein",country:"423",iso3:"LIE"},{capital:"Vilnius",iso2:"lt",continent:"Europe",flag_1x1:"flags/1x1/lt.svg",flag_4x3:"flags/4x3/lt.svg",iso:true,name:"Lithuania",country:"370",iso3:"LTU"},{capital:"Luxembourg City",iso2:"lu",continent:"Europe",flag_1x1:"flags/1x1/lu.svg",flag_4x3:"flags/4x3/lu.svg",iso:true,name:"Luxembourg",country:"352",iso3:"LUX"},{capital:"Macau",iso2:"mo",continent:"Asia",flag_1x1:"flags/1x1/mo.svg",flag_4x3:"flags/4x3/mo.svg",iso:true,name:"Macau",country:"853",iso3:"MAC"},{capital:"Antananarivo",iso2:"mg",continent:"Africa",flag_1x1:"flags/1x1/mg.svg",flag_4x3:"flags/4x3/mg.svg",iso:true,name:"Madagascar",country:"261",iso3:"MDG"},{capital:"Lilongwe",iso2:"mw",continent:"Africa",flag_1x1:"flags/1x1/mw.svg",flag_4x3:"flags/4x3/mw.svg",iso:true,name:"Malawi",country:"265",iso3:"MWI"},{capital:"Kuala Lumpur",iso2:"my",continent:"Asia",flag_1x1:"flags/1x1/my.svg",flag_4x3:"flags/4x3/my.svg",iso:true,name:"Malaysia",country:"60",iso3:"MYS"},{capital:"Malé",iso2:"mv",continent:"Asia",flag_1x1:"flags/1x1/mv.svg",flag_4x3:"flags/4x3/mv.svg",iso:true,name:"Maldives",country:"960",iso3:"MDV"},{capital:"Bamako",iso2:"ml",continent:"Africa",flag_1x1:"flags/1x1/ml.svg",flag_4x3:"flags/4x3/ml.svg",iso:true,name:"Mali",country:"223",iso3:"MLI"},{capital:"Valletta",iso2:"mt",continent:"Europe",flag_1x1:"flags/1x1/mt.svg",flag_4x3:"flags/4x3/mt.svg",iso:true,name:"Malta",country:"356",iso3:"MLT"},{capital:"Majuro",iso2:"mh",continent:"Oceania",flag_1x1:"flags/1x1/mh.svg",flag_4x3:"flags/4x3/mh.svg",iso:true,name:"Marshall Islands",country:"692",iso3:"MHL"},{capital:"Fort-de-France",iso2:"mq",continent:"North America",flag_1x1:"flags/1x1/mq.svg",flag_4x3:"flags/4x3/mq.svg",iso:true,name:"Martinique",country:"596",iso3:"MTQ"},{capital:"Nouakchott",iso2:"mr",continent:"Africa",flag_1x1:"flags/1x1/mr.svg",flag_4x3:"flags/4x3/mr.svg",iso:true,name:"Mauritania",country:"222",iso3:"MRT"},{capital:"Port Louis",iso2:"mu",continent:"Africa",flag_1x1:"flags/1x1/mu.svg",flag_4x3:"flags/4x3/mu.svg",iso:true,name:"Mauritius",country:"230",iso3:"MUS"},{capital:"Mamoudzou",iso2:"yt",continent:"Africa",flag_1x1:"flags/1x1/yt.svg",flag_4x3:"flags/4x3/yt.svg",iso:true,name:"Mayotte",country:"262",iso3:"MYT"},{capital:"Mexico City",iso2:"mx",continent:"North America",flag_1x1:"flags/1x1/mx.svg",flag_4x3:"flags/4x3/mx.svg",iso:true,name:"Mexico",country:"52",iso3:"MEX"},{capital:"Chișinău",iso2:"md",continent:"Europe",flag_1x1:"flags/1x1/md.svg",flag_4x3:"flags/4x3/md.svg",iso:true,name:"Moldova",country:"373",iso3:"MDA"},{capital:"Monaco",iso2:"mc",continent:"Europe",flag_1x1:"flags/1x1/mc.svg",flag_4x3:"flags/4x3/mc.svg",iso:true,name:"Monaco",country:"377",iso3:"MCO"},{capital:"Ulaanbaatar",iso2:"mn",continent:"Asia",flag_1x1:"flags/1x1/mn.svg",flag_4x3:"flags/4x3/mn.svg",iso:true,name:"Mongolia",country:"976",iso3:"MNG"},{capital:"Podgorica",iso2:"me",continent:"Europe",flag_1x1:"flags/1x1/me.svg",flag_4x3:"flags/4x3/me.svg",iso:true,name:"Montenegro",country:"382",iso3:"MNE"},{capital:"Little Bay, Brades, Plymouth",iso2:"ms",continent:"North America",flag_1x1:"flags/1x1/ms.svg",flag_4x3:"flags/4x3/ms.svg",iso:true,name:"Montserrat",country:"1-664",iso3:"MSR"},{capital:"Rabat",iso2:"ma",continent:"Africa",flag_1x1:"flags/1x1/ma.svg",flag_4x3:"flags/4x3/ma.svg",iso:true,name:"Morocco",country:"212",iso3:"MAR"},{capital:"Maputo",iso2:"mz",continent:"Africa",flag_1x1:"flags/1x1/mz.svg",flag_4x3:"flags/4x3/mz.svg",iso:true,name:"Mozambique",country:"258",iso3:"MOZ"},{capital:"Naypyidaw",iso2:"mm",continent:"Asia",flag_1x1:"flags/1x1/mm.svg",flag_4x3:"flags/4x3/mm.svg",iso:true,name:"Myanmar",country:"95",iso3:"MMR"},{capital:"Windhoek",iso2:"na",continent:"Africa",flag_1x1:"flags/1x1/na.svg",flag_4x3:"flags/4x3/na.svg",iso:true,name:"Namibia",country:"264",iso3:"NAM"},{capital:"Yaren District",iso2:"nr",continent:"Oceania",flag_1x1:"flags/1x1/nr.svg",flag_4x3:"flags/4x3/nr.svg",iso:true,name:"Nauru",country:"674",iso3:"NRU"},{capital:"Kathmandu",iso2:"np",continent:"Asia",flag_1x1:"flags/1x1/np.svg",flag_4x3:"flags/4x3/np.svg",iso:true,name:"Nepal",country:"977",iso3:"NPL"},{capital:"Amsterdam",iso2:"nl",continent:"Europe",flag_1x1:"flags/1x1/nl.svg",flag_4x3:"flags/4x3/nl.svg",iso:true,name:"Netherlands",country:"31",iso3:"NLD"},{capital:"Nouméa",iso2:"nc",continent:"Oceania",flag_1x1:"flags/1x1/nc.svg",flag_4x3:"flags/4x3/nc.svg",iso:true,name:"New Caledonia",country:"687",iso3:"NCL"},{capital:"Wellington",iso2:"nz",continent:"Oceania",flag_1x1:"flags/1x1/nz.svg",flag_4x3:"flags/4x3/nz.svg",iso:true,name:"New Zealand",country:"64",iso3:"NZL"},{capital:"Managua",iso2:"ni",continent:"North America",flag_1x1:"flags/1x1/ni.svg",flag_4x3:"flags/4x3/ni.svg",iso:true,name:"Nicaragua",country:"505",iso3:"NIC"},{capital:"Niamey",iso2:"ne",continent:"Africa",flag_1x1:"flags/1x1/ne.svg",flag_4x3:"flags/4x3/ne.svg",iso:true,name:"Niger",country:"227",iso3:"NER"},{capital:"Abuja",iso2:"ng",continent:"Africa",flag_1x1:"flags/1x1/ng.svg",flag_4x3:"flags/4x3/ng.svg",iso:true,name:"Nigeria",country:"234",iso3:"NGA"},{capital:"Alofi",iso2:"nu",continent:"Oceania",flag_1x1:"flags/1x1/nu.svg",flag_4x3:"flags/4x3/nu.svg",iso:true,name:"Niue",country:"683",iso3:"NIU"},{capital:"Kingston",iso2:"nf",continent:"Oceania",flag_1x1:"flags/1x1/nf.svg",flag_4x3:"flags/4x3/nf.svg",iso:true,name:"Norfolk Island",country:"672",iso3:"NFK"},{capital:"Pyongyang",iso2:"kp",continent:"Asia",flag_1x1:"flags/1x1/kp.svg",flag_4x3:"flags/4x3/kp.svg",iso:true,name:"North Korea",country:"850",iso3:"PRK"},{capital:"Skopje",iso2:"mk",continent:"Europe",flag_1x1:"flags/1x1/mk.svg",flag_4x3:"flags/4x3/mk.svg",iso:true,name:"North Macedonia",country:"389",iso3:"MKD"},{capital:"Saipan",iso2:"mp",continent:"Oceania",flag_1x1:"flags/1x1/mp.svg",flag_4x3:"flags/4x3/mp.svg",iso:true,name:"Northern Mariana Islands",country:"1-670",iso3:"MNP"},{capital:"Oslo",iso2:"no",continent:"Europe",flag_1x1:"flags/1x1/no.svg",flag_4x3:"flags/4x3/no.svg",iso:true,name:"Norway",country:"47",iso3:"NOR"},{capital:"Muscat",iso2:"om",continent:"Asia",flag_1x1:"flags/1x1/om.svg",flag_4x3:"flags/4x3/om.svg",iso:true,name:"Oman",country:"968",iso3:"OMN"},{capital:"Islamabad",iso2:"pk",continent:"Asia",flag_1x1:"flags/1x1/pk.svg",flag_4x3:"flags/4x3/pk.svg",iso:true,name:"Pakistan",country:"92",iso3:"PAK"},{capital:"Ngerulmud",iso2:"pw",continent:"Oceania",flag_1x1:"flags/1x1/pw.svg",flag_4x3:"flags/4x3/pw.svg",iso:true,name:"Palau",country:"680",iso3:"PLW"},{capital:"Panama City",iso2:"pa",continent:"North America",flag_1x1:"flags/1x1/pa.svg",flag_4x3:"flags/4x3/pa.svg",iso:true,name:"Panama",country:"507",iso3:"PAN"},{capital:"Port Moresby",iso2:"pg",continent:"Oceania",flag_1x1:"flags/1x1/pg.svg",flag_4x3:"flags/4x3/pg.svg",iso:true,name:"Papua New Guinea",country:"675",iso3:"PNG"},{capital:"Asunción",iso2:"py",continent:"South America",flag_1x1:"flags/1x1/py.svg",flag_4x3:"flags/4x3/py.svg",iso:true,name:"Paraguay",country:"595",iso3:"PRY"},{capital:"Lima",iso2:"pe",continent:"South America",flag_1x1:"flags/1x1/pe.svg",flag_4x3:"flags/4x3/pe.svg",iso:true,name:"Peru",country:"51",iso3:"PER"},{capital:"Manila",iso2:"ph",continent:"Asia",flag_1x1:"flags/1x1/ph.svg",flag_4x3:"flags/4x3/ph.svg",iso:true,name:"Philippines",country:"63",iso3:"PHL"},{capital:"Adamstown",iso2:"pn",continent:"Oceania",flag_1x1:"flags/1x1/pn.svg",flag_4x3:"flags/4x3/pn.svg",iso:true,name:"Pitcairn",country:"870",iso3:"PCN"},{capital:"Warsaw",iso2:"pl",continent:"Europe",flag_1x1:"flags/1x1/pl.svg",flag_4x3:"flags/4x3/pl.svg",iso:true,name:"Poland",country:"48",iso3:"POL"},{capital:"Lisbon",iso2:"pt",continent:"Europe",flag_1x1:"flags/1x1/pt.svg",flag_4x3:"flags/4x3/pt.svg",iso:true,name:"Portugal",country:"351",iso3:"PRT"},{capital:"San Juan",iso2:"pr",continent:"North America",flag_1x1:"flags/1x1/pr.svg",flag_4x3:"flags/4x3/pr.svg",iso:true,name:"Puerto Rico",country:"1-787",iso3:"PRI"},{capital:"Doha",iso2:"qa",continent:"Asia",flag_1x1:"flags/1x1/qa.svg",flag_4x3:"flags/4x3/qa.svg",iso:true,name:"Qatar",country:"974",iso3:"QAT"},{capital:"Brazzaville",iso2:"cg",continent:"Africa",flag_1x1:"flags/1x1/cg.svg",flag_4x3:"flags/4x3/cg.svg",iso:true,name:"Republic of the Congo",country:"242",iso3:"COG"},{capital:"Bucharest",iso2:"ro",continent:"Europe",flag_1x1:"flags/1x1/ro.svg",flag_4x3:"flags/4x3/ro.svg",iso:true,name:"Romania",country:"40",iso3:"ROU"},{capital:"Moscow",iso2:"ru",continent:"Europe",flag_1x1:"flags/1x1/ru.svg",flag_4x3:"flags/4x3/ru.svg",iso:true,name:"Russia",country:"7",iso3:"RUS"},{capital:"Kigali",iso2:"rw",continent:"Africa",flag_1x1:"flags/1x1/rw.svg",flag_4x3:"flags/4x3/rw.svg",iso:true,name:"Rwanda",country:"250",iso3:"RWA"},{capital:"Saint-Denis",iso2:"re",continent:"Africa",flag_1x1:"flags/1x1/re.svg",flag_4x3:"flags/4x3/re.svg",iso:true,name:"Réunion",country:"262",iso3:"REU"},{capital:"Gustavia",iso2:"bl",continent:"North America",flag_1x1:"flags/1x1/bl.svg",flag_4x3:"flags/4x3/bl.svg",iso:true,name:"Saint Barthélemy",country:"590",iso3:"BLM"},{capital:"Jamestown",iso2:"sh",continent:"Africa",flag_1x1:"flags/1x1/sh.svg",flag_4x3:"flags/4x3/sh.svg",iso:true,name:"Saint Helena, Ascension and Tristan da Cunha",country:"290",iso3:"SHN"},{capital:"Basseterre",iso2:"kn",continent:"North America",flag_1x1:"flags/1x1/kn.svg",flag_4x3:"flags/4x3/kn.svg",iso:true,name:"Saint Kitts and Nevis",country:"1-869",iso3:"KNA"},{capital:"Castries",iso2:"lc",continent:"North America",flag_1x1:"flags/1x1/lc.svg",flag_4x3:"flags/4x3/lc.svg",iso:true,name:"Saint Lucia",country:"1-758",iso3:"LCA"},{capital:"Marigot",iso2:"mf",continent:"North America",flag_1x1:"flags/1x1/mf.svg",flag_4x3:"flags/4x3/mf.svg",iso:true,name:"Saint Martin",country:"590",iso3:"MAF"},{capital:"Saint-Pierre",iso2:"pm",continent:"North America",flag_1x1:"flags/1x1/pm.svg",flag_4x3:"flags/4x3/pm.svg",iso:true,name:"Saint Pierre and Miquelon",country:"508",iso3:"SPM"},{capital:"Kingstown",iso2:"vc",continent:"North America",flag_1x1:"flags/1x1/vc.svg",flag_4x3:"flags/4x3/vc.svg",iso:true,name:"Saint Vincent and the Grenadines",country:"1-784",iso3:"VCT"},{capital:"Apia",iso2:"ws",continent:"Oceania",flag_1x1:"flags/1x1/ws.svg",flag_4x3:"flags/4x3/ws.svg",iso:true,name:"Samoa",country:"685",iso3:"WSM"},{capital:"San Marino",iso2:"sm",continent:"Europe",flag_1x1:"flags/1x1/sm.svg",flag_4x3:"flags/4x3/sm.svg",iso:true,name:"San Marino",country:"378",iso3:"SMR"},{capital:"São Tomé",iso2:"st",continent:"Africa",flag_1x1:"flags/1x1/st.svg",flag_4x3:"flags/4x3/st.svg",iso:true,name:"Sao Tome and Principe",country:"239",iso3:"STP"},{capital:"Riyadh",iso2:"sa",continent:"Asia",flag_1x1:"flags/1x1/sa.svg",flag_4x3:"flags/4x3/sa.svg",iso:true,name:"Saudi Arabia",country:"966",iso3:"SAU"},{capital:"Dakar",iso2:"sn",continent:"Africa",flag_1x1:"flags/1x1/sn.svg",flag_4x3:"flags/4x3/sn.svg",iso:true,name:"Senegal",country:"221",iso3:"SEN"},{capital:"Belgrade",iso2:"rs",continent:"Europe",flag_1x1:"flags/1x1/rs.svg",flag_4x3:"flags/4x3/rs.svg",iso:true,name:"Serbia",country:"381",iso3:"SRB"},{capital:"Victoria",iso2:"sc",continent:"Africa",flag_1x1:"flags/1x1/sc.svg",flag_4x3:"flags/4x3/sc.svg",iso:true,name:"Seychelles",country:"248",iso3:"SYC"},{capital:"Freetown",iso2:"sl",continent:"Africa",flag_1x1:"flags/1x1/sl.svg",flag_4x3:"flags/4x3/sl.svg",iso:true,name:"Sierra Leone",country:"232",iso3:"SLE"},{capital:"Singapore",iso2:"sg",continent:"Asia",flag_1x1:"flags/1x1/sg.svg",flag_4x3:"flags/4x3/sg.svg",iso:true,name:"Singapore",country:"65",iso3:"SGP"},{capital:"Philipsburg",iso2:"sx",continent:"North America",flag_1x1:"flags/1x1/sx.svg",flag_4x3:"flags/4x3/sx.svg",iso:true,name:"Sint Maarten",country:"599",iso3:"SXM"},{capital:"Bratislava",iso2:"sk",continent:"Europe",flag_1x1:"flags/1x1/sk.svg",flag_4x3:"flags/4x3/sk.svg",iso:true,name:"Slovakia",country:"421",iso3:"SVK"},{capital:"Ljubljana",iso2:"si",continent:"Europe",flag_1x1:"flags/1x1/si.svg",flag_4x3:"flags/4x3/si.svg",iso:true,name:"Slovenia",country:"386",iso3:"SVN"},{capital:"Honiara",iso2:"sb",continent:"Oceania",flag_1x1:"flags/1x1/sb.svg",flag_4x3:"flags/4x3/sb.svg",iso:true,name:"Solomon Islands",country:"677",iso3:"SLB"},{capital:"Mogadishu",iso2:"so",continent:"Africa",flag_1x1:"flags/1x1/so.svg",flag_4x3:"flags/4x3/so.svg",iso:true,name:"Somalia",country:"252",iso3:"SOM"},{capital:"Pretoria",iso2:"za",continent:"Africa",flag_1x1:"flags/1x1/za.svg",flag_4x3:"flags/4x3/za.svg",iso:true,name:"South Africa",country:"27",iso3:"ZAF"},{capital:"Seoul",iso2:"kr",continent:"Asia",flag_1x1:"flags/1x1/kr.svg",flag_4x3:"flags/4x3/kr.svg",iso:true,name:"South Korea",country:"82",iso3:"KOR"},{capital:"Juba",iso2:"ss",continent:"Africa",flag_1x1:"flags/1x1/ss.svg",flag_4x3:"flags/4x3/ss.svg",iso:true,name:"South Sudan",country:"211",iso3:"SSD"},{capital:"Madrid",iso2:"es",continent:"Europe",flag_1x1:"flags/1x1/es.svg",flag_4x3:"flags/4x3/es.svg",iso:true,name:"Spain",country:"34",iso3:"ESP"},{capital:"Sri Jayawardenepura Kotte, Colombo",iso2:"lk",continent:"Asia",flag_1x1:"flags/1x1/lk.svg",flag_4x3:"flags/4x3/lk.svg",iso:true,name:"Sri Lanka",country:"94",iso3:"LKA"},{capital:"Ramallah",iso2:"ps",continent:"Asia",flag_1x1:"flags/1x1/ps.svg",flag_4x3:"flags/4x3/ps.svg",iso:true,name:"State of Palestine",country:"970",iso3:"PSE"},{capital:"Khartoum",iso2:"sd",continent:"Africa",flag_1x1:"flags/1x1/sd.svg",flag_4x3:"flags/4x3/sd.svg",iso:true,name:"Sudan",country:"249",iso3:"SDN"},{capital:"Paramaribo",iso2:"sr",continent:"South America",flag_1x1:"flags/1x1/sr.svg",flag_4x3:"flags/4x3/sr.svg",iso:true,name:"Suriname",country:"597",iso3:"SUR"},{capital:"Longyearbyen",iso2:"sj",continent:"Europe",flag_1x1:"flags/1x1/sj.svg",flag_4x3:"flags/4x3/sj.svg",iso:true,name:"Svalbard and Jan Mayen",country:"47",iso3:"SJM"},{capital:"Stockholm",iso2:"se",continent:"Europe",flag_1x1:"flags/1x1/se.svg",flag_4x3:"flags/4x3/se.svg",iso:true,name:"Sweden",country:"46",iso3:"SWE"},{capital:"Bern",iso2:"ch",continent:"Europe",flag_1x1:"flags/1x1/ch.svg",flag_4x3:"flags/4x3/ch.svg",iso:true,name:"Switzerland",country:"41",iso3:"CHE"},{capital:"Damascus",iso2:"sy",continent:"Asia",flag_1x1:"flags/1x1/sy.svg",flag_4x3:"flags/4x3/sy.svg",iso:true,name:"Syria",country:"963",iso3:"SYR"},{capital:"Taipei",iso2:"tw",continent:"Asia",flag_1x1:"flags/1x1/tw.svg",flag_4x3:"flags/4x3/tw.svg",iso:true,name:"Taiwan",country:"886",iso3:"TWN"},{capital:"Dushanbe",iso2:"tj",continent:"Asia",flag_1x1:"flags/1x1/tj.svg",flag_4x3:"flags/4x3/tj.svg",iso:true,name:"Tajikistan",country:"992",iso3:"TJK"},{capital:"Dodoma",iso2:"tz",continent:"Africa",flag_1x1:"flags/1x1/tz.svg",flag_4x3:"flags/4x3/tz.svg",iso:true,name:"Tanzania",country:"255",iso3:"TZA"},{capital:"Bangkok",iso2:"th",continent:"Asia",flag_1x1:"flags/1x1/th.svg",flag_4x3:"flags/4x3/th.svg",iso:true,name:"Thailand",country:"66",iso3:"THA"},{capital:"Dili",iso2:"tl",continent:"Asia",flag_1x1:"flags/1x1/tl.svg",flag_4x3:"flags/4x3/tl.svg",iso:true,name:"Timor-Leste",country:"670",iso3:"TLS"},{capital:"Lomé",iso2:"tg",continent:"Africa",flag_1x1:"flags/1x1/tg.svg",flag_4x3:"flags/4x3/tg.svg",iso:true,name:"Togo",country:"228",iso3:"TGO"},{capital:"Nukunonu, Atafu,Tokelau",iso2:"tk",continent:"Oceania",flag_1x1:"flags/1x1/tk.svg",flag_4x3:"flags/4x3/tk.svg",iso:true,name:"Tokelau",country:"690",iso3:"TKL"},{capital:"Nukuʻalofa",iso2:"to",continent:"Oceania",flag_1x1:"flags/1x1/to.svg",flag_4x3:"flags/4x3/to.svg",iso:true,name:"Tonga",country:"676",iso3:"TON"},{capital:"Port of Spain",iso2:"tt",continent:"South America",flag_1x1:"flags/1x1/tt.svg",flag_4x3:"flags/4x3/tt.svg",iso:true,name:"Trinidad and Tobago",country:"1-868",iso3:"TTO"},{capital:"Tunis",iso2:"tn",continent:"Africa",flag_1x1:"flags/1x1/tn.svg",flag_4x3:"flags/4x3/tn.svg",iso:true,name:"Tunisia",country:"216",iso3:"TUN"},{capital:"Ashgabat",iso2:"tm",continent:"Asia",flag_1x1:"flags/1x1/tm.svg",flag_4x3:"flags/4x3/tm.svg",iso:true,name:"Turkmenistan",country:"993",iso3:"TKM"},{capital:"Cockburn Town",iso2:"tc",continent:"North America",flag_1x1:"flags/1x1/tc.svg",flag_4x3:"flags/4x3/tc.svg",iso:true,name:"Turks and Caicos Islands",country:"1-649",iso3:"TCA"},{capital:"Funafuti",iso2:"tv",continent:"Oceania",flag_1x1:"flags/1x1/tv.svg",flag_4x3:"flags/4x3/tv.svg",iso:true,name:"Tuvalu",country:"688",iso3:"TUV"},{capital:"Ankara",iso2:"tr",continent:"Asia",flag_1x1:"flags/1x1/tr.svg",flag_4x3:"flags/4x3/tr.svg",iso:true,name:"Türkiye",country:"90",iso3:"TUR"},{capital:"Kampala",iso2:"ug",continent:"Africa",flag_1x1:"flags/1x1/ug.svg",flag_4x3:"flags/4x3/ug.svg",iso:true,name:"Uganda",country:"256",iso3:"UGA"},{capital:"Kiev",iso2:"ua",continent:"Europe",flag_1x1:"flags/1x1/ua.svg",flag_4x3:"flags/4x3/ua.svg",iso:true,name:"Ukraine",country:"380",iso3:"UKR"},{capital:"Abu Dhabi",iso2:"ae",continent:"Asia",flag_1x1:"flags/1x1/ae.svg",flag_4x3:"flags/4x3/ae.svg",iso:true,name:"United Arab Emirates",country:"971",iso3:"ARE"},{capital:"London",iso2:"gb",continent:"Europe",flag_1x1:"flags/1x1/gb.svg",flag_4x3:"flags/4x3/gb.svg",iso:true,name:"United Kingdom",country:"44",iso3:"ENG"},{capital:"Washington, D.C.",iso2:"us",continent:"North America",flag_1x1:"flags/1x1/us.svg",flag_4x3:"flags/4x3/us.svg",iso:true,name:"United States",country:"1",iso3:"USA"},{capital:"Montevideo",iso2:"uy",continent:"South America",flag_1x1:"flags/1x1/uy.svg",flag_4x3:"flags/4x3/uy.svg",iso:true,name:"Uruguay",country:"598",iso3:"URY"},{capital:"Tashkent",iso2:"uz",continent:"Asia",flag_1x1:"flags/1x1/uz.svg",flag_4x3:"flags/4x3/uz.svg",iso:true,name:"Uzbekistan",country:"998",iso3:"UZB"},{capital:"Port Vila",iso2:"vu",continent:"Oceania",flag_1x1:"flags/1x1/vu.svg",flag_4x3:"flags/4x3/vu.svg",iso:true,name:"Vanuatu",country:"678",iso3:"VUT"},{capital:"Caracas",iso2:"ve",continent:"South America",flag_1x1:"flags/1x1/ve.svg",flag_4x3:"flags/4x3/ve.svg",iso:true,name:"Venezuela",country:"58",iso3:"VEN"},{capital:"Hanoi",iso2:"vn",continent:"Asia",flag_1x1:"flags/1x1/vn.svg",flag_4x3:"flags/4x3/vn.svg",iso:true,name:"Vietnam",country:"84",iso3:"VNM"},{capital:"Road Town",iso2:"vg",continent:"North America",flag_1x1:"flags/1x1/vg.svg",flag_4x3:"flags/4x3/vg.svg",iso:true,name:"Virgin Islands (British)",country:"1-284",iso3:"VGB"},{capital:"Charlotte Amalie",iso2:"vi",continent:"North America",flag_1x1:"flags/1x1/vi.svg",flag_4x3:"flags/4x3/vi.svg",iso:true,name:"Virgin Islands (U.S.)",country:"1-340",iso3:"VIR"},{capital:"Mata-Utu",iso2:"wf",continent:"Oceania",flag_1x1:"flags/1x1/wf.svg",flag_4x3:"flags/4x3/wf.svg",iso:true,name:"Wallis and Futuna",country:"681",iso3:"WLF"},{capital:"Laayoune",iso2:"eh",continent:"Africa",flag_1x1:"flags/1x1/eh.svg",flag_4x3:"flags/4x3/eh.svg",iso:true,name:"Western Sahara",country:"212",iso3:"ESH"},{capital:"Sana'a",iso2:"ye",continent:"Asia",flag_1x1:"flags/1x1/ye.svg",flag_4x3:"flags/4x3/ye.svg",iso:true,name:"Yemen",country:"967",iso3:"YEM"},{capital:"Lusaka",iso2:"zm",continent:"Africa",flag_1x1:"flags/1x1/zm.svg",flag_4x3:"flags/4x3/zm.svg",iso:true,name:"Zambia",country:"260",iso3:"ZMB"},{capital:"Harare",iso2:"zw",continent:"Africa",flag_1x1:"flags/1x1/zw.svg",flag_4x3:"flags/4x3/zw.svg",iso:true,name:"Zimbabwe",country:"263",iso3:"ZWE"}];var GLOBAL={capital:"Global",iso2:"global",continent:"",flag_1x1:"",flag_4x3:"",iso:true,name:"Global",country:"00",iso3:"GLOBAL"};var FLAG_BASE_URL="./constants/flags/4x3/";function getNameFlag(a,s,i,n,t,o,g,l,e){var r=o===true||o==="true";var f=g===true||g==="true";var c=l===true||l==="true";var x=t==="iso3"?a:s;var u=i;var v=x.toLocaleUpperCase();var m="";switch(true){case f&&c&&r&&e===AlignFlag.RIGHT:m="(+".concat(n,") ").concat(v);break;case f&&c&&r:m="".concat(v," (+").concat(n,")");break;case f&&!c&&r:m="".concat(v);break;case r&&c&&e===AlignFlag.RIGHT:m="(+".concat(n,") ").concat(u);break;case r&&c:m="".concat(u," (+").concat(n,")");break;case r||!f&&r:m="".concat(u);break;case!r&&!c:m="";break;case!r&&c:m="(+".concat(n,")");break}return m.trim()}var bdsFlagCss=function(){return'@charset "UTF-8";.bds-flag{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;gap:var(--boreal-spacing-2xs);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.bds-flag--reverse{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.bds-flag__country{font-family:var(--boreal-typography-font-family-primary);color:var(--boreal-text-default-light);font-size:var(--boreal-typography-font-size-sm);font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-sm)}.bds-flag__flag--global{background-image:none;background-color:var(--boreal-ui-base-light)}.bds-flag__flag--country{background-size:cover;background-position:center;background-repeat:no-repeat;-ms-flex-negative:0;flex-shrink:0}.bds-flag__flag--rectangle{width:var(--boreal-layout-ml);height:var(--boreal-layout-m);border-radius:var(--boreal-radius-xs2)}.bds-flag__flag--square{width:var(--boreal-layout-m);height:var(--boreal-layout-m);border-radius:var(--boreal-radius-xs2)}.bds-flag__flag--circle{width:var(--boreal-layout-m);height:var(--boreal-layout-m);border-radius:var(--boreal-radius-full)}'};var BdsFlag=function(){function a(a){registerInstance(this,a);this.alignFlag=AlignFlag.LEFT;this.callSign=false;this.country="";this.customFlags=[];this.identifier=FlagIdentifier.CODE;this.label=false;this.shape=Shape.RECTANGLE;this.shortName=false}a.prototype.checkPropValues=function(){validatePropValue(Object.values(AlignFlag),AlignFlag.LEFT,this.el,"alignFlag");validatePropValue(Object.values(FlagIdentifier),FlagIdentifier.CODE,this.el,"identifier");validatePropValue(Object.values(Shape),Shape.RECTANGLE,this.el,"shape")};a.prototype.componentWillLoad=function(){this.checkPropValues()};a.prototype.flagUrl=function(a){var s;var i=(s=this.customFlags)===null||s===void 0?void 0:s.find((function(s){return s.iso2.toLowerCase()===a}));if((i===null||i===void 0?void 0:i.flag_4x3)!==undefined)return i.flag_4x3;if(FLAG_BASE_URL.startsWith("http")){return"".concat(FLAG_BASE_URL).concat(a,".svg")}return"".concat(window.location.origin).concat(getAssetPath("".concat(FLAG_BASE_URL).concat(a,".svg")))};a.prototype.getCountry=function(){var a=__spreadArray(__spreadArray(__spreadArray([],allCountries,true),this.customFlags,true),[GLOBAL],false);var s=this.identifier===FlagIdentifier.CODE?"country":this.identifier;var i=this.identifier===FlagIdentifier.ISO3?this.country.toUpperCase():this.country.toLowerCase();var n=a.find((function(a){return a[s]===i}));return n||{country:"",iso2:"",iso3:"",name:""}};a.prototype.getCountryName=function(){var a=this.getCountry(),s=a.iso3,i=a.name,n=a.country,t=a.iso2;var o=this.getNameInternal(s,t,i,n);return o};a.prototype.getFlag=function(){var a=this.getCountry().iso2;return a.toLowerCase()};a.prototype.getNameInternal=function(a,s,i,n){return getNameFlag(a,s,i,n,this.identifier,this.label,this.shortName,this.callSign,this.alignFlag)};Object.defineProperty(a.prototype,"isGlobal",{get:function(){return this.getFlag()==="global"},enumerable:false,configurable:true});Object.defineProperty(a.prototype,"flagClass",{get:function(){return{"bds-flag":true,"bds-flag--reverse":this.alignFlag===AlignFlag.RIGHT}},enumerable:false,configurable:true});Object.defineProperty(a.prototype,"flagContentClass",{get:function(){var a;return a={"bds-flag__flag--country":true},a["bds-flag__flag--".concat(this.shape)]=true,a["bds-flag__flag--global"]=this.isGlobal,a},enumerable:false,configurable:true});a.prototype.render=function(){var a=this.getFlag();var s=this.getCountryName();var i=this.flagContentClass;var n=this.flagClass;var t=!this.isGlobal?{backgroundImage:"url(".concat(this.flagUrl(a),")")}:{};return h(Host,{key:"a3d7548922ce9ad6bd67bdc906e0cd3590a76a35",class:n,"aria-label":s,role:"img"},a&&h("span",{key:"44299f5031e4adb04837eabefa37f70f7dc8a9b8",class:i,style:t,"aria-hidden":"true"}),h("span",{key:"ce37d02816caf7bfc7fa22f1897de481a8d82bbb",class:"bds-flag__country","aria-hidden":"true"},s))};Object.defineProperty(a,"assetsDirs",{get:function(){return["./constants"]},enumerable:false,configurable:true});Object.defineProperty(a.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(a,"watchers",{get:function(){return{alignFlag:[{checkPropValues:0}],identifier:[{checkPropValues:0}],shape:[{checkPropValues:0}]}},enumerable:false,configurable:true});return a}();BdsFlag.style=bdsFlagCss();export{BdsFlag as bds_flag};
|
|
1
|
+
var __spreadArray=this&&this.__spreadArray||function(a,s,i){if(i||arguments.length===2)for(var n=0,t=s.length,o;n<t;n++){if(o||!(n in s)){if(!o)o=Array.prototype.slice.call(s,0,n);o[n]=s[n]}}return a.concat(o||Array.prototype.slice.call(s))};import{r as registerInstance,d as getAssetPath,h,a as Host,g as getElement}from"./index-BqJlOB6b.js";import{v as validatePropValue}from"./validateProps-kGnB15Lz.js";var FlagIdentifier={ISO2:"iso2",ISO3:"iso3",CODE:"code"};var AlignFlag={LEFT:"left",RIGHT:"right"};var Shape={CIRCLE:"circle",SQUARE:"square",RECTANGLE:"rectangle"};var allCountries=[{capital:"Kabul",iso2:"af",continent:"Asia",flag_1x1:"flags/1x1/af.svg",flag_4x3:"flags/4x3/af.svg",iso:true,name:"Afghanistan",country:"93",iso3:"AFG"},{capital:"Mariehamn",iso2:"ax",continent:"Europe",flag_1x1:"flags/1x1/ax.svg",flag_4x3:"flags/4x3/ax.svg",iso:true,name:"Aland Islands",country:"358-18",iso3:"ALA"},{capital:"Tirana",iso2:"al",continent:"Europe",flag_1x1:"flags/1x1/al.svg",flag_4x3:"flags/4x3/al.svg",iso:true,name:"Albania",country:"355",iso3:"ALB"},{capital:"Algiers",iso2:"dz",continent:"Africa",flag_1x1:"flags/1x1/dz.svg",flag_4x3:"flags/4x3/dz.svg",iso:true,name:"Algeria",country:"213",iso3:"DZA"},{capital:"Pago Pago",iso2:"as",continent:"Oceania",flag_1x1:"flags/1x1/as.svg",flag_4x3:"flags/4x3/as.svg",iso:true,name:"American Samoa",country:"1-684",iso3:"ASM"},{capital:"Andorra la Vella",iso2:"ad",continent:"Europe",flag_1x1:"flags/1x1/ad.svg",flag_4x3:"flags/4x3/ad.svg",iso:true,name:"Andorra",country:"376",iso3:"AND"},{capital:"Luanda",iso2:"ao",continent:"Africa",flag_1x1:"flags/1x1/ao.svg",flag_4x3:"flags/4x3/ao.svg",iso:true,name:"Angola",country:"244",iso3:"AGO"},{capital:"The Valley",iso2:"ai",continent:"North America",flag_1x1:"flags/1x1/ai.svg",flag_4x3:"flags/4x3/ai.svg",iso:true,name:"Anguilla",country:"1-264",iso3:"AIA"},{capital:"St. John's",iso2:"ag",continent:"North America",flag_1x1:"flags/1x1/ag.svg",flag_4x3:"flags/4x3/ag.svg",iso:true,name:"Antigua and Barbuda",country:"1-268",iso3:"ATG"},{capital:"Buenos Aires",iso2:"ar",continent:"South America",flag_1x1:"flags/1x1/ar.svg",flag_4x3:"flags/4x3/ar.svg",iso:true,name:"Argentina",country:"54",iso3:"ARG"},{capital:"Yerevan",iso2:"am",continent:"Asia",flag_1x1:"flags/1x1/am.svg",flag_4x3:"flags/4x3/am.svg",iso:true,name:"Armenia",country:"374",iso3:"ARM"},{capital:"Oranjestad",iso2:"aw",continent:"South America",flag_1x1:"flags/1x1/aw.svg",flag_4x3:"flags/4x3/aw.svg",iso:true,name:"Aruba",country:"297",iso3:"ABW"},{capital:"Canberra",iso2:"au",continent:"Oceania",flag_1x1:"flags/1x1/au.svg",flag_4x3:"flags/4x3/au.svg",iso:true,name:"Australia",country:"61",iso3:"AUS"},{capital:"Vienna",iso2:"at",continent:"Europe",flag_1x1:"flags/1x1/at.svg",flag_4x3:"flags/4x3/at.svg",iso:true,name:"Austria",country:"43",iso3:"AUT"},{capital:"Baku",iso2:"az",continent:"Asia",flag_1x1:"flags/1x1/az.svg",flag_4x3:"flags/4x3/az.svg",iso:true,name:"Azerbaijan",country:"994",iso3:"AZE"},{capital:"Nassau",iso2:"bs",continent:"North America",flag_1x1:"flags/1x1/bs.svg",flag_4x3:"flags/4x3/bs.svg",iso:true,name:"Bahamas",country:"1-242",iso3:"BHS"},{capital:"Manama",iso2:"bh",continent:"Asia",flag_1x1:"flags/1x1/bh.svg",flag_4x3:"flags/4x3/bh.svg",iso:true,name:"Bahrain",country:"973",iso3:"BHR"},{capital:"Dhaka",iso2:"bd",continent:"Asia",flag_1x1:"flags/1x1/bd.svg",flag_4x3:"flags/4x3/bd.svg",iso:true,name:"Bangladesh",country:"880",iso3:"BGD"},{capital:"Bridgetown",iso2:"bb",continent:"North America",flag_1x1:"flags/1x1/bb.svg",flag_4x3:"flags/4x3/bb.svg",iso:true,name:"Barbados",country:"1-246",iso3:"BRB"},{capital:"Minsk",iso2:"by",continent:"Europe",flag_1x1:"flags/1x1/by.svg",flag_4x3:"flags/4x3/by.svg",iso:true,name:"Belarus",country:"375",iso3:"BLR"},{capital:"Brussels",iso2:"be",continent:"Europe",flag_1x1:"flags/1x1/be.svg",flag_4x3:"flags/4x3/be.svg",iso:true,name:"Belgium",country:"32",iso3:"BEL"},{capital:"Belmopan",iso2:"bz",continent:"North America",flag_1x1:"flags/1x1/bz.svg",flag_4x3:"flags/4x3/bz.svg",iso:true,name:"Belize",country:"501",iso3:"BLZ"},{capital:"Porto-Novo",iso2:"bj",continent:"Africa",flag_1x1:"flags/1x1/bj.svg",flag_4x3:"flags/4x3/bj.svg",iso:true,name:"Benin",country:"229",iso3:"BEN"},{capital:"Hamilton",iso2:"bm",continent:"North America",flag_1x1:"flags/1x1/bm.svg",flag_4x3:"flags/4x3/bm.svg",iso:true,name:"Bermuda",country:"1-441",iso3:"BMU"},{capital:"Thimphu",iso2:"bt",continent:"Asia",flag_1x1:"flags/1x1/bt.svg",flag_4x3:"flags/4x3/bt.svg",iso:true,name:"Bhutan",country:"975",iso3:"BTN"},{capital:"Sucre",iso2:"bo",continent:"South America",flag_1x1:"flags/1x1/bo.svg",flag_4x3:"flags/4x3/bo.svg",iso:true,name:"Bolivia",country:"591",iso3:"BOL"},{capital:"Kralendijk",iso2:"bq",continent:"South America",flag_1x1:"flags/1x1/bq.svg",flag_4x3:"flags/4x3/bq.svg",iso:true,name:"Bonaire, Sint Eustatius and Saba",country:"599",iso3:"BES"},{capital:"Sarajevo",iso2:"ba",continent:"Europe",flag_1x1:"flags/1x1/ba.svg",flag_4x3:"flags/4x3/ba.svg",iso:true,name:"Bosnia and Herzegovina",country:"387",iso3:"BIH"},{capital:"Gaborone",iso2:"bw",continent:"Africa",flag_1x1:"flags/1x1/bw.svg",flag_4x3:"flags/4x3/bw.svg",iso:true,name:"Botswana",country:"267",iso3:"BWA"},{capital:"Brasília",iso2:"br",continent:"South America",flag_1x1:"flags/1x1/br.svg",flag_4x3:"flags/4x3/br.svg",iso:true,name:"Brazil",country:"55",iso3:"BRA"},{capital:"Diego Garcia",iso2:"io",continent:"Asia",flag_1x1:"flags/1x1/io.svg",flag_4x3:"flags/4x3/io.svg",iso:true,name:"British Indian Ocean Territory",country:"246",iso3:"IOT"},{capital:"Bandar Seri Begawan",iso2:"bn",continent:"Asia",flag_1x1:"flags/1x1/bn.svg",flag_4x3:"flags/4x3/bn.svg",iso:true,name:"Brunei Darussalam",country:"673",iso3:"BRN"},{capital:"Sofia",iso2:"bg",continent:"Europe",flag_1x1:"flags/1x1/bg.svg",flag_4x3:"flags/4x3/bg.svg",iso:true,name:"Bulgaria",country:"359",iso3:"BGR"},{capital:"Ouagadougou",iso2:"bf",continent:"Africa",flag_1x1:"flags/1x1/bf.svg",flag_4x3:"flags/4x3/bf.svg",iso:true,name:"Burkina Faso",country:"226",iso3:"BFA"},{capital:"Bujumbura",iso2:"bi",continent:"Africa",flag_1x1:"flags/1x1/bi.svg",flag_4x3:"flags/4x3/bi.svg",iso:true,name:"Burundi",country:"257",iso3:"BDI"},{capital:"Praia",iso2:"cv",continent:"Africa",flag_1x1:"flags/1x1/cv.svg",flag_4x3:"flags/4x3/cv.svg",iso:true,name:"Cabo Verde",country:"238",iso3:"CPV"},{capital:"Phnom Penh",iso2:"kh",continent:"Asia",flag_1x1:"flags/1x1/kh.svg",flag_4x3:"flags/4x3/kh.svg",iso:true,name:"Cambodia",country:"855",iso3:"KHM"},{capital:"Yaoundé",iso2:"cm",continent:"Africa",flag_1x1:"flags/1x1/cm.svg",flag_4x3:"flags/4x3/cm.svg",iso:true,name:"Cameroon",country:"237",iso3:"CMR"},{capital:"George Town",iso2:"ky",continent:"North America",flag_1x1:"flags/1x1/ky.svg",flag_4x3:"flags/4x3/ky.svg",iso:true,name:"Cayman Islands",country:"1-345",iso3:"CYM"},{capital:"Bangui",iso2:"cf",continent:"Africa",flag_1x1:"flags/1x1/cf.svg",flag_4x3:"flags/4x3/cf.svg",iso:true,name:"Central African Republic",country:"236",iso3:"CAF"},{capital:"N'Djamena",iso2:"td",continent:"Africa",flag_1x1:"flags/1x1/td.svg",flag_4x3:"flags/4x3/td.svg",iso:true,name:"Chad",country:"235",iso3:"TCD"},{capital:"Santiago",iso2:"cl",continent:"South America",flag_1x1:"flags/1x1/cl.svg",flag_4x3:"flags/4x3/cl.svg",iso:true,name:"Chile",country:"56",iso3:"CHL"},{capital:"Beijing",iso2:"cn",continent:"Asia",flag_1x1:"flags/1x1/cn.svg",flag_4x3:"flags/4x3/cn.svg",iso:true,name:"China",country:"86",iso3:"CHN"},{capital:"Flying Fish Cove",iso2:"cx",continent:"Asia",flag_1x1:"flags/1x1/cx.svg",flag_4x3:"flags/4x3/cx.svg",iso:true,name:"Christmas Island",country:"61",iso3:"CXR"},{capital:"West Island",iso2:"cc",continent:"Asia",flag_1x1:"flags/1x1/cc.svg",flag_4x3:"flags/4x3/cc.svg",iso:true,name:"Cocos (Keeling) Islands",country:"61",iso3:"CCK"},{capital:"Bogotá",iso2:"co",continent:"South America",flag_1x1:"flags/1x1/co.svg",flag_4x3:"flags/4x3/co.svg",iso:true,name:"Colombia",country:"57",iso3:"COL"},{capital:"Moroni",iso2:"km",continent:"Africa",flag_1x1:"flags/1x1/km.svg",flag_4x3:"flags/4x3/km.svg",iso:true,name:"Comoros",country:"269",iso3:"COM"},{capital:"Avarua",iso2:"ck",continent:"Oceania",flag_1x1:"flags/1x1/ck.svg",flag_4x3:"flags/4x3/ck.svg",iso:true,name:"Cook Islands",country:"682",iso3:"COK"},{capital:"San José",iso2:"cr",continent:"North America",flag_1x1:"flags/1x1/cr.svg",flag_4x3:"flags/4x3/cr.svg",iso:true,name:"Costa Rica",country:"506",iso3:"CRI"},{capital:"Zagreb",iso2:"hr",continent:"Europe",flag_1x1:"flags/1x1/hr.svg",flag_4x3:"flags/4x3/hr.svg",iso:true,name:"Croatia",country:"385",iso3:"HRV"},{capital:"Havana",iso2:"cu",continent:"North America",flag_1x1:"flags/1x1/cu.svg",flag_4x3:"flags/4x3/cu.svg",iso:true,name:"Cuba",country:"53",iso3:"CUB"},{capital:"Willemstad",iso2:"cw",continent:"South America",flag_1x1:"flags/1x1/cw.svg",flag_4x3:"flags/4x3/cw.svg",iso:true,name:"Curaçao",country:"599",iso3:"CUW"},{capital:"Nicosia",iso2:"cy",continent:"Europe",flag_1x1:"flags/1x1/cy.svg",flag_4x3:"flags/4x3/cy.svg",iso:true,name:"Cyprus",country:"357",iso3:"CYP"},{capital:"Prague",iso2:"cz",continent:"Europe",flag_1x1:"flags/1x1/cz.svg",flag_4x3:"flags/4x3/cz.svg",iso:true,name:"Czech Republic",country:"420",iso3:"CZE"},{capital:"Yamoussoukro",iso2:"ci",continent:"Africa",flag_1x1:"flags/1x1/ci.svg",flag_4x3:"flags/4x3/ci.svg",iso:true,name:"Côte d'Ivoire",country:"225",iso3:"CIV"},{capital:"Kinshasa",iso2:"cd",continent:"Africa",flag_1x1:"flags/1x1/cd.svg",flag_4x3:"flags/4x3/cd.svg",iso:true,name:"Democratic Republic of the Congo",country:"243",iso3:"COD"},{capital:"Copenhagen",iso2:"dk",continent:"Europe",flag_1x1:"flags/1x1/dk.svg",flag_4x3:"flags/4x3/dk.svg",iso:true,name:"Denmark",country:"45",iso3:"DNK"},{capital:"Djibouti",iso2:"dj",continent:"Africa",flag_1x1:"flags/1x1/dj.svg",flag_4x3:"flags/4x3/dj.svg",iso:true,name:"Djibouti",country:"253",iso3:"DJI"},{capital:"Roseau",iso2:"dm",continent:"North America",flag_1x1:"flags/1x1/dm.svg",flag_4x3:"flags/4x3/dm.svg",iso:true,name:"Dominica",country:"1-767",iso3:"DMA"},{capital:"Santo Domingo",iso2:"do",continent:"North America",flag_1x1:"flags/1x1/do.svg",flag_4x3:"flags/4x3/do.svg",iso:true,name:"Dominican Republic",country:"1-809",iso3:"DOM"},{capital:"Quito",iso2:"ec",continent:"South America",flag_1x1:"flags/1x1/ec.svg",flag_4x3:"flags/4x3/ec.svg",iso:true,name:"Ecuador",country:"593",iso3:"ECU"},{capital:"Cairo",iso2:"eg",continent:"Africa",flag_1x1:"flags/1x1/eg.svg",flag_4x3:"flags/4x3/eg.svg",iso:true,name:"Egypt",country:"20",iso3:"EGY"},{capital:"San Salvador",iso2:"sv",continent:"North America",flag_1x1:"flags/1x1/sv.svg",flag_4x3:"flags/4x3/sv.svg",iso:true,name:"El Salvador",country:"503",iso3:"SLV"},{capital:"Malabo",iso2:"gq",continent:"Africa",flag_1x1:"flags/1x1/gq.svg",flag_4x3:"flags/4x3/gq.svg",iso:true,name:"Equatorial Guinea",country:"240",iso3:"GNQ"},{capital:"Asmara",iso2:"er",continent:"Africa",flag_1x1:"flags/1x1/er.svg",flag_4x3:"flags/4x3/er.svg",iso:true,name:"Eritrea",country:"291",iso3:"ERI"},{capital:"Tallinn",iso2:"ee",continent:"Europe",flag_1x1:"flags/1x1/ee.svg",flag_4x3:"flags/4x3/ee.svg",iso:true,name:"Estonia",country:"372",iso3:"EST"},{capital:"Lobamba, Mbabane",iso2:"sz",continent:"Africa",flag_1x1:"flags/1x1/sz.svg",flag_4x3:"flags/4x3/sz.svg",iso:true,name:"Eswatini",country:"268",iso3:"SWZ"},{capital:"Addis Ababa",iso2:"et",continent:"Africa",flag_1x1:"flags/1x1/et.svg",flag_4x3:"flags/4x3/et.svg",iso:true,name:"Ethiopia",country:"251",iso3:"ETH"},{capital:"Stanley",iso2:"fk",continent:"South America",flag_1x1:"flags/1x1/fk.svg",flag_4x3:"flags/4x3/fk.svg",iso:true,name:"Falkland Islands",country:"500",iso3:"FLK"},{capital:"Tórshavn",iso2:"fo",continent:"Europe",flag_1x1:"flags/1x1/fo.svg",flag_4x3:"flags/4x3/fo.svg",iso:true,name:"Faroe Islands",country:"298",iso3:"FRO"},{capital:"Palikir",iso2:"fm",continent:"Oceania",flag_1x1:"flags/1x1/fm.svg",flag_4x3:"flags/4x3/fm.svg",iso:true,name:"Federated States of Micronesia",country:"691",iso3:"FSM"},{capital:"Suva",iso2:"fj",continent:"Oceania",flag_1x1:"flags/1x1/fj.svg",flag_4x3:"flags/4x3/fj.svg",iso:true,name:"Fiji",country:"679",iso3:"FJI"},{capital:"Helsinki",iso2:"fi",continent:"Europe",flag_1x1:"flags/1x1/fi.svg",flag_4x3:"flags/4x3/fi.svg",iso:true,name:"Finland",country:"358",iso3:"FIN"},{capital:"Paris",iso2:"fr",continent:"Europe",flag_1x1:"flags/1x1/fr.svg",flag_4x3:"flags/4x3/fr.svg",iso:true,name:"France",country:"33",iso3:"FRA"},{capital:"Cayenne",iso2:"gf",continent:"South America",flag_1x1:"flags/1x1/gf.svg",flag_4x3:"flags/4x3/gf.svg",iso:true,name:"French Guiana",country:"594",iso3:"GUF"},{capital:"Papeete",iso2:"pf",continent:"Oceania",flag_1x1:"flags/1x1/pf.svg",flag_4x3:"flags/4x3/pf.svg",iso:true,name:"French Polynesia",country:"689",iso3:"PYF"},{capital:"Libreville",iso2:"ga",continent:"Africa",flag_1x1:"flags/1x1/ga.svg",flag_4x3:"flags/4x3/ga.svg",iso:true,name:"Gabon",country:"241",iso3:"GAB"},{capital:"Banjul",iso2:"gm",continent:"Africa",flag_1x1:"flags/1x1/gm.svg",flag_4x3:"flags/4x3/gm.svg",iso:true,name:"Gambia",country:"220",iso3:"GMB"},{capital:"Tbilisi",iso2:"ge",continent:"Asia",flag_1x1:"flags/1x1/ge.svg",flag_4x3:"flags/4x3/ge.svg",iso:true,name:"Georgia",country:"995",iso3:"GEO"},{capital:"Berlin",iso2:"de",continent:"Europe",flag_1x1:"flags/1x1/de.svg",flag_4x3:"flags/4x3/de.svg",iso:true,name:"Germany",country:"49",iso3:"DEU"},{capital:"Accra",iso2:"gh",continent:"Africa",flag_1x1:"flags/1x1/gh.svg",flag_4x3:"flags/4x3/gh.svg",iso:true,name:"Ghana",country:"233",iso3:"GHA"},{capital:"Gibraltar",iso2:"gi",continent:"Europe",flag_1x1:"flags/1x1/gi.svg",flag_4x3:"flags/4x3/gi.svg",iso:true,name:"Gibraltar",country:"350",iso3:"GIB"},{capital:"Athens",iso2:"gr",continent:"Europe",flag_1x1:"flags/1x1/gr.svg",flag_4x3:"flags/4x3/gr.svg",iso:true,name:"Greece",country:"30",iso3:"GRC"},{capital:"Nuuk",iso2:"gl",continent:"North America",flag_1x1:"flags/1x1/gl.svg",flag_4x3:"flags/4x3/gl.svg",iso:true,name:"Greenland",country:"299",iso3:"GRL"},{capital:"St. George's",iso2:"gd",continent:"North America",flag_1x1:"flags/1x1/gd.svg",flag_4x3:"flags/4x3/gd.svg",iso:true,name:"Grenada",country:"1-473",iso3:"GRD"},{capital:"Basse-Terre",iso2:"gp",continent:"North America",flag_1x1:"flags/1x1/gp.svg",flag_4x3:"flags/4x3/gp.svg",iso:true,name:"Guadeloupe",country:"590",iso3:"GLP"},{capital:"Hagåtña",iso2:"gu",continent:"Oceania",flag_1x1:"flags/1x1/gu.svg",flag_4x3:"flags/4x3/gu.svg",iso:true,name:"Guam",country:"1-671",iso3:"GUM"},{capital:"Guatemala City",iso2:"gt",continent:"North America",flag_1x1:"flags/1x1/gt.svg",flag_4x3:"flags/4x3/gt.svg",iso:true,name:"Guatemala",country:"502",iso3:"GTM"},{capital:"Saint Peter Port",iso2:"gg",continent:"Europe",flag_1x1:"flags/1x1/gg.svg",flag_4x3:"flags/4x3/gg.svg",iso:true,name:"Guernsey",country:"44-1481",iso3:"GGY"},{capital:"Conakry",iso2:"gn",continent:"Africa",flag_1x1:"flags/1x1/gn.svg",flag_4x3:"flags/4x3/gn.svg",iso:true,name:"Guinea",country:"224",iso3:"GIN"},{capital:"Bissau",iso2:"gw",continent:"Africa",flag_1x1:"flags/1x1/gw.svg",flag_4x3:"flags/4x3/gw.svg",iso:true,name:"Guinea-Bissau",country:"245",iso3:"GNB"},{capital:"Georgetown",iso2:"gy",continent:"South America",flag_1x1:"flags/1x1/gy.svg",flag_4x3:"flags/4x3/gy.svg",iso:true,name:"Guyana",country:"592",iso3:"GUY"},{capital:"Port-au-Prince",iso2:"ht",continent:"North America",flag_1x1:"flags/1x1/ht.svg",flag_4x3:"flags/4x3/ht.svg",iso:true,name:"Haiti",country:"509",iso3:"HTI"},{iso2:"hm",flag_1x1:"flags/1x1/hm.svg",flag_4x3:"flags/4x3/hm.svg",iso:true,name:"Heard Island and McDonald Islands",country:" ",iso3:"HMD"},{capital:"Vatican City",iso2:"va",continent:"Europe",flag_1x1:"flags/1x1/va.svg",flag_4x3:"flags/4x3/va.svg",iso:true,name:"Holy See",country:"379",iso3:"VAT"},{capital:"Tegucigalpa",iso2:"hn",continent:"North America",flag_1x1:"flags/1x1/hn.svg",flag_4x3:"flags/4x3/hn.svg",iso:true,name:"Honduras",country:"504",iso3:"HND"},{capital:"Hong Kong",iso2:"hk",continent:"Asia",flag_1x1:"flags/1x1/hk.svg",flag_4x3:"flags/4x3/hk.svg",iso:true,name:"Hong Kong",country:"852",iso3:"HKG"},{capital:"Budapest",iso2:"hu",continent:"Europe",flag_1x1:"flags/1x1/hu.svg",flag_4x3:"flags/4x3/hu.svg",iso:true,name:"Hungary",country:"36",iso3:"HUN"},{capital:"Reykjavik",iso2:"is",continent:"Europe",flag_1x1:"flags/1x1/is.svg",flag_4x3:"flags/4x3/is.svg",iso:true,name:"Iceland",country:"354",iso3:"ISL"},{capital:"New Delhi",iso2:"in",continent:"Asia",flag_1x1:"flags/1x1/in.svg",flag_4x3:"flags/4x3/in.svg",iso:true,name:"India",country:"91",iso3:"IND"},{capital:"Jakarta",iso2:"id",continent:"Asia",flag_1x1:"flags/1x1/id.svg",flag_4x3:"flags/4x3/id.svg",iso:true,name:"Indonesia",country:"62",iso3:"IDN"},{capital:"Tehran",iso2:"ir",continent:"Asia",flag_1x1:"flags/1x1/ir.svg",flag_4x3:"flags/4x3/ir.svg",iso:true,name:"Iran",country:"98",iso3:"IRN"},{capital:"Baghdad",iso2:"iq",continent:"Asia",flag_1x1:"flags/1x1/iq.svg",flag_4x3:"flags/4x3/iq.svg",iso:true,name:"Iraq",country:"964",iso3:"IRQ"},{capital:"Dublin",iso2:"ie",continent:"Europe",flag_1x1:"flags/1x1/ie.svg",flag_4x3:"flags/4x3/ie.svg",iso:true,name:"Ireland",country:"353",iso3:"IRL"},{capital:"Douglas",iso2:"im",continent:"Europe",flag_1x1:"flags/1x1/im.svg",flag_4x3:"flags/4x3/im.svg",iso:true,name:"Isle of Man",country:"44-1624",iso3:"IMN"},{capital:"Jerusalem",iso2:"il",continent:"Asia",flag_1x1:"flags/1x1/il.svg",flag_4x3:"flags/4x3/il.svg",iso:true,name:"Israel",country:"972",iso3:"ISR"},{capital:"Rome",iso2:"it",continent:"Europe",flag_1x1:"flags/1x1/it.svg",flag_4x3:"flags/4x3/it.svg",iso:true,name:"Italy",country:"39",iso3:"ITA"},{capital:"Kingston",iso2:"jm",continent:"North America",flag_1x1:"flags/1x1/jm.svg",flag_4x3:"flags/4x3/jm.svg",iso:true,name:"Jamaica",country:"1-876",iso3:"JAM"},{capital:"Tokyo",iso2:"jp",continent:"Asia",flag_1x1:"flags/1x1/jp.svg",flag_4x3:"flags/4x3/jp.svg",iso:true,name:"Japan",country:"81",iso3:"JPN"},{capital:"Saint Helier",iso2:"je",continent:"Europe",flag_1x1:"flags/1x1/je.svg",flag_4x3:"flags/4x3/je.svg",iso:true,name:"Jersey",country:"44-1534",iso3:"JEY"},{capital:"Amman",iso2:"jo",continent:"Asia",flag_1x1:"flags/1x1/jo.svg",flag_4x3:"flags/4x3/jo.svg",iso:true,name:"Jordan",country:"962",iso3:"JOR"},{capital:"Astana",iso2:"kz",continent:"Asia",flag_1x1:"flags/1x1/kz.svg",flag_4x3:"flags/4x3/kz.svg",iso:true,name:"Kazakhstan",country:"7",iso3:"KAZ"},{capital:"Nairobi",iso2:"ke",continent:"Africa",flag_1x1:"flags/1x1/ke.svg",flag_4x3:"flags/4x3/ke.svg",iso:true,name:"Kenya",country:"254",iso3:"KEN"},{capital:"South Tarawa",iso2:"ki",continent:"Oceania",flag_1x1:"flags/1x1/ki.svg",flag_4x3:"flags/4x3/ki.svg",iso:true,name:"Kiribati",country:"686",iso3:"KIR"},{capital:"Kuwait City",iso2:"kw",continent:"Asia",flag_1x1:"flags/1x1/kw.svg",flag_4x3:"flags/4x3/kw.svg",iso:true,name:"Kuwait",country:"965",iso3:"KWT"},{capital:"Bishkek",iso2:"kg",continent:"Asia",flag_1x1:"flags/1x1/kg.svg",flag_4x3:"flags/4x3/kg.svg",iso:true,name:"Kyrgyzstan",country:"996",iso3:"KGZ"},{capital:"Vientiane",iso2:"la",continent:"Asia",flag_1x1:"flags/1x1/la.svg",flag_4x3:"flags/4x3/la.svg",iso:true,name:"Laos",country:"856",iso3:"LAO"},{capital:"Riga",iso2:"lv",continent:"Europe",flag_1x1:"flags/1x1/lv.svg",flag_4x3:"flags/4x3/lv.svg",iso:true,name:"Latvia",country:"371",iso3:"LVA"},{capital:"Beirut",iso2:"lb",continent:"Asia",flag_1x1:"flags/1x1/lb.svg",flag_4x3:"flags/4x3/lb.svg",iso:true,name:"Lebanon",country:"961",iso3:"LBN"},{capital:"Maseru",iso2:"ls",continent:"Africa",flag_1x1:"flags/1x1/ls.svg",flag_4x3:"flags/4x3/ls.svg",iso:true,name:"Lesotho",country:"266",iso3:"LSO"},{capital:"Monrovia",iso2:"lr",continent:"Africa",flag_1x1:"flags/1x1/lr.svg",flag_4x3:"flags/4x3/lr.svg",iso:true,name:"Liberia",country:"231",iso3:"LBR"},{capital:"Tripoli",iso2:"ly",continent:"Africa",flag_1x1:"flags/1x1/ly.svg",flag_4x3:"flags/4x3/ly.svg",iso:true,name:"Libya",country:"218",iso3:"LBY"},{capital:"Vaduz",iso2:"li",continent:"Europe",flag_1x1:"flags/1x1/li.svg",flag_4x3:"flags/4x3/li.svg",iso:true,name:"Liechtenstein",country:"423",iso3:"LIE"},{capital:"Vilnius",iso2:"lt",continent:"Europe",flag_1x1:"flags/1x1/lt.svg",flag_4x3:"flags/4x3/lt.svg",iso:true,name:"Lithuania",country:"370",iso3:"LTU"},{capital:"Luxembourg City",iso2:"lu",continent:"Europe",flag_1x1:"flags/1x1/lu.svg",flag_4x3:"flags/4x3/lu.svg",iso:true,name:"Luxembourg",country:"352",iso3:"LUX"},{capital:"Macau",iso2:"mo",continent:"Asia",flag_1x1:"flags/1x1/mo.svg",flag_4x3:"flags/4x3/mo.svg",iso:true,name:"Macau",country:"853",iso3:"MAC"},{capital:"Antananarivo",iso2:"mg",continent:"Africa",flag_1x1:"flags/1x1/mg.svg",flag_4x3:"flags/4x3/mg.svg",iso:true,name:"Madagascar",country:"261",iso3:"MDG"},{capital:"Lilongwe",iso2:"mw",continent:"Africa",flag_1x1:"flags/1x1/mw.svg",flag_4x3:"flags/4x3/mw.svg",iso:true,name:"Malawi",country:"265",iso3:"MWI"},{capital:"Kuala Lumpur",iso2:"my",continent:"Asia",flag_1x1:"flags/1x1/my.svg",flag_4x3:"flags/4x3/my.svg",iso:true,name:"Malaysia",country:"60",iso3:"MYS"},{capital:"Malé",iso2:"mv",continent:"Asia",flag_1x1:"flags/1x1/mv.svg",flag_4x3:"flags/4x3/mv.svg",iso:true,name:"Maldives",country:"960",iso3:"MDV"},{capital:"Bamako",iso2:"ml",continent:"Africa",flag_1x1:"flags/1x1/ml.svg",flag_4x3:"flags/4x3/ml.svg",iso:true,name:"Mali",country:"223",iso3:"MLI"},{capital:"Valletta",iso2:"mt",continent:"Europe",flag_1x1:"flags/1x1/mt.svg",flag_4x3:"flags/4x3/mt.svg",iso:true,name:"Malta",country:"356",iso3:"MLT"},{capital:"Majuro",iso2:"mh",continent:"Oceania",flag_1x1:"flags/1x1/mh.svg",flag_4x3:"flags/4x3/mh.svg",iso:true,name:"Marshall Islands",country:"692",iso3:"MHL"},{capital:"Fort-de-France",iso2:"mq",continent:"North America",flag_1x1:"flags/1x1/mq.svg",flag_4x3:"flags/4x3/mq.svg",iso:true,name:"Martinique",country:"596",iso3:"MTQ"},{capital:"Nouakchott",iso2:"mr",continent:"Africa",flag_1x1:"flags/1x1/mr.svg",flag_4x3:"flags/4x3/mr.svg",iso:true,name:"Mauritania",country:"222",iso3:"MRT"},{capital:"Port Louis",iso2:"mu",continent:"Africa",flag_1x1:"flags/1x1/mu.svg",flag_4x3:"flags/4x3/mu.svg",iso:true,name:"Mauritius",country:"230",iso3:"MUS"},{capital:"Mamoudzou",iso2:"yt",continent:"Africa",flag_1x1:"flags/1x1/yt.svg",flag_4x3:"flags/4x3/yt.svg",iso:true,name:"Mayotte",country:"262",iso3:"MYT"},{capital:"Mexico City",iso2:"mx",continent:"North America",flag_1x1:"flags/1x1/mx.svg",flag_4x3:"flags/4x3/mx.svg",iso:true,name:"Mexico",country:"52",iso3:"MEX"},{capital:"Chișinău",iso2:"md",continent:"Europe",flag_1x1:"flags/1x1/md.svg",flag_4x3:"flags/4x3/md.svg",iso:true,name:"Moldova",country:"373",iso3:"MDA"},{capital:"Monaco",iso2:"mc",continent:"Europe",flag_1x1:"flags/1x1/mc.svg",flag_4x3:"flags/4x3/mc.svg",iso:true,name:"Monaco",country:"377",iso3:"MCO"},{capital:"Ulaanbaatar",iso2:"mn",continent:"Asia",flag_1x1:"flags/1x1/mn.svg",flag_4x3:"flags/4x3/mn.svg",iso:true,name:"Mongolia",country:"976",iso3:"MNG"},{capital:"Podgorica",iso2:"me",continent:"Europe",flag_1x1:"flags/1x1/me.svg",flag_4x3:"flags/4x3/me.svg",iso:true,name:"Montenegro",country:"382",iso3:"MNE"},{capital:"Little Bay, Brades, Plymouth",iso2:"ms",continent:"North America",flag_1x1:"flags/1x1/ms.svg",flag_4x3:"flags/4x3/ms.svg",iso:true,name:"Montserrat",country:"1-664",iso3:"MSR"},{capital:"Rabat",iso2:"ma",continent:"Africa",flag_1x1:"flags/1x1/ma.svg",flag_4x3:"flags/4x3/ma.svg",iso:true,name:"Morocco",country:"212",iso3:"MAR"},{capital:"Maputo",iso2:"mz",continent:"Africa",flag_1x1:"flags/1x1/mz.svg",flag_4x3:"flags/4x3/mz.svg",iso:true,name:"Mozambique",country:"258",iso3:"MOZ"},{capital:"Naypyidaw",iso2:"mm",continent:"Asia",flag_1x1:"flags/1x1/mm.svg",flag_4x3:"flags/4x3/mm.svg",iso:true,name:"Myanmar",country:"95",iso3:"MMR"},{capital:"Windhoek",iso2:"na",continent:"Africa",flag_1x1:"flags/1x1/na.svg",flag_4x3:"flags/4x3/na.svg",iso:true,name:"Namibia",country:"264",iso3:"NAM"},{capital:"Yaren District",iso2:"nr",continent:"Oceania",flag_1x1:"flags/1x1/nr.svg",flag_4x3:"flags/4x3/nr.svg",iso:true,name:"Nauru",country:"674",iso3:"NRU"},{capital:"Kathmandu",iso2:"np",continent:"Asia",flag_1x1:"flags/1x1/np.svg",flag_4x3:"flags/4x3/np.svg",iso:true,name:"Nepal",country:"977",iso3:"NPL"},{capital:"Amsterdam",iso2:"nl",continent:"Europe",flag_1x1:"flags/1x1/nl.svg",flag_4x3:"flags/4x3/nl.svg",iso:true,name:"Netherlands",country:"31",iso3:"NLD"},{capital:"Nouméa",iso2:"nc",continent:"Oceania",flag_1x1:"flags/1x1/nc.svg",flag_4x3:"flags/4x3/nc.svg",iso:true,name:"New Caledonia",country:"687",iso3:"NCL"},{capital:"Wellington",iso2:"nz",continent:"Oceania",flag_1x1:"flags/1x1/nz.svg",flag_4x3:"flags/4x3/nz.svg",iso:true,name:"New Zealand",country:"64",iso3:"NZL"},{capital:"Managua",iso2:"ni",continent:"North America",flag_1x1:"flags/1x1/ni.svg",flag_4x3:"flags/4x3/ni.svg",iso:true,name:"Nicaragua",country:"505",iso3:"NIC"},{capital:"Niamey",iso2:"ne",continent:"Africa",flag_1x1:"flags/1x1/ne.svg",flag_4x3:"flags/4x3/ne.svg",iso:true,name:"Niger",country:"227",iso3:"NER"},{capital:"Abuja",iso2:"ng",continent:"Africa",flag_1x1:"flags/1x1/ng.svg",flag_4x3:"flags/4x3/ng.svg",iso:true,name:"Nigeria",country:"234",iso3:"NGA"},{capital:"Alofi",iso2:"nu",continent:"Oceania",flag_1x1:"flags/1x1/nu.svg",flag_4x3:"flags/4x3/nu.svg",iso:true,name:"Niue",country:"683",iso3:"NIU"},{capital:"Kingston",iso2:"nf",continent:"Oceania",flag_1x1:"flags/1x1/nf.svg",flag_4x3:"flags/4x3/nf.svg",iso:true,name:"Norfolk Island",country:"672",iso3:"NFK"},{capital:"Pyongyang",iso2:"kp",continent:"Asia",flag_1x1:"flags/1x1/kp.svg",flag_4x3:"flags/4x3/kp.svg",iso:true,name:"North Korea",country:"850",iso3:"PRK"},{capital:"Skopje",iso2:"mk",continent:"Europe",flag_1x1:"flags/1x1/mk.svg",flag_4x3:"flags/4x3/mk.svg",iso:true,name:"North Macedonia",country:"389",iso3:"MKD"},{capital:"Saipan",iso2:"mp",continent:"Oceania",flag_1x1:"flags/1x1/mp.svg",flag_4x3:"flags/4x3/mp.svg",iso:true,name:"Northern Mariana Islands",country:"1-670",iso3:"MNP"},{capital:"Oslo",iso2:"no",continent:"Europe",flag_1x1:"flags/1x1/no.svg",flag_4x3:"flags/4x3/no.svg",iso:true,name:"Norway",country:"47",iso3:"NOR"},{capital:"Muscat",iso2:"om",continent:"Asia",flag_1x1:"flags/1x1/om.svg",flag_4x3:"flags/4x3/om.svg",iso:true,name:"Oman",country:"968",iso3:"OMN"},{capital:"Islamabad",iso2:"pk",continent:"Asia",flag_1x1:"flags/1x1/pk.svg",flag_4x3:"flags/4x3/pk.svg",iso:true,name:"Pakistan",country:"92",iso3:"PAK"},{capital:"Ngerulmud",iso2:"pw",continent:"Oceania",flag_1x1:"flags/1x1/pw.svg",flag_4x3:"flags/4x3/pw.svg",iso:true,name:"Palau",country:"680",iso3:"PLW"},{capital:"Panama City",iso2:"pa",continent:"North America",flag_1x1:"flags/1x1/pa.svg",flag_4x3:"flags/4x3/pa.svg",iso:true,name:"Panama",country:"507",iso3:"PAN"},{capital:"Port Moresby",iso2:"pg",continent:"Oceania",flag_1x1:"flags/1x1/pg.svg",flag_4x3:"flags/4x3/pg.svg",iso:true,name:"Papua New Guinea",country:"675",iso3:"PNG"},{capital:"Asunción",iso2:"py",continent:"South America",flag_1x1:"flags/1x1/py.svg",flag_4x3:"flags/4x3/py.svg",iso:true,name:"Paraguay",country:"595",iso3:"PRY"},{capital:"Lima",iso2:"pe",continent:"South America",flag_1x1:"flags/1x1/pe.svg",flag_4x3:"flags/4x3/pe.svg",iso:true,name:"Peru",country:"51",iso3:"PER"},{capital:"Manila",iso2:"ph",continent:"Asia",flag_1x1:"flags/1x1/ph.svg",flag_4x3:"flags/4x3/ph.svg",iso:true,name:"Philippines",country:"63",iso3:"PHL"},{capital:"Adamstown",iso2:"pn",continent:"Oceania",flag_1x1:"flags/1x1/pn.svg",flag_4x3:"flags/4x3/pn.svg",iso:true,name:"Pitcairn",country:"870",iso3:"PCN"},{capital:"Warsaw",iso2:"pl",continent:"Europe",flag_1x1:"flags/1x1/pl.svg",flag_4x3:"flags/4x3/pl.svg",iso:true,name:"Poland",country:"48",iso3:"POL"},{capital:"Lisbon",iso2:"pt",continent:"Europe",flag_1x1:"flags/1x1/pt.svg",flag_4x3:"flags/4x3/pt.svg",iso:true,name:"Portugal",country:"351",iso3:"PRT"},{capital:"San Juan",iso2:"pr",continent:"North America",flag_1x1:"flags/1x1/pr.svg",flag_4x3:"flags/4x3/pr.svg",iso:true,name:"Puerto Rico",country:"1-787",iso3:"PRI"},{capital:"Doha",iso2:"qa",continent:"Asia",flag_1x1:"flags/1x1/qa.svg",flag_4x3:"flags/4x3/qa.svg",iso:true,name:"Qatar",country:"974",iso3:"QAT"},{capital:"Brazzaville",iso2:"cg",continent:"Africa",flag_1x1:"flags/1x1/cg.svg",flag_4x3:"flags/4x3/cg.svg",iso:true,name:"Republic of the Congo",country:"242",iso3:"COG"},{capital:"Bucharest",iso2:"ro",continent:"Europe",flag_1x1:"flags/1x1/ro.svg",flag_4x3:"flags/4x3/ro.svg",iso:true,name:"Romania",country:"40",iso3:"ROU"},{capital:"Moscow",iso2:"ru",continent:"Europe",flag_1x1:"flags/1x1/ru.svg",flag_4x3:"flags/4x3/ru.svg",iso:true,name:"Russia",country:"7",iso3:"RUS"},{capital:"Kigali",iso2:"rw",continent:"Africa",flag_1x1:"flags/1x1/rw.svg",flag_4x3:"flags/4x3/rw.svg",iso:true,name:"Rwanda",country:"250",iso3:"RWA"},{capital:"Saint-Denis",iso2:"re",continent:"Africa",flag_1x1:"flags/1x1/re.svg",flag_4x3:"flags/4x3/re.svg",iso:true,name:"Réunion",country:"262",iso3:"REU"},{capital:"Gustavia",iso2:"bl",continent:"North America",flag_1x1:"flags/1x1/bl.svg",flag_4x3:"flags/4x3/bl.svg",iso:true,name:"Saint Barthélemy",country:"590",iso3:"BLM"},{capital:"Jamestown",iso2:"sh",continent:"Africa",flag_1x1:"flags/1x1/sh.svg",flag_4x3:"flags/4x3/sh.svg",iso:true,name:"Saint Helena, Ascension and Tristan da Cunha",country:"290",iso3:"SHN"},{capital:"Basseterre",iso2:"kn",continent:"North America",flag_1x1:"flags/1x1/kn.svg",flag_4x3:"flags/4x3/kn.svg",iso:true,name:"Saint Kitts and Nevis",country:"1-869",iso3:"KNA"},{capital:"Castries",iso2:"lc",continent:"North America",flag_1x1:"flags/1x1/lc.svg",flag_4x3:"flags/4x3/lc.svg",iso:true,name:"Saint Lucia",country:"1-758",iso3:"LCA"},{capital:"Marigot",iso2:"mf",continent:"North America",flag_1x1:"flags/1x1/mf.svg",flag_4x3:"flags/4x3/mf.svg",iso:true,name:"Saint Martin",country:"590",iso3:"MAF"},{capital:"Saint-Pierre",iso2:"pm",continent:"North America",flag_1x1:"flags/1x1/pm.svg",flag_4x3:"flags/4x3/pm.svg",iso:true,name:"Saint Pierre and Miquelon",country:"508",iso3:"SPM"},{capital:"Kingstown",iso2:"vc",continent:"North America",flag_1x1:"flags/1x1/vc.svg",flag_4x3:"flags/4x3/vc.svg",iso:true,name:"Saint Vincent and the Grenadines",country:"1-784",iso3:"VCT"},{capital:"Apia",iso2:"ws",continent:"Oceania",flag_1x1:"flags/1x1/ws.svg",flag_4x3:"flags/4x3/ws.svg",iso:true,name:"Samoa",country:"685",iso3:"WSM"},{capital:"San Marino",iso2:"sm",continent:"Europe",flag_1x1:"flags/1x1/sm.svg",flag_4x3:"flags/4x3/sm.svg",iso:true,name:"San Marino",country:"378",iso3:"SMR"},{capital:"São Tomé",iso2:"st",continent:"Africa",flag_1x1:"flags/1x1/st.svg",flag_4x3:"flags/4x3/st.svg",iso:true,name:"Sao Tome and Principe",country:"239",iso3:"STP"},{capital:"Riyadh",iso2:"sa",continent:"Asia",flag_1x1:"flags/1x1/sa.svg",flag_4x3:"flags/4x3/sa.svg",iso:true,name:"Saudi Arabia",country:"966",iso3:"SAU"},{capital:"Dakar",iso2:"sn",continent:"Africa",flag_1x1:"flags/1x1/sn.svg",flag_4x3:"flags/4x3/sn.svg",iso:true,name:"Senegal",country:"221",iso3:"SEN"},{capital:"Belgrade",iso2:"rs",continent:"Europe",flag_1x1:"flags/1x1/rs.svg",flag_4x3:"flags/4x3/rs.svg",iso:true,name:"Serbia",country:"381",iso3:"SRB"},{capital:"Victoria",iso2:"sc",continent:"Africa",flag_1x1:"flags/1x1/sc.svg",flag_4x3:"flags/4x3/sc.svg",iso:true,name:"Seychelles",country:"248",iso3:"SYC"},{capital:"Freetown",iso2:"sl",continent:"Africa",flag_1x1:"flags/1x1/sl.svg",flag_4x3:"flags/4x3/sl.svg",iso:true,name:"Sierra Leone",country:"232",iso3:"SLE"},{capital:"Singapore",iso2:"sg",continent:"Asia",flag_1x1:"flags/1x1/sg.svg",flag_4x3:"flags/4x3/sg.svg",iso:true,name:"Singapore",country:"65",iso3:"SGP"},{capital:"Philipsburg",iso2:"sx",continent:"North America",flag_1x1:"flags/1x1/sx.svg",flag_4x3:"flags/4x3/sx.svg",iso:true,name:"Sint Maarten",country:"599",iso3:"SXM"},{capital:"Bratislava",iso2:"sk",continent:"Europe",flag_1x1:"flags/1x1/sk.svg",flag_4x3:"flags/4x3/sk.svg",iso:true,name:"Slovakia",country:"421",iso3:"SVK"},{capital:"Ljubljana",iso2:"si",continent:"Europe",flag_1x1:"flags/1x1/si.svg",flag_4x3:"flags/4x3/si.svg",iso:true,name:"Slovenia",country:"386",iso3:"SVN"},{capital:"Honiara",iso2:"sb",continent:"Oceania",flag_1x1:"flags/1x1/sb.svg",flag_4x3:"flags/4x3/sb.svg",iso:true,name:"Solomon Islands",country:"677",iso3:"SLB"},{capital:"Mogadishu",iso2:"so",continent:"Africa",flag_1x1:"flags/1x1/so.svg",flag_4x3:"flags/4x3/so.svg",iso:true,name:"Somalia",country:"252",iso3:"SOM"},{capital:"Pretoria",iso2:"za",continent:"Africa",flag_1x1:"flags/1x1/za.svg",flag_4x3:"flags/4x3/za.svg",iso:true,name:"South Africa",country:"27",iso3:"ZAF"},{capital:"Seoul",iso2:"kr",continent:"Asia",flag_1x1:"flags/1x1/kr.svg",flag_4x3:"flags/4x3/kr.svg",iso:true,name:"South Korea",country:"82",iso3:"KOR"},{capital:"Juba",iso2:"ss",continent:"Africa",flag_1x1:"flags/1x1/ss.svg",flag_4x3:"flags/4x3/ss.svg",iso:true,name:"South Sudan",country:"211",iso3:"SSD"},{capital:"Madrid",iso2:"es",continent:"Europe",flag_1x1:"flags/1x1/es.svg",flag_4x3:"flags/4x3/es.svg",iso:true,name:"Spain",country:"34",iso3:"ESP"},{capital:"Sri Jayawardenepura Kotte, Colombo",iso2:"lk",continent:"Asia",flag_1x1:"flags/1x1/lk.svg",flag_4x3:"flags/4x3/lk.svg",iso:true,name:"Sri Lanka",country:"94",iso3:"LKA"},{capital:"Ramallah",iso2:"ps",continent:"Asia",flag_1x1:"flags/1x1/ps.svg",flag_4x3:"flags/4x3/ps.svg",iso:true,name:"State of Palestine",country:"970",iso3:"PSE"},{capital:"Khartoum",iso2:"sd",continent:"Africa",flag_1x1:"flags/1x1/sd.svg",flag_4x3:"flags/4x3/sd.svg",iso:true,name:"Sudan",country:"249",iso3:"SDN"},{capital:"Paramaribo",iso2:"sr",continent:"South America",flag_1x1:"flags/1x1/sr.svg",flag_4x3:"flags/4x3/sr.svg",iso:true,name:"Suriname",country:"597",iso3:"SUR"},{capital:"Longyearbyen",iso2:"sj",continent:"Europe",flag_1x1:"flags/1x1/sj.svg",flag_4x3:"flags/4x3/sj.svg",iso:true,name:"Svalbard and Jan Mayen",country:"47",iso3:"SJM"},{capital:"Stockholm",iso2:"se",continent:"Europe",flag_1x1:"flags/1x1/se.svg",flag_4x3:"flags/4x3/se.svg",iso:true,name:"Sweden",country:"46",iso3:"SWE"},{capital:"Bern",iso2:"ch",continent:"Europe",flag_1x1:"flags/1x1/ch.svg",flag_4x3:"flags/4x3/ch.svg",iso:true,name:"Switzerland",country:"41",iso3:"CHE"},{capital:"Damascus",iso2:"sy",continent:"Asia",flag_1x1:"flags/1x1/sy.svg",flag_4x3:"flags/4x3/sy.svg",iso:true,name:"Syria",country:"963",iso3:"SYR"},{capital:"Taipei",iso2:"tw",continent:"Asia",flag_1x1:"flags/1x1/tw.svg",flag_4x3:"flags/4x3/tw.svg",iso:true,name:"Taiwan",country:"886",iso3:"TWN"},{capital:"Dushanbe",iso2:"tj",continent:"Asia",flag_1x1:"flags/1x1/tj.svg",flag_4x3:"flags/4x3/tj.svg",iso:true,name:"Tajikistan",country:"992",iso3:"TJK"},{capital:"Dodoma",iso2:"tz",continent:"Africa",flag_1x1:"flags/1x1/tz.svg",flag_4x3:"flags/4x3/tz.svg",iso:true,name:"Tanzania",country:"255",iso3:"TZA"},{capital:"Bangkok",iso2:"th",continent:"Asia",flag_1x1:"flags/1x1/th.svg",flag_4x3:"flags/4x3/th.svg",iso:true,name:"Thailand",country:"66",iso3:"THA"},{capital:"Dili",iso2:"tl",continent:"Asia",flag_1x1:"flags/1x1/tl.svg",flag_4x3:"flags/4x3/tl.svg",iso:true,name:"Timor-Leste",country:"670",iso3:"TLS"},{capital:"Lomé",iso2:"tg",continent:"Africa",flag_1x1:"flags/1x1/tg.svg",flag_4x3:"flags/4x3/tg.svg",iso:true,name:"Togo",country:"228",iso3:"TGO"},{capital:"Nukunonu, Atafu,Tokelau",iso2:"tk",continent:"Oceania",flag_1x1:"flags/1x1/tk.svg",flag_4x3:"flags/4x3/tk.svg",iso:true,name:"Tokelau",country:"690",iso3:"TKL"},{capital:"Nukuʻalofa",iso2:"to",continent:"Oceania",flag_1x1:"flags/1x1/to.svg",flag_4x3:"flags/4x3/to.svg",iso:true,name:"Tonga",country:"676",iso3:"TON"},{capital:"Port of Spain",iso2:"tt",continent:"South America",flag_1x1:"flags/1x1/tt.svg",flag_4x3:"flags/4x3/tt.svg",iso:true,name:"Trinidad and Tobago",country:"1-868",iso3:"TTO"},{capital:"Tunis",iso2:"tn",continent:"Africa",flag_1x1:"flags/1x1/tn.svg",flag_4x3:"flags/4x3/tn.svg",iso:true,name:"Tunisia",country:"216",iso3:"TUN"},{capital:"Ashgabat",iso2:"tm",continent:"Asia",flag_1x1:"flags/1x1/tm.svg",flag_4x3:"flags/4x3/tm.svg",iso:true,name:"Turkmenistan",country:"993",iso3:"TKM"},{capital:"Cockburn Town",iso2:"tc",continent:"North America",flag_1x1:"flags/1x1/tc.svg",flag_4x3:"flags/4x3/tc.svg",iso:true,name:"Turks and Caicos Islands",country:"1-649",iso3:"TCA"},{capital:"Funafuti",iso2:"tv",continent:"Oceania",flag_1x1:"flags/1x1/tv.svg",flag_4x3:"flags/4x3/tv.svg",iso:true,name:"Tuvalu",country:"688",iso3:"TUV"},{capital:"Ankara",iso2:"tr",continent:"Asia",flag_1x1:"flags/1x1/tr.svg",flag_4x3:"flags/4x3/tr.svg",iso:true,name:"Türkiye",country:"90",iso3:"TUR"},{capital:"Kampala",iso2:"ug",continent:"Africa",flag_1x1:"flags/1x1/ug.svg",flag_4x3:"flags/4x3/ug.svg",iso:true,name:"Uganda",country:"256",iso3:"UGA"},{capital:"Kiev",iso2:"ua",continent:"Europe",flag_1x1:"flags/1x1/ua.svg",flag_4x3:"flags/4x3/ua.svg",iso:true,name:"Ukraine",country:"380",iso3:"UKR"},{capital:"Abu Dhabi",iso2:"ae",continent:"Asia",flag_1x1:"flags/1x1/ae.svg",flag_4x3:"flags/4x3/ae.svg",iso:true,name:"United Arab Emirates",country:"971",iso3:"ARE"},{capital:"London",iso2:"gb",continent:"Europe",flag_1x1:"flags/1x1/gb.svg",flag_4x3:"flags/4x3/gb.svg",iso:true,name:"United Kingdom",country:"44",iso3:"ENG"},{capital:"Washington, D.C.",iso2:"us",continent:"North America",flag_1x1:"flags/1x1/us.svg",flag_4x3:"flags/4x3/us.svg",iso:true,name:"United States",country:"1",iso3:"USA"},{capital:"Montevideo",iso2:"uy",continent:"South America",flag_1x1:"flags/1x1/uy.svg",flag_4x3:"flags/4x3/uy.svg",iso:true,name:"Uruguay",country:"598",iso3:"URY"},{capital:"Tashkent",iso2:"uz",continent:"Asia",flag_1x1:"flags/1x1/uz.svg",flag_4x3:"flags/4x3/uz.svg",iso:true,name:"Uzbekistan",country:"998",iso3:"UZB"},{capital:"Port Vila",iso2:"vu",continent:"Oceania",flag_1x1:"flags/1x1/vu.svg",flag_4x3:"flags/4x3/vu.svg",iso:true,name:"Vanuatu",country:"678",iso3:"VUT"},{capital:"Caracas",iso2:"ve",continent:"South America",flag_1x1:"flags/1x1/ve.svg",flag_4x3:"flags/4x3/ve.svg",iso:true,name:"Venezuela",country:"58",iso3:"VEN"},{capital:"Hanoi",iso2:"vn",continent:"Asia",flag_1x1:"flags/1x1/vn.svg",flag_4x3:"flags/4x3/vn.svg",iso:true,name:"Vietnam",country:"84",iso3:"VNM"},{capital:"Road Town",iso2:"vg",continent:"North America",flag_1x1:"flags/1x1/vg.svg",flag_4x3:"flags/4x3/vg.svg",iso:true,name:"Virgin Islands (British)",country:"1-284",iso3:"VGB"},{capital:"Charlotte Amalie",iso2:"vi",continent:"North America",flag_1x1:"flags/1x1/vi.svg",flag_4x3:"flags/4x3/vi.svg",iso:true,name:"Virgin Islands (U.S.)",country:"1-340",iso3:"VIR"},{capital:"Mata-Utu",iso2:"wf",continent:"Oceania",flag_1x1:"flags/1x1/wf.svg",flag_4x3:"flags/4x3/wf.svg",iso:true,name:"Wallis and Futuna",country:"681",iso3:"WLF"},{capital:"Laayoune",iso2:"eh",continent:"Africa",flag_1x1:"flags/1x1/eh.svg",flag_4x3:"flags/4x3/eh.svg",iso:true,name:"Western Sahara",country:"212",iso3:"ESH"},{capital:"Sana'a",iso2:"ye",continent:"Asia",flag_1x1:"flags/1x1/ye.svg",flag_4x3:"flags/4x3/ye.svg",iso:true,name:"Yemen",country:"967",iso3:"YEM"},{capital:"Lusaka",iso2:"zm",continent:"Africa",flag_1x1:"flags/1x1/zm.svg",flag_4x3:"flags/4x3/zm.svg",iso:true,name:"Zambia",country:"260",iso3:"ZMB"},{capital:"Harare",iso2:"zw",continent:"Africa",flag_1x1:"flags/1x1/zw.svg",flag_4x3:"flags/4x3/zw.svg",iso:true,name:"Zimbabwe",country:"263",iso3:"ZWE"}];var GLOBAL={capital:"Global",iso2:"global",continent:"",flag_1x1:"",flag_4x3:"",iso:true,name:"Global",country:"00",iso3:"GLOBAL"};var FLAG_BASE_URL="./constants/flags/4x3/";function getNameFlag(a,s,i,n,t,o,g,l,e){var r=o===true||o==="true";var f=g===true||g==="true";var c=l===true||l==="true";var x=t==="iso3"?a:s;var u=i;var v=x.toLocaleUpperCase();var m="";switch(true){case f&&c&&r&&e===AlignFlag.RIGHT:m="(+".concat(n,") ").concat(v);break;case f&&c&&r:m="".concat(v," (+").concat(n,")");break;case f&&!c&&r:m="".concat(v);break;case r&&c&&e===AlignFlag.RIGHT:m="(+".concat(n,") ").concat(u);break;case r&&c:m="".concat(u," (+").concat(n,")");break;case r||!f&&r:m="".concat(u);break;case!r&&!c:m="";break;case!r&&c:m="(+".concat(n,")");break}return m.trim()}var bdsFlagCss=function(){return'@charset "UTF-8";.bds-flag{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;gap:var(--boreal-spacing-2xs);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.bds-flag--reverse{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.bds-flag__country{font-family:var(--boreal-typography-font-family-primary);color:var(--boreal-text-default-light);font-size:var(--boreal-typography-font-size-sm);font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-sm)}.bds-flag__flag--global{background-image:none;background-color:var(--boreal-ui-base-light)}.bds-flag__flag--country{background-size:cover;background-position:center;background-repeat:no-repeat;-ms-flex-negative:0;flex-shrink:0}.bds-flag__flag--rectangle{width:var(--boreal-layout-ml);height:var(--boreal-layout-m);border-radius:var(--boreal-radius-xs2)}.bds-flag__flag--square{width:var(--boreal-layout-m);height:var(--boreal-layout-m);border-radius:var(--boreal-radius-xs2)}.bds-flag__flag--circle{width:var(--boreal-layout-m);height:var(--boreal-layout-m);border-radius:var(--boreal-radius-full)}'};var BdsFlag=function(){function a(a){registerInstance(this,a);this.alignFlag=AlignFlag.LEFT;this.callSign=false;this.country="";this.customFlags=[];this.identifier=FlagIdentifier.CODE;this.label=false;this.shape=Shape.RECTANGLE;this.shortName=false}a.prototype.checkPropValues=function(){validatePropValue(Object.values(AlignFlag),AlignFlag.LEFT,this.el,"alignFlag");validatePropValue(Object.values(FlagIdentifier),FlagIdentifier.CODE,this.el,"identifier");validatePropValue(Object.values(Shape),Shape.RECTANGLE,this.el,"shape")};a.prototype.componentWillLoad=function(){this.checkPropValues()};a.prototype.flagUrl=function(a){var s;var i=(s=this.customFlags)===null||s===void 0?void 0:s.find((function(s){return s.iso2.toLowerCase()===a}));if((i===null||i===void 0?void 0:i.flag_4x3)!==undefined)return i.flag_4x3;if(FLAG_BASE_URL.startsWith("http")){return"".concat(FLAG_BASE_URL).concat(a,".svg")}return"".concat(window.location.origin).concat(getAssetPath("".concat(FLAG_BASE_URL).concat(a,".svg")))};a.prototype.getCountry=function(){var a=__spreadArray(__spreadArray(__spreadArray([],allCountries,true),this.customFlags,true),[GLOBAL],false);var s=this.identifier===FlagIdentifier.CODE?"country":this.identifier;var i=this.identifier===FlagIdentifier.ISO3?this.country.toUpperCase():this.country.toLowerCase();var n=a.find((function(a){return a[s]===i}));return n||{country:"",iso2:"",iso3:"",name:""}};a.prototype.getCountryName=function(){var a=this.getCountry(),s=a.iso3,i=a.name,n=a.country,t=a.iso2;var o=this.getNameInternal(s,t,i,n);return o};a.prototype.getFlag=function(){var a=this.getCountry().iso2;return a.toLowerCase()};a.prototype.getNameInternal=function(a,s,i,n){return getNameFlag(a,s,i,n,this.identifier,this.label,this.shortName,this.callSign,this.alignFlag)};Object.defineProperty(a.prototype,"isGlobal",{get:function(){return this.getFlag()==="global"},enumerable:false,configurable:true});Object.defineProperty(a.prototype,"flagClass",{get:function(){return{"bds-flag":true,"bds-flag--reverse":this.alignFlag===AlignFlag.RIGHT}},enumerable:false,configurable:true});Object.defineProperty(a.prototype,"flagContentClass",{get:function(){var a;return a={"bds-flag__flag--country":true},a["bds-flag__flag--".concat(this.shape)]=true,a["bds-flag__flag--global"]=this.isGlobal,a},enumerable:false,configurable:true});a.prototype.render=function(){var a=this.getFlag();var s=this.getCountryName();var i=this.flagContentClass;var n=this.flagClass;var t=!this.isGlobal?{backgroundImage:"url(".concat(this.flagUrl(a),")")}:{};return h(Host,{key:"a8a3ef0fefd3e7b1d4c9fd40bf5ea82ce9000815",class:n,"aria-label":s,role:"img"},a&&h("span",{key:"ea653c06af2a3c3341c95acd1750bdbbbd08f268",class:i,style:t,"aria-hidden":"true"}),h("span",{key:"289fcc0f0d247f02b79493fd34aca190c985ed45",class:"bds-flag__country","aria-hidden":"true"},s))};Object.defineProperty(a,"assetsDirs",{get:function(){return["./constants"]},enumerable:false,configurable:true});Object.defineProperty(a.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(a,"watchers",{get:function(){return{alignFlag:[{checkPropValues:0}],identifier:[{checkPropValues:0}],shape:[{checkPropValues:0}]}},enumerable:false,configurable:true});return a}();BdsFlag.style=bdsFlagCss();export{BdsFlag as bds_flag};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as registerInstance,h,a as Host,g as getElement}from"./index-BqJlOB6b.js";import{a as validateNumericProp}from"./validateProps-kGnB15Lz.js";var GRID_ITEM_COL_SPAN={SM_MAX:4,MD_MAX:8,LG_MAX:12,XL_MAX:12,XXL_MAX:12,DEFAULT:12,OFFSET_MIN:0,OFFSET_MAX:11};var bdsGridItemCss=function(){return'@charset "UTF-8";bds-grid-item{--_col-span:var(--_col-base, 12);grid-column-end:span var(--_col-span);grid-row-end:span var(--_row-base, 1)}bds-grid-item[col-span=full]{grid-column:1/-1}bds-grid-item[row-span=full]{grid-row:1/-1}@media (min-width: 320px){bds-grid-item{--_col-span:var(--_col-sm, var(--_col-base, 12))}bds-grid-item[col-span-sm=full]{grid-column:1/-1}}@media (min-width: 769px){bds-grid-item{--_col-span:var(--_col-md, var(--_col-sm, var(--_col-base, 12)))}bds-grid-item[col-span-md=full]{grid-column:1/-1}}@media (min-width: 960px){bds-grid-item{--_col-span:var(--_col-lg, var(--_col-md, var(--_col-sm, var(--_col-base, 12))))}bds-grid-item[col-span-lg=full]{grid-column:1/-1}}@media (min-width: 1152px){bds-grid-item{--_col-span:var(--_col-xl, var(--_col-lg, var(--_col-md, var(--_col-sm, var(--_col-base, 12)))))}bds-grid-item[col-span-xl=full]{grid-column:1/-1}}@media (min-width: 1344px){bds-grid-item{--_col-span:var(--_col-2xl, var(--_col-xl, var(--_col-lg, var(--_col-md, var(--_col-sm, var(--_col-base, 12))))))}bds-grid-item[col-span-2xl=full]{grid-column:1/-1}}'};var BdsGridItem=function(){function i(i){registerInstance(this,i);this.colSpan=GRID_ITEM_COL_SPAN.DEFAULT;this.offset=0}i.prototype.checkPropValues=function(){validateNumericProp(1,GRID_ITEM_COL_SPAN.DEFAULT,this.el,"colSpan");validateNumericProp(1,GRID_ITEM_COL_SPAN.SM_MAX,this.el,"colSpanSm");validateNumericProp(1,GRID_ITEM_COL_SPAN.MD_MAX,this.el,"colSpanMd");validateNumericProp(1,GRID_ITEM_COL_SPAN.LG_MAX,this.el,"colSpanLg");validateNumericProp(1,GRID_ITEM_COL_SPAN.XL_MAX,this.el,"colSpanXl");validateNumericProp(1,GRID_ITEM_COL_SPAN.XXL_MAX,this.el,"colSpan2xl");validateNumericProp(1,undefined,this.el,"rowSpan");validateNumericProp(GRID_ITEM_COL_SPAN.OFFSET_MIN,GRID_ITEM_COL_SPAN.OFFSET_MAX,this.el,"offset")};i.prototype.componentWillLoad=function(){this.checkPropValues()};i.prototype.getHostStyles=function(){var i={};if(this.colSpan!=="full")i["--_col-base"]=String(this.colSpan);if(this.colSpanSm!==undefined&&this.colSpanSm!=="full")i["--_col-sm"]=String(this.colSpanSm);if(this.colSpanMd!==undefined&&this.colSpanMd!=="full")i["--_col-md"]=String(this.colSpanMd);if(this.colSpanLg!==undefined&&this.colSpanLg!=="full")i["--_col-lg"]=String(this.colSpanLg);if(this.colSpanXl!==undefined&&this.colSpanXl!=="full")i["--_col-xl"]=String(this.colSpanXl);if(this.colSpan2xl!==undefined&&this.colSpan2xl!=="full")i["--_col-2xl"]=String(this.colSpan2xl);if(this.rowSpan!==undefined&&this.rowSpan!=="full")i["--_row-base"]=String(this.rowSpan);if(this.offset>0)i["grid-column-start"]=String(Number(this.offset)+1);return i};i.prototype.render=function(){return h(Host,{key:"e16ec21f8fcabbf3091ed3469a120aaff37f4274",style:this.getHostStyles()},h("slot",{key:"b1fa7e071660a4f4f50d9fd31ee9646069678d10"}))};Object.defineProperty(i.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(i,"watchers",{get:function(){return{colSpan:[{checkPropValues:0}],colSpanSm:[{checkPropValues:0}],colSpanMd:[{checkPropValues:0}],colSpanLg:[{checkPropValues:0}],colSpanXl:[{checkPropValues:0}],colSpan2xl:[{checkPropValues:0}],rowSpan:[{checkPropValues:0}],offset:[{checkPropValues:0}]}},enumerable:false,configurable:true});return i}();BdsGridItem.style=bdsGridItemCss();export{BdsGridItem as bds_grid_item};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(r){for(var i,d=1,a=arguments.length;d<a;d++){i=arguments[d];for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s))r[s]=i[s]}return r};return __assign.apply(this,arguments)};import{r as registerInstance,h,a as Host,g as getElement}from"./index-BqJlOB6b.js";import{v as validatePropValue}from"./validateProps-kGnB15Lz.js";var GRID_LAYOUT={FIXED:"fixed",FLUID:"fluid"};var bdsGridCss=function(){return'@charset "UTF-8";bds-grid{--bds-grid-columns:var(--boreal-grid-columns-sm);--bds-grid-gutter:var(--boreal-grid-gutter-sm);--bds-grid-margin:var(--boreal-grid-margin-sm);display:grid;grid-template-columns:repeat(var(--bds-grid-columns), 1fr);gap:var(--bds-grid-gutter);padding-inline:var(--bds-grid-margin);-webkit-margin-start:var(--bds-grid-nav-offset, 0px);margin-inline-start:var(--bds-grid-nav-offset, 0px);-webkit-box-sizing:border-box;box-sizing:border-box}@media (min-width: 769px){bds-grid{--bds-grid-columns:var(--boreal-grid-columns-md)}}@media (min-width: 960px){bds-grid{--bds-grid-columns:var(--boreal-grid-columns-lg);--bds-grid-margin:var(--boreal-grid-margin-lg)}}@media (min-width: 1152px){bds-grid{--bds-grid-gutter:var(--boreal-grid-gutter-xl);--bds-grid-margin:var(--boreal-grid-margin-xl)}}@media (min-width: 1344px){bds-grid{--bds-grid-margin:var(--boreal-grid-margin-2xl)}}bds-grid.bds-grid--fixed{max-width:calc(var(--boreal-grid-fixed-max-columns-width) + 2 * var(--bds-grid-margin));margin-inline:auto}'};var BdsGrid=function(){function r(r){registerInstance(this,r);this.layout=GRID_LAYOUT.FLUID}r.prototype.checkPropValues=function(){validatePropValue(Object.values(GRID_LAYOUT),GRID_LAYOUT.FLUID,this.el,"layout")};r.prototype.componentWillLoad=function(){this.checkPropValues()};r.prototype.render=function(){return h(Host,{key:"52672cc265a59d6556eb4ae677c650b19696dbdc",class:{"bds-grid--fixed":this.layout===GRID_LAYOUT.FIXED},style:__assign({},this.rowGap&&{"row-gap":this.rowGap})},h("slot",{key:"6c0f0b89777a754a91d273838940cd8721b79d5c"}))};Object.defineProperty(r.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(r,"watchers",{get:function(){return{layout:[{checkPropValues:0}]}},enumerable:false,configurable:true});return r}();BdsGrid.style=bdsGridCss();export{BdsGrid as bds_grid};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=function(t,i){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]};return e(t,i)};return function(t,i){if(typeof i!=="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");e(t,i);function n(){this.constructor=t}t.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s))e[s]=t[s]}return e};return __assign.apply(this,arguments)};import{M as Mixin,r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-BqJlOB6b.js";import{C as COMPONENT_STATES}from"./states-Bfazyxqi.js";import{M as MENU_ROLES}from"./menu-dz9-Q2N8.js";import{v as validatePropValue}from"./validateProps-kGnB15Lz.js";import{K as KEYBOARD}from"./Keys-DlYG-OVB.js";function resolveMenuItemRole(e){return e==="menu"?"menuitem":"option"}function resolveAriaSelected(e,t){return e==="option"?String(t):null}function resolveTabIndex(e,t,i){if(t)return-1;if(e==="option"||e==="menuitem"){return i?0:-1}return-1}function handleMenuKeyNavigation(e,t,i){if(t.length===0||i===-1)return;var n=-1;switch(e.key){case KEYBOARD.ArrowDown:n=(i+1)%t.length;break;case KEYBOARD.ArrowUp:n=(i-1+t.length)%t.length;break;default:return}t.forEach((function(e){return e.removeAttribute("active-item")}));t[n].focus();t[n].setAttribute("active-item","")}function preventNavigationKeys(e){var t=[KEYBOARD.ArrowDown,KEYBOARD.ArrowUp,KEYBOARD.Enter,KEYBOARD.Space];if(t.includes(e.key)){e.preventDefault()}}var MenuItemBehavior=function(e){var t=function(e){__extends(t,e);function t(){var t=e.apply(this,arguments)||this;t.disabled=false;t.selected=false;t.activeItem=false;return t}Object.defineProperty(t.prototype,"parent",{get:function(){return this.el.closest('[role="menu"], [role="listbox"]')},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"parentRole",{get:function(){var e=this.parent;return e!==null?e.getAttribute("role"):null},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"menuItemRole",{get:function(){return resolveMenuItemRole(this.parentRole||"menu")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"ariaSelected",{get:function(){return resolveAriaSelected(this.menuItemRole,this.selected)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"itemTabIndex",{get:function(){return resolveTabIndex(this.menuItemRole,this.disabled,this.activeItem)},enumerable:false,configurable:true});t.prototype.handleKeyDownLogic=function(e,t){preventNavigationKeys(e);if(e.key===KEYBOARD.Enter||e.key===KEYBOARD.Space){t();return}var i=this.parent;if(i===null)return;var n=Array.from(i.querySelectorAll("".concat(this.el.tagName.toLocaleLowerCase(),':not([disabled]):not([variant="label"])')));var s=n.indexOf(this.el);handleMenuKeyNavigation(e,n,s)};return t}(e);return t};var WithLinks=function(e){var t=function(e){__extends(t,e);function t(){var t=e.apply(this,arguments)||this;t.href="";t.newTab=false;t.download="";return t}Object.defineProperty(t.prototype,"isLink",{get:function(){return this.href!==""||this.download!==""},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"linkAttributes",{get:function(){var e={};if(!this.isLink)return e;var t=this.sanitizeUrl(this.href);e.href=t;e.target=this.newTab?"_blank":"_self";e.rel=this._isExternalLink(t)||this.newTab||this.download!==""?"noopener noreferrer":"";e.download=this.download!==""?this.download:undefined;if(this.el.tagName.toLowerCase()!=="a"){e.role="link";e.tabindex="0"}return e},enumerable:false,configurable:true});t.prototype._isExternalLink=function(e){var t=/^https?:\/\//.test(e)&&!e.includes(window.location.hostname);return t};t.prototype.handleLinkKeyDown=function(e){if(!this.isLink)return;if(this.el.tagName.toLowerCase()!=="a"&&(e.key===KEYBOARD.Enter||e.key===KEYBOARD.Space)){e.preventDefault();this.handleLinkClick(new MouseEvent("click",{bubbles:true,cancelable:true}))}};t.prototype.handleLinkClick=function(e){if(!this.isLink){e.preventDefault();return}var t=this.linkAttributes;if(t.download!==""&&t.download!==undefined){e.preventDefault();var i=document.createElement("a");i.href=t.download||"";i.download=t.download;i.style.display="none";document.body.appendChild(i);console.log("Initiating download:",i.href);i.click();document.body.removeChild(i)}if(this.el.tagName.toLowerCase()!=="a"){if(t.target==="_blank"){window.open(t.href,"_blank",t.rel)}else{window.location.href=t.href||""}e.preventDefault()}};t.prototype.sanitizeUrl=function(e){var t=e.trim().toLowerCase();if(t.startsWith("javascript:")||t.startsWith("data:")||t.includes("\0")){return""}if(!t.startsWith("http://")&&!t.startsWith("https://")&&!t.startsWith("mailto:")&&!t.startsWith("tel:")&&!t.startsWith("/")&&!t.startsWith("#")){return t.startsWith("://")?"":"https://".concat(e)}return e};return t}(e);return t};var LIST_MENU_ITEM_VARIANTS={LABEL:"label",BUTTON:"button"};var bdsListMenuItemCss=function(){return'@charset "UTF-8";.bds-list-item,.bds-list-item__content{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.bds-list-item{width:100%;vertical-align:middle;position:relative;color:var(--boreal-text-default);font-style:normal;font-family:var(--boreal-typography-font-family-primary);font-weight:var(--boreal-typography-font-weight-regular)}.bds-list-item__content{-ms-flex-pack:justify;justify-content:space-between;-ms-flex:1;flex:1;vertical-align:middle;gap:var(--boreal-spacing-3xs)}.bds-list-item__content-left,.bds-list-item__content-right{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;vertical-align:middle}.bds-list-item__content-left__icon,.bds-list-item__content-left__text{display:inline-block;vertical-align:middle;font-style:normal;font-size:var(--boreal-typography-font-size-sm);line-height:var(--boreal-typography-line-height-xs)}.bds-list-item__content-left__icon:not(:empty){padding-right:var(--boreal-spacing-3xs)}.bds-list-item__content [class*=bds-icon-]{font-size:var(--boreal-typography-font-size-md)}.bds-list-item--button{cursor:pointer;padding:var(--boreal-spacing-1xs) var(--boreal-spacing-s);-webkit-transition:background-color 0.3s ease, border-color 0.3s ease, -webkit-box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, -webkit-box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, -webkit-box-shadow 0.3s ease}.bds-list-item--button:not(.bds-list-item--disabled):hover:not([selected]){background-color:var(--boreal-ui-default-lighter);z-index:1}.bds-list-item--button:not(.bds-list-item--disabled):focus,.bds-list-item--button:not(.bds-list-item--disabled):focus-visible{outline:none;-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus);box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus);z-index:1}.bds-list-item--button:not(.bds-list-item--disabled):active,.bds-list-item--button:not(.bds-list-item--disabled).bds-list-item--state-active{-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus), 0 1px 2px 0 rgba(19, 19, 22, 0.15) inset;box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus), 0 1px 2px 0 rgba(19, 19, 22, 0.15) inset;background-color:var(--boreal-ui-default-lighter);z-index:1}.bds-list-item--selected{background-color:var(--boreal-ui-primary-lighter)}.bds-list-item--disabled{color:var(--boreal-text-disabled);cursor:not-allowed}.bds-list-item--label{cursor:default;padding:var(--boreal-spacing-3xs) 0}.bds-list-item--label .bds-typography label{color:var(--boreal-text-default-light)}'};var BdsListMenuItem=function(e){__extends(t,e);function t(t){var i=e.call(this)||this;registerInstance(i,t);i.bdsSelectItem=createEvent(i,"bdsSelectItem");i.variant=LIST_MENU_ITEM_VARIANTS.BUTTON;i.name="";i.disabled=false;i.selected=false;i.value="";i.checkable=false;i.activeItem=false;i.href="";i.newTab=false;i.download="";i.currentState=COMPONENT_STATES.DEFAULT;i.handleClick=function(e){if(i.disabled||i.isLabelVariant)return;e.stopPropagation();if(i.isLink){i.handleLinkClick(e);return}if(i.checkable&&i.parentRole!==MENU_ROLES.LISTBOX)i.selected=!i.selected;i.bdsSelectItem.emit({value:i.value,selected:!i.selected})};i.handleKeyDown=function(e){if(i.disabled||i.isLabelVariant)return;i.handleKeyDownLogic(e,(function(){return i.handleClick(e)}));if(!i.isLink||i.linkAttributes.download!==undefined){i.currentState=e.key===KEYBOARD.Enter||e.key===KEYBOARD.Space?COMPONENT_STATES.ACTIVE:i.currentState}};i.handleKeyUp=function(){if(i.disabled||i.isLabelVariant)return;i.currentState=COMPONENT_STATES.DEFAULT};return i}t.prototype.checkPropsVariant=function(){validatePropValue(Object.values(LIST_MENU_ITEM_VARIANTS),LIST_MENU_ITEM_VARIANTS.BUTTON,this.el,"variant")};t.prototype.componentWillLoad=function(){this.checkPropsVariant()};Object.defineProperty(t.prototype,"menuItemRoleExtended",{get:function(){if(!this.checkable)return this.menuItemRole;if(this.parentRole==="listbox")return"checkbox";return"menuitemcheckbox"},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isLabelVariant",{get:function(){return this.variant===LIST_MENU_ITEM_VARIANTS.LABEL},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"classMap",{get:function(){var e;return e={"bds-list-item":true,"bds-list-item--disabled":this.disabled,"bds-list-item--selected":this.selected},e["bds-list-item--state-".concat(this.currentState)]=true,e["bds-list-item--".concat(this.variant)]=true,e},enumerable:false,configurable:true});t.prototype.renderTypeLabel=function(){return h("bds-typography",{variant:"label",element:"label",align:"start",role:"presentation"},h("slot",{name:"left-content"})," ",h("slot",null))};t.prototype.renderCheckbox=function(){if(!this.checkable)return null;return h("bds-checkbox",{checked:this.selected,disabled:this.disabled,name:"checkbox-".concat(this.value),tabindex:"-1",style:{pointerEvents:"none"},inert:true})};t.prototype.renderTypeButton=function(){return h("div",{class:"bds-list-item__content"},h("div",{class:"bds-list-item__content-left"},this.renderCheckbox(),h("span",{class:"bds-list-item__content-left__icon"},h("slot",{name:"left-content"})),h("span",{class:"bds-list-item__content-left__text"},h("slot",null))),h("div",{class:"bds-list-item__content-right"},h("slot",{name:"right-content"})))};t.prototype.render=function(){var e=this.renderTypeButton();if(this.isLabelVariant)e=this.renderTypeLabel();var t=this.isLink?__assign(__assign({},this.linkAttributes),{tabindex:this.activeItem?0:-1}):{};return h(Host,__assign(__assign({key:"0882d4cb677f6621518113c48e92d7e94cb71916",class:this.classMap,role:this.isLabelVariant?"presentation":this.menuItemRoleExtended,"aria-selected":!this.checkable?this.ariaSelected:false,"aria-checked":this.checkable?this.ariaSelected:undefined},t),{tabIndex:this.isLabelVariant?-1:this.itemTabIndex,onClick:this.handleClick,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp}),e)};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{variant:[{checkPropsVariant:0}]}},enumerable:false,configurable:true});return t}(Mixin(MenuItemBehavior,WithLinks));BdsListMenuItem.style=bdsListMenuItemCss();export{BdsListMenuItem as bds_list_menu_item};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++){e=arguments[i];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}return t};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(t,e,i,n){function r(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,s){function a(t){try{u(n.next(t))}catch(t){s(t)}}function o(t){try{u(n["throw"](t))}catch(t){s(t)}}function u(t){t.done?i(t.value):r(t.value).then(a,o)}u((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,r,s,a=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return a.next=o(0),a["throw"]=o(1),a["return"]=o(2),typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(t){return function(e){return u([t,e])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,o[0]&&(i=0)),i)try{if(n=1,r&&(s=o[0]&2?r["return"]:o[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,o[1])).done)return s;if(r=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;r=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(s=i.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){i.label=o[1];break}if(o[0]===6&&i.label<s[1]){i.label=s[1];s=o;break}if(s&&i.label<s[2]){i.label=s[2];i.ops.push(o);break}if(s[2])i.ops.pop();i.trys.pop();continue}o=e.call(t,i)}catch(t){o=[6,t];r=0}finally{n=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var n=0,r=e.length,s;n<r;n++){if(s||!(n in e)){if(!s)s=Array.prototype.slice.call(e,0,n);s[n]=e[n]}}return t.concat(s||Array.prototype.slice.call(e))};import{r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-BqJlOB6b.js";import{M as MENU_ROLES}from"./menu-dz9-Q2N8.js";import{a as inheritAriaAttributes}from"./attributes-U9yfbs7i.js";import{v as validatePropValue}from"./validateProps-kGnB15Lz.js";var LIST_MENU_SELECTION_MODE={SINGLE:"single",MULTIPLE:"multiple"};var bdsListMenuCss=function(){return'@charset "UTF-8";:host{display:block}.bds-list-menu{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;max-width:var(--bds-list-menu-max-width, 350px);background-color:var(--boreal-ui-inverse);font-family:var(--boreal-typography-font-family-primary)}.bds-list-menu__content{max-height:var(--bds-list-menu-max-height, 240px);overflow-y:auto;padding:var(--boreal-spacing-2xs)}.bds-list-menu__select-controls{display:-ms-flexbox;display:flex;-ms-flex-pack:distribute;justify-content:space-around;border-bottom:var(--boreal-spacing-4xs) solid var(--boreal-ui-default-lighter);margin-bottom:var(--boreal-spacing-3xs)}.bds-list-menu__header:not(:empty),.bds-list-menu__footer:not(:empty){padding:var(--boreal-spacing-xs) 0}.bds-list-menu__header:not(:empty){border-bottom:var(--boreal-spacing-4xs) solid var(--boreal-ui-default-lighter)}.bds-list-menu__footer:not(:empty){border-top:var(--boreal-spacing-4xs) solid var(--boreal-ui-default-lighter)}'};var BdsListMenu=function(){function t(t){registerInstance(this,t);this.bdsChange=createEvent(this,"bdsChange");this.bdsSelect=createEvent(this,"bdsSelect");this.inheritedAttributes={};this.selectionMode=LIST_MENU_SELECTION_MODE.SINGLE;this.menuRole=MENU_ROLES.MENU;this.selectControls=false;this.selectedValues=[]}t.prototype.checkProps=function(){validatePropValue(Object.values(MENU_ROLES),MENU_ROLES.MENU,this.el,"menuRole");validatePropValue(Object.values(LIST_MENU_SELECTION_MODE),LIST_MENU_SELECTION_MODE.SINGLE,this.el,"selectionMode")};t.prototype.getSelectedValues=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.isMultiple?this.selectedValues:this.selectedValues[0]]}))}))};t.prototype.setSelectedValues=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.isMultiple){this.selectedValues=Array.isArray(t)?t:[t]}else{this.selectedValues=t!==null?[t]:[]}this.updateChildrenState();return[2]}))}))};t.prototype.handleItemClick=function(t){var e=t.detail,i=e.value,n=e.selected;if(this.menuRole===MENU_ROLES.LISTBOX){if(this.isMultiple){this.handleMultipleSelection(i,n)}else{this.handleSingleSelection(i,n)}this.updateChildrenState(t.target);this.bdsChange.emit(this.isMultiple?this.selectedValues:this.selectedValues[0]||undefined)}else{var r=t.target;var s=this.childItems.indexOf(r);this.bdsSelect.emit({value:i,index:s,checked:r.checkable?r.selected:false,element:r})}};t.prototype.componentWillLoad=function(){this.checkProps();this.initialSelectedValues();this.updateActiveState();this.inheritedAttributes=__assign({},inheritAriaAttributes(this.el,["aria-multiselectable"]))};Object.defineProperty(t.prototype,"childItems",{get:function(){var t=Array.from(this.el.querySelectorAll("bds-list-menu-item"));return t},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"firstEnabledItem",{get:function(){var t=this.childItems;var e=t.find((function(t){return!t.disabled&&t.variant!=="label"}));return e},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isMultiple",{get:function(){return this.selectionMode===LIST_MENU_SELECTION_MODE.MULTIPLE},enumerable:false,configurable:true});t.prototype.updateActiveState=function(){var t=this.firstEnabledItem;var e=this.childItems;var i=e.some((function(t){return t.selected&&!t.disabled}));if(!i&&t!==undefined){t.setAttribute("active-item","")}};t.prototype.handleMultipleSelection=function(t,e){this.selectedValues=e?__spreadArray(__spreadArray([],this.selectedValues,true),[t],false):this.selectedValues.filter((function(e){return e!==t}))};t.prototype.handleSingleSelection=function(t,e){this.selectedValues=e?[t]:[]};t.prototype.updateChildrenState=function(t){var e=this;var i=this.childItems;i.forEach((function(t){if(t.value!==undefined){var i=e.selectedValues.includes(t.value);t.selected=i;t.removeAttribute("active-item")}}));this.setActiveItem(t)};t.prototype.setActiveItem=function(t){var e;if(t!==undefined){e=t}else if(this.selectedValues.length>0){var i=this.selectedValues[0];e=this.childItems.find((function(t){return t.value===i}))}else{e=this.firstEnabledItem}if(e!==undefined){e.setAttribute("active-item","")}};t.prototype.initialSelectedValues=function(){var t=Array.from(this.el.querySelectorAll("bds-list-menu-item[selected]"));if(t.length>0){var e=Array.from(t);var i=e.map((function(t){return t.getAttribute("value")||""}));this.selectedValues=this.isMultiple?i:[i[0]];this.updateChildrenState()}};t.prototype.handleToggleSelect=function(t){var e=this.childItems.filter((function(t){return!t.disabled&&t.variant!=="label"&&t.value!==undefined})).map((function(t){return t.value}));this.selectedValues=t?e:[];this.updateChildrenState();this.bdsChange.emit(this.selectedValues)};t.prototype.renderSelectControls=function(){var t=this;if(this.selectControls&&this.menuRole===MENU_ROLES.LISTBOX&&this.isMultiple){return h("div",{class:"bds-list-menu__select-controls"},h("bds-button",{name:"Select all",variant:"plain",onBdsClick:function(){return t.handleToggleSelect(true)}},"Select All"),h("bds-button",{name:"Deselect all",variant:"plain",onBdsClick:function(){return t.handleToggleSelect(false)}},"Deselect All"))}return null};t.prototype.render=function(){var t=this.inheritedAttributes;return h(Host,__assign({key:"88d9e41f1116555df02ca6e883b9e50f024c69b9",class:"bds-list-menu",role:this.menuRole,tabIndex:"-1","aria-multiselectable":this.menuRole===MENU_ROLES.LISTBOX&&this.isMultiple?"true":"false"},t),h("slot",{key:"2f1730a1b5c456477d2b86f35b596d11e1b79f5c",name:"banner-content"}),h("div",{key:"58b6944a60ce62a8832e41a853d2621b6fc6deae",class:"bds-list-menu__header"},h("slot",{key:"1a292f12ca27104fd0496477a051a1ad3bcec83e",name:"header-content"})),this.renderSelectControls(),h("div",{key:"9a21f481ca5a3e6b484c0bcc5501097dfceb61c3",class:"bds-list-menu__content"},h("slot",{key:"43f684cb30333a5d571b4d05a4c8627703297473"})),h("div",{key:"dbc3a62e055792283fef80ff4514167d079c355d",class:"bds-list-menu__footer"},h("slot",{key:"8d504757a49bedf5a5ec150ed16ef5c9e7723ee1",name:"footer-content"})))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{selectionMode:[{checkProps:0}],menuRole:[{checkProps:0}]}},enumerable:false,configurable:true});return t}();BdsListMenu.style=bdsListMenuCss();export{BdsListMenu as bds_list_menu};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var e=function(o,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var r in o)if(Object.prototype.hasOwnProperty.call(o,r))e[r]=o[r]};return e(o,r)};return function(o,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(o,r);function t(){this.constructor=o}o.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}}();import{M as Mixin,r as registerInstance,h,a as Host,g as getElement}from"./index-D4EFsvs1.js";import{a as anchoredMixin}from"./anchored.mixin-Y3MkGc2X.js";import{B as BUTTON_SIZES}from"./enum-C8mRvnTA.js";import"./floating.mixin-DCXSEEVH.js";var bdsPopoverCss=function(){return'@charset "UTF-8";:root{--popover-arrow-size:var(--boreal-spacing-s);--popover-width:320px}.popover{position:fixed;margin:0;overflow:visible;border-radius:var(--boreal-radius-xs2);font-size:var(--boreal-typography-font-size-xs);line-height:var(--boreal-typography-line-height-xs);font-family:var(--boreal-typography-font-family-primary);font-weight:var(--boreal-typography-font-weight-regular);background:var(--boreal-ui-inverse);-webkit-filter:drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.15));filter:drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.15));-webkit-box-shadow:none;box-shadow:none;-webkit-box-sizing:border-box;box-sizing:border-box;border:transparent;cursor:auto}.popover-content{position:relative;padding:var(--boreal-spacing-s)}.popover[popover]:not(:popover-open){display:none}.popover-header{border-bottom:var(--boreal-stroke-default-light) solid 1px;padding:var(--boreal-spacing-m) var(--boreal-spacing-xs) var(--boreal-spacing-m) var(--boreal-spacing-s);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.popover-header__content{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.popover-header__title{font-size:var(--boreal-typography-font-size-sm);font-weight:var(--boreal-typography-font-weight-semibold);line-height:var(--boreal-typography-line-height-sm)}.popover-header__icon{font-size:var(--boreal-typography-font-size-md);margin-right:var(--boreal-spacing-3xs)}.popover-header__close{margin-left:var(--boreal-spacing-s)}.popover-footer{border-top:var(--boreal-stroke-default-light) solid 1px;padding:var(--boreal-spacing-s) var(--boreal-spacing-xs) var(--boreal-spacing-s) var(--boreal-spacing-s);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.popover .popover-arrow{position:absolute;width:var(--popover-arrow-size);height:var(--popover-arrow-size);pointer-events:none}.popover .popover-arrow::before{content:"";position:absolute;width:var(--popover-arrow-size);height:var(--popover-arrow-size);background:var(--boreal-ui-inverse);-webkit-transform:rotate(45deg);transform:rotate(45deg)}.popover[data-placement^=top] .popover-arrow{bottom:calc(var(--popover-arrow-size) / -2)}.popover[data-placement^=top] .popover-arrow::before{top:0}.popover[data-placement^=bottom] .popover-arrow{top:calc(var(--popover-arrow-size) / -2)}.popover[data-placement^=bottom] .popover-arrow::before{top:0}.popover[data-placement^=left] .popover-arrow{right:calc(var(--popover-arrow-size) / -2)}.popover[data-placement^=left] .popover-arrow::before{left:0}.popover[data-placement^=right] .popover-arrow{left:calc(var(--popover-arrow-size) / -2)}.popover[data-placement^=right] .popover-arrow::before{left:0}'};var BdsPopover=function(e){__extends(o,e);function o(o){var r=e.call(this)||this;registerInstance(r,o);r.floatingOptions={};r.disabled=false;r.width=320;r.header=false;r.footer=false;r.closable=false;r.isVisible=false;return r}Object.defineProperty(o.prototype,"options",{get:function(){var e,o;return{placement:(e=this.floatingOptions.placement)!==null&&e!==void 0?e:"bottom",offset:(o=this.floatingOptions.offset)!==null&&o!==void 0?o:16,arrow:this.floatingOptions.hideArrow?undefined:this.arrowElement,strategy:"fixed",shift:true,flip:true}},enumerable:false,configurable:true});Object.defineProperty(o.prototype,"popoverWidth",{get:function(){if(this.width==="full")return"100%";if(this.width==="auto")return"auto";return"".concat(this.width,"px")},enumerable:false,configurable:true});Object.defineProperty(o.prototype,"hooks",{get:function(){var e=this;return{onPositionUpdate:function(o){return e.handlePosition(o)},onBeforeShow:function(){return!e.disabled},onAfterShow:function(){return e.attachClickOutside()},onAfterHide:function(){return e.detachClickOutside()},onBeforeLoad:function(){return e.attachTrigger()},subscribeToTrigger:function(o){return e.subscribe(o)}}},enumerable:false,configurable:true});o.prototype.attachClickOutside=function(){var e=this;var o;if(((o=this.floatingOptions)===null||o===void 0?void 0:o.closeOnClickOutside)===false)return;this.boundClickOutside=function(o){return e.handleClickOutside(o)};document.addEventListener("mousedown",this.boundClickOutside)};o.prototype.detachClickOutside=function(){var e;if(((e=this.floatingOptions)===null||e===void 0?void 0:e.closeOnClickOutside)===false)return;if(this.boundClickOutside!==null){document.removeEventListener("mousedown",this.boundClickOutside);this.boundClickOutside=function(){}}};o.prototype.setArrowPosition=function(e){var o,r;if(((o=e.middlewareData)===null||o===void 0?void 0:o.arrow)&&!this.disabled&&((r=this.arrowElement)===null||r===void 0?void 0:r.isConnected)){var t=e.middlewareData.arrow,n=t.x,a=t.y;Object.assign(this.arrowElement.style,{left:n!=null?"".concat(n,"px"):"",top:a!=null?"".concat(a,"px"):""})}};o.prototype.handleClickOutside=function(e){var o=e.target;var r=this.el.contains(o);var t=this.floatingContent.contains(o)||this.floatingContent===o;if(!r&&!t){this.hide()}};o.prototype.handleContentClick=function(e){e.stopPropagation();this.handleFloatingClick()};o.prototype.handleFloatingClick=function(){if(this.floatingOptions.closeOnClick)this.hide()};o.prototype.handlePosition=function(e){var o=this;var r;this.floatingContent.setAttribute("data-placement",e.placement);this.setArrowPosition(e);if(this.width==="full"&&this.triggerSlot!==null&&this.triggerSlot!==undefined){var t=(r=this.triggerSlot.parentElement)!==null&&r!==void 0?r:this.triggerSlot;var n=t.getBoundingClientRect().width;var a=this.floatingContent.getBoundingClientRect().width;if(Math.round(a)!==Math.round(n)){this.floatingContent.style.width="".concat(n,"px")}void this.updatePosition(this.triggerSlot,this.floatingContent,this.options,(function(e){o.floatingContent.setAttribute("data-placement",e.placement);o.setArrowPosition(e)}))}else if(this.width==="auto"){this.floatingContent.style.width=""}};o.prototype.attachTrigger=function(){if(this.trigger!==null&&this.trigger!==undefined)return};o.prototype.subscribe=function(e){var o=this;if(e===undefined)return;this.trigger=e;e.setAttribute("part","popover-trigger");e.setAttribute("ariaDescribedBy","popover-content");e.setAttribute("aria-haspopup","true");e.setAttribute("aria-expanded","false");var r=e.closest("bds-button, bds-input, bds-select");if(r!==null&&r!==undefined){var t=r.querySelector("button, input");var n=t!==null&&t!==void 0?t:r;this.listenTarget=n;this.listenTarget.addEventListener("click",(function(e){return o.handleShow(e)}));this.listenTarget.addEventListener("keydown",(function(e){return o.handleKeydown(e,(function(){return o.showElement()}),(function(){return o.hideElement()}))}))}else{this.trigger.addEventListener("click",(function(e){return o.handleShow(e)}));this.trigger.addEventListener("keydown",(function(e){return o.handleKeydown(e,(function(){return o.showElement()}),(function(){return o.hideElement()}))}))}};o.prototype.handleShow=function(e){e.stopPropagation();this.toggle()};Object.defineProperty(o.prototype,"canShowArrow",{get:function(){return!this.floatingOptions.hideArrow||false},enumerable:false,configurable:true});Object.defineProperty(o.prototype,"getPlacement",{get:function(){return this.floatingOptions.placement||"bottom"},enumerable:false,configurable:true});Object.defineProperty(o.prototype,"hasHeaderSlot",{get:function(){return this.el.querySelector('[slot="header"]')!==null},enumerable:false,configurable:true});Object.defineProperty(o.prototype,"hasFooterSlot",{get:function(){return this.el.querySelector('[slot="footer"]')!==null},enumerable:false,configurable:true});o.prototype.disconnectedCallback=function(){var e=this;this.listenTarget.removeEventListener("click",(function(o){return e.handleShow(o)}));this.trigger.removeEventListener("click",(function(o){return e.handleShow(o)}))};o.prototype.render=function(){var e=this;return h(Host,{key:"e00cacf63369fc0c409d003aaf495eeef1af424c"},h("div",{key:"0262e5dc2789d817c1332d12d598b7f6bb71a188",class:"popover",style:{width:this.popoverWidth},popover:"manual",role:"tooltip","data-placement":this.getPlacement,"data-hidearrow":this.canShowArrow,"aria-hidden":this.isVisible?"false":"true",onClick:function(o){return e.handleContentClick(o)},ref:function(o){return e.floatingContent=o}},this.header&&h("div",{key:"63156ddf954e2c2b6452184f060ea502b9798d2f",class:"popover-header"},h("div",{key:"1183b88e3352637d9fce99d160c3d1df56b6010b",class:"popover-header__content"},h("span",{key:"48dcc7ac417bddfd9f19e388e32833d6930a566c",class:"popover-header__icon"},h("slot",{key:"a852564051439b09b30f8f0f054c29ccb6c4f722",name:"header-icon"})),h("span",{key:"aaaef66cd3454c4dd3bd4be7e0613187943f49b0",class:"popover-header__title"},h("slot",{key:"231224f3e9115e300998942aecfd07ae7b45dda7",name:"header-title"}))),this.closable&&h("bds-button",{key:"67ccc016aa89d0627812ad80ad1121bdb3e25692",class:"popover-header__close",size:BUTTON_SIZES.SMALL,onBdsClick:function(){return e.hide()}},h("em",{key:"40cdcbf5e9ca75e55f45cdce3db6af2ed5088298",slot:"icon",class:"bds-icon-close"}))),this.canShowArrow&&h("div",{key:"a8bd41e82c5f4a0d7fe7a02287c29140490118e4",class:"popover-arrow",part:"arrow",ref:function(o){return e.arrowElement=o}}),h("div",{key:"a205d8490fb192ebf0c75388775a8247b06d4431",class:"popover-content",tabIndex:-1,part:"popover-content"},h("slot",{key:"e3447f0022c0c78a28d176df5d85ff05daea8bd6"})),this.footer&&h("div",{key:"d16a93b4c702e342c89a7192b9a528f39e035601",class:"popover-footer",onClick:function(e){return e.stopPropagation()}},h("slot",{key:"0c046c725771991b981b5baf090c1ecc023987c6",name:"footer-helper"}),h("slot",{key:"3f4391e420d411b0ae84df6fe29d4fc9e96fc206",name:"footer-button"}))))};Object.defineProperty(o.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return o}(Mixin(anchoredMixin));BdsPopover.style=bdsPopoverCss();export{BdsPopover as bds_popover};
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=function(o,t){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var t in o)if(Object.prototype.hasOwnProperty.call(o,t))e[t]=o[t]};return e(o,t)};return function(o,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(o,t);function r(){this.constructor=o}o.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();import{M as Mixin,r as registerInstance,h,a as Host,g as getElement}from"./index-BqJlOB6b.js";import{a as anchoredMixin,g as getOffset}from"./getOffset-BYS3c13B.js";import{B as BUTTON_SIZES}from"./enum-DlVzZK7o.js";import"./Logger-iq2UuV7c.js";import"./floating.mixin-DCXSEEVH.js";import"./Keys-DlYG-OVB.js";var OFFSET=11;var bdsPopoverCss=function(){return'@charset "UTF-8";:root{--popover-arrow-size:var(--boreal-spacing-s);--popover-width:320px}.popover{position:fixed;margin:0;overflow:visible;border-radius:var(--boreal-radius-xs2);font-size:var(--boreal-typography-font-size-xs);line-height:var(--boreal-typography-line-height-xs);font-family:var(--boreal-typography-font-family-primary);font-weight:var(--boreal-typography-font-weight-regular);background:var(--boreal-ui-inverse);-webkit-filter:drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.15));filter:drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.15));-webkit-box-shadow:none;box-shadow:none;-webkit-box-sizing:border-box;box-sizing:border-box;border:transparent;cursor:auto}.popover-content{position:relative;padding:var(--boreal-spacing-s)}.popover[popover]:not(:popover-open){display:none}.popover-header{border-bottom:var(--boreal-stroke-default-light) solid 1px;padding:var(--boreal-spacing-m) var(--boreal-spacing-xs) var(--boreal-spacing-m) var(--boreal-spacing-s);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.popover-header__content{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.popover-header__title{font-size:var(--boreal-typography-font-size-sm);font-weight:var(--boreal-typography-font-weight-semibold);line-height:var(--boreal-typography-line-height-sm)}.popover-header__icon{font-size:var(--boreal-typography-font-size-md);margin-right:var(--boreal-spacing-3xs)}.popover-header__close{margin-left:var(--boreal-spacing-s)}.popover-header__close .bds-button{margin:0;padding:0;width:var(--boreal-spacing-ml);height:var(--boreal-spacing-ml)}.popover-header__close .bds-button__content{width:var(--boreal-spacing-ml);height:var(--boreal-spacing-ml)}.popover-header__close em{font-size:var(--boreal-typography-font-size-xs)}.popover-footer{border-top:var(--boreal-stroke-default-light) solid 1px;padding:var(--boreal-spacing-s) var(--boreal-spacing-xs) var(--boreal-spacing-s) var(--boreal-spacing-s);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.popover .popover-arrow{position:absolute;width:var(--popover-arrow-size);height:var(--popover-arrow-size);pointer-events:none}.popover .popover-arrow::before{content:"";position:absolute;width:var(--popover-arrow-size);height:var(--popover-arrow-size);background:var(--boreal-ui-inverse);-webkit-transform:rotate(45deg);transform:rotate(45deg);inset:0}.popover[data-placement^=top] .popover-arrow{bottom:calc(var(--popover-arrow-size) / -2)}.popover[data-placement^=top] .popover-arrow::before{bottom:0}.popover[data-placement^=bottom] .popover-arrow{top:calc(var(--popover-arrow-size) / -2)}.popover[data-placement^=bottom] .popover-arrow::before{bottom:0}.popover[data-placement^=left] .popover-arrow{right:calc(var(--popover-arrow-size) / -2)}.popover[data-placement^=left] .popover-arrow::before{left:0}.popover[data-placement^=right] .popover-arrow{left:calc(var(--popover-arrow-size) / -2)}.popover[data-placement^=right] .popover-arrow::before{left:0}'};var BdsPopover=function(e){__extends(o,e);function o(o){var t=e.call(this)||this;registerInstance(t,o);t.floatingOptions={};t.disabled=false;t.width=320;t.header=false;t.footer=false;t.closable=false;t.isVisible=false;return t}Object.defineProperty(o.prototype,"options",{get:function(){var e,o,t;return{placement:(e=this.floatingOptions.placement)!==null&&e!==void 0?e:"bottom",offset:getOffset((o=this.floatingOptions)===null||o===void 0?void 0:o.hideArrow,(t=this.floatingOptions)===null||t===void 0?void 0:t.offset,OFFSET),arrow:this.floatingOptions.hideArrow?undefined:this.arrowElement,strategy:"fixed",shift:true,flip:true}},enumerable:false,configurable:true});Object.defineProperty(o.prototype,"popoverWidth",{get:function(){if(this.width==="full")return"100%";if(this.width==="auto")return"auto";return"".concat(this.width,"px")},enumerable:false,configurable:true});Object.defineProperty(o.prototype,"hooks",{get:function(){var e=this;return{onPositionUpdate:function(o){return e.handlePosition(o)},onBeforeShow:function(){return!e.disabled},onAfterShow:function(){return e.attachClickOutside()},onAfterHide:function(){return e.detachClickOutside()},onBeforeLoad:function(){return e.attachTrigger()},subscribeToTrigger:function(o){return e.subscribe(o)}}},enumerable:false,configurable:true});o.prototype.attachClickOutside=function(){var e=this;var o;if(((o=this.floatingOptions)===null||o===void 0?void 0:o.closeOnClickOutside)===false)return;this.boundClickOutside=function(o){return e.handleClickOutside(o)};document.addEventListener("mousedown",this.boundClickOutside)};o.prototype.detachClickOutside=function(){var e;if(((e=this.floatingOptions)===null||e===void 0?void 0:e.closeOnClickOutside)===false)return;if(this.boundClickOutside!==null){document.removeEventListener("mousedown",this.boundClickOutside);this.boundClickOutside=function(){}}};o.prototype.setArrowPosition=function(e){var o,t;if(((o=e.middlewareData)===null||o===void 0?void 0:o.arrow)&&!this.disabled&&((t=this.arrowElement)===null||t===void 0?void 0:t.isConnected)){var r=this.floatingOptions.placement;var a=e.middlewareData.arrow;var n=r==="top-start"||r==="bottom-start";var i=a.x||undefined;if(n)i=a.x?20:undefined;var s=e.middlewareData.arrow.y;Object.assign(this.arrowElement.style,{left:i!=null?"".concat(i,"px"):"",top:s!=null?"".concat(s,"px"):""})}};o.prototype.handleClickOutside=function(e){var o,t,r;var a=e.target;var n=((o=this.listenTarget)===null||o===void 0?void 0:o.contains(a))||((t=this.trigger)===null||t===void 0?void 0:t.contains(a))||((r=this.triggerSlot)===null||r===void 0?void 0:r.contains(a));var i=this.floatingContent.contains(a)||this.floatingContent===a;if(!n&&!i){this.hide()}};o.prototype.handleContentClick=function(e){e.stopPropagation();this.handleFloatingClick()};o.prototype.handleFloatingClick=function(){if(this.floatingOptions.closeOnClick)this.hide()};o.prototype.handlePosition=function(e){var o=this;var t;this.floatingContent.setAttribute("data-placement",e.placement);this.setArrowPosition(e);if(this.width==="full"&&this.triggerSlot!==null&&this.triggerSlot!==undefined){var r=(t=this.triggerSlot.parentElement)!==null&&t!==void 0?t:this.triggerSlot;var a=r.getBoundingClientRect().width;var n=this.floatingContent.getBoundingClientRect().width;if(Math.round(n)!==Math.round(a)){this.floatingContent.style.width="".concat(a,"px")}void this.updatePosition(this.triggerSlot,this.floatingContent,this.options,(function(e){o.floatingContent.setAttribute("data-placement",e.placement);o.setArrowPosition(e)}))}else if(this.width==="auto"){this.floatingContent.style.width=""}};o.prototype.attachTrigger=function(){if(this.trigger!==null&&this.trigger!==undefined)return};o.prototype.subscribe=function(e){var o=this;if(e===undefined)return;this.trigger=e;e.setAttribute("part","popover-trigger");e.setAttribute("ariaDescribedBy","popover-content");e.setAttribute("aria-haspopup","true");e.setAttribute("aria-expanded","false");var t=e.closest("bds-button, bds-input, bds-select");if(t!==null&&t!==undefined){var r=t.querySelector("button, input");var a=r!==null&&r!==void 0?r:t;this.listenTarget=a;this.listenTarget.addEventListener("click",(function(e){return o.handleShow(e)}));this.listenTarget.addEventListener("keydown",(function(e){return o.handleKeydown(e,(function(){return o.showElement()}),(function(){return o.hideElement()}))}))}else{this.trigger.addEventListener("click",(function(e){return o.handleShow(e)}));this.trigger.addEventListener("keydown",(function(e){return o.handleKeydown(e,(function(){return o.showElement()}),(function(){return o.hideElement()}))}))}};o.prototype.handleShow=function(e){e.stopPropagation();this.toggle()};Object.defineProperty(o.prototype,"canShowArrow",{get:function(){return!this.floatingOptions.hideArrow||false},enumerable:false,configurable:true});Object.defineProperty(o.prototype,"getPlacement",{get:function(){return this.floatingOptions.placement||"bottom"},enumerable:false,configurable:true});Object.defineProperty(o.prototype,"hasHeaderSlot",{get:function(){return this.el.querySelector('[slot="header"]')!==null},enumerable:false,configurable:true});Object.defineProperty(o.prototype,"hasFooterSlot",{get:function(){return this.el.querySelector('[slot="footer"]')!==null},enumerable:false,configurable:true});o.prototype.disconnectedCallback=function(){var e=this;this.listenTarget.removeEventListener("click",(function(o){return e.handleShow(o)}));this.trigger.removeEventListener("click",(function(o){return e.handleShow(o)}))};o.prototype.render=function(){var e=this;return h(Host,{key:"953571ebcd84e1e6910f3fce9aa59ff1b00c1be7",class:"popover",style:{width:this.popoverWidth},popover:"manual",role:"tooltip","data-placement":this.getPlacement,"data-hidearrow":this.canShowArrow,"aria-hidden":this.isVisible?"false":"true",onClick:function(o){return e.handleContentClick(o)},ref:function(o){return e.floatingContent=o}},this.header&&h("div",{key:"435cde7702b5db7ddc5f055ab379ef264a8cac16",class:"popover-header"},h("div",{key:"a3ac8f2b6610090d5947dc299a9ce62d85265e86",class:"popover-header__content"},h("span",{key:"ed1cbb198c54ffba2c7ce22085cb43648d6b7f3d",class:"popover-header__icon"},h("slot",{key:"b3049ec3dc2ad99037a662553103facad38af4f9",name:"header-icon"})),h("span",{key:"591ccd19d65f3a485062be8e5e4acf57a3ff4539",class:"popover-header__title"},h("slot",{key:"9b65d0180f3728906302426f6436034e80f1c783",name:"header-title"}))),this.closable&&h("bds-button",{key:"5e13390200231b50e4a9c38fb22c623bf28d105f",class:"popover-header__close",size:BUTTON_SIZES.SMALL,onBdsClick:function(){return e.hide()}},h("em",{key:"20ea602f48d1f27ee0b10c929a4a2194304a35b2",slot:"icon",class:"bds-icon-close"}))),this.canShowArrow&&h("div",{key:"551089a9b038a27277398dac47b8e72b2f3d9286",class:"popover-arrow",part:"arrow",ref:function(o){return e.arrowElement=o}}),h("div",{key:"17a6a939f83dd930aafc416b48da124faa27a4e0",class:"popover-content",tabIndex:-1,part:"popover-content"},h("slot",{key:"ab7cfa10649128cc387a54cf052429425696269a"})),this.footer&&h("div",{key:"7cf9fa351928fd823a49541764cdd67bd2d57def",class:"popover-footer",onClick:function(e){return e.stopPropagation()}},h("slot",{key:"b6a20d06d0964f6dea85afdd40a46a6fb737bbac",name:"footer-helper"}),h("slot",{key:"379b2b43a1e937775149e686686da9e4554dd962",name:"footer-button"})))};Object.defineProperty(o.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return o}(Mixin(anchoredMixin));BdsPopover.style=bdsPopoverCss();export{BdsPopover as bds_popover};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-BqJlOB6b.js";var bdsRadioButtonCss=function(){return'@charset "UTF-8";.bds-radio-button__info{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center}.bds-radio-button{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;gap:var(--boreal-spacing-2xs);padding:var(--boreal-spacing-2xs) var(--boreal-spacing-s);border:1px solid transparent;border-radius:var(--boreal-radius-s);background-color:var(--boreal-ui-default-base);color:var(--boreal-text-default);cursor:pointer;outline:none;-webkit-transition:background-color 0.3s ease, border-color 0.3s ease, -webkit-box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, -webkit-box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, -webkit-box-shadow 0.3s ease}.bds-radio-button input[type=radio]{position:absolute;opacity:0;width:0;height:0;margin:0;pointer-events:none}.bds-radio-button:hover:not(.bds-radio-button--disabled):not(.bds-radio-button--checked):not(.bds-radio-button--error){background-color:var(--boreal-ui-default-lighter);-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-radio-button:focus-visible,.bds-radio-button:focus{z-index:1;background-color:var(--boreal-ui-default-lighter);-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus);box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus);outline:none}.bds-radio-button:active:not(.bds-radio-button--disabled):not(.bds-radio-button--checked):not(.bds-radio-button--error){z-index:1;background-color:var(--boreal-ui-default-lighter);-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus), 0 1px 2px 0 rgba(19, 19, 22, 0.15) inset;box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus), 0 1px 2px 0 rgba(19, 19, 22, 0.15) inset}.bds-radio-button--checked{background-color:var(--boreal-ui-inverse);border-color:var(--boreal-stroke-primary-base);color:var(--boreal-text-primary-base)}.bds-radio-button--checked:hover,.bds-radio-button--checked:focus-visible,.bds-radio-button--checked:focus,.bds-radio-button--checked:active{background-color:var(--boreal-ui-primary-lighter)}.bds-radio-button--error{background-color:var(--boreal-ui-inverse);color:var(--boreal-text-danger-base)}.bds-radio-button--error:hover,.bds-radio-button--error:focus-visible,.bds-radio-button--error:focus,.bds-radio-button--error:active{background-color:var(--boreal-ui-danger-lighter)}.bds-radio-button--error.bds-radio-button--checked{border-color:var(--boreal-stroke-danger-base)}.bds-radio-button--disabled{cursor:not-allowed;pointer-events:none;background-color:var(--boreal-ui-inverse);color:var(--boreal-text-disabled)}.bds-radio-button--disabled.bds-radio-button--checked{border-color:var(--boreal-stroke-primary-light);color:var(--boreal-text-primary-light)}.bds-radio-button__label{font-family:var(--boreal-typography-font-family-primary);font-size:var(--boreal-typography-font-size-sm);font-weight:var(--boreal-typography-font-weight-semibold);line-height:var(--boreal-typography-line-height-sm)}.bds-radio-button__icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.bds-radio-button__icon:empty{display:none}.bds-radio-button__info-icon{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;font-size:var(--boreal-typography-font-size-sm);line-height:1;color:var(--boreal-icon-default-ink)}'};var BdsRadioButton=function(){function e(e){var o=this;registerInstance(this,e);this.bdsChange=createEvent(this,"bdsChange");this.checked=false;this.disabled=false;this.error=false;this.value="on";this.name="";this.label="";this.info="";this.handleClick=function(){return o.select()};this.handleKeyDown=function(e){if(e.key===" "){e.preventDefault();o.select()}}}e.prototype.componentDidLoad=function(){this.el.setAttribute("role","radio");this.el.setAttribute("aria-checked",String(this.checked));this.el.setAttribute("tabindex","-1")};e.prototype.select=function(){if(this.disabled||this.checked)return;this.checked=true;this.el.setAttribute("aria-checked","true");this.bdsChange.emit({checked:true,value:this.value})};Object.defineProperty(e.prototype,"classMap",{get:function(){return{"bds-radio-button":true,"bds-radio-button--checked":this.checked,"bds-radio-button--error":this.error,"bds-radio-button--disabled":this.disabled}},enumerable:false,configurable:true});e.prototype.render=function(){var e=this;return h(Host,{key:"63fe01baf9bf2318441f3a742ba857a540f4d7d0",class:this.classMap,onClick:this.handleClick,onKeyDown:this.handleKeyDown},h("input",{key:"19fd44e41ef583131da77206f9e0c987132a5cc4",type:"radio",name:this.name,value:this.value,checked:this.checked,disabled:this.disabled,"aria-hidden":"true",tabIndex:-1,onFocus:function(){return e.el.focus()}}),h("span",{key:"cfbe81b25b71aeda4786b6073c9b16bcc819bf7b",class:"bds-radio-button__icon"},h("slot",{key:"ffa28a8602ea92c990b3e365d6cd421975f896fc",name:"icon"})),h("span",{key:"c0a6512f836a00718ee71d5542b714900357ac82",class:"bds-radio-button__label"},this.label||h("slot",{key:"29c89fa661270a7cc5ee69eb5c7cbc594af05d40"})),this.info&&h("span",{key:"74c3d43733ac679427e1b4fdbfcb4e72dae335a8",class:"bds-radio-button__info"},h("span",{key:"567d225444acc5384df916a16a35867592327895",class:"bds-radio-button__info-icon bds-icon-info-circle","aria-hidden":"true"}),h("bds-tooltip",{key:"8120fe06d5a0f85d03205abc54f3e8112946ad4f"},this.info)))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();BdsRadioButton.style=bdsRadioButtonCss();export{BdsRadioButton as bds_radio_button};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-BqJlOB6b.js";var bdsRadioCardCss=function(){return'@charset "UTF-8";.bds-radio-card--transition{-webkit-transition:background-color 0.3s ease, border-color 0.3s ease, -webkit-box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, -webkit-box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, -webkit-box-shadow 0.3s ease}.bds-radio-card{position:relative;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;cursor:pointer;font-family:var(--boreal-typography-font-family-primary);background-color:var(--boreal-ui-inverse);padding:var(--boreal-spacing-xs) var(--boreal-spacing-s) var(--boreal-spacing-s);border-radius:var(--boreal-radius-xs);border:var(--boreal-spacing-4xs) solid var(--boreal-stroke-default-light)}.bds-radio-card:hover{background-color:var(--boreal-ui-default-lighter);-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-radio-card:focus-within,.bds-radio-card:focus{background-color:var(--boreal-ui-default-lighter);-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus);box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus)}.bds-radio-card:focus-visible{outline:none}.bds-radio-card input[type=radio]{position:absolute;opacity:0;width:0;height:0;margin:0;pointer-events:none}.bds-radio-card__container{display:-ms-inline-flexbox;display:inline-flex;gap:var(--boreal-spacing-xs);-ms-flex-align:start;align-items:flex-start}.bds-radio-card__button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-negative:0;flex-shrink:0;width:var(--bds-radio-button-size, 18px);height:var(--bds-radio-button-size, 18px);margin-top:var(--boreal-spacing-2xs);border-radius:var(--boreal-radius-full);border:var(--boreal-spacing-4xs) solid var(--boreal-stroke-default-light);background-color:var(--boreal-ui-inverse);-webkit-transition:background-color 0.3s ease, border-color 0.3s ease, -webkit-box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, -webkit-box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, -webkit-box-shadow 0.3s ease}.bds-radio-card__dot{width:var(--bds-radio-dot-size, 10px);height:var(--bds-radio-dot-size, 10px);border-radius:var(--boreal-radius-full);background-color:transparent;-webkit-transition:background-color 0.3s ease, border-color 0.3s ease, -webkit-box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, -webkit-box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, -webkit-box-shadow 0.3s ease}.bds-radio-card__header{display:-ms-inline-flexbox;display:inline-flex;gap:var(--boreal-spacing-3xs);color:var(--boreal-text-default)}.bds-radio-card__title{font-weight:var(--boreal-typography-font-weight-semibold);font-size:var(--boreal-typography-font-size-md);line-height:var(--boreal-typography-line-height-md)}.bds-radio-card__info-icon{font-size:var(--boreal-typography-font-size-xs);color:var(--boreal-icon-default-light)}.bds-radio-card__icon:empty{display:none}.bds-radio-card:has(.bds-radio-card__description:empty) .bds-radio-card__container{-ms-flex-align:center;align-items:center}.bds-radio-card:has(.bds-radio-card__description:empty) .bds-radio-card__content{height:var(--boreal-spacing-l)}.bds-radio-card:has(.bds-radio-card__description:empty) .bds-radio-card__button{margin-top:0}.bds-radio-card--checked{border-color:var(--boreal-stroke-primary-base)}.bds-radio-card--checked:hover,.bds-radio-card--checked:focus,.bds-radio-card--checked:focus-within,.bds-radio-card--checked:active{background-color:var(--boreal-ui-primary-lighter)}.bds-radio-card--checked .bds-radio-card__button{border-color:var(--boreal-stroke-primary-base)}.bds-radio-card--checked .bds-radio-card__dot{background-color:var(--boreal-ui-primary-base)}.bds-radio-card--checked .bds-radio-card__header,.bds-radio-card--checked .bds-radio-card__description{color:var(--boreal-text-primary-base)}.bds-radio-card--disabled{pointer-events:none}.bds-radio-card--disabled .bds-radio-card__header,.bds-radio-card--disabled .bds-radio-card__description{color:var(--boreal-text-disabled)}.bds-radio-card--disabled:not(.bds-radio-card--checked) .bds-radio-card__button{background-color:var(--boreal-ui-disabled)}.bds-radio-card--disabled.bds-radio-card--checked,.bds-radio-card--disabled.bds-radio-card--checked .bds-radio-card__button{border-color:var(--boreal-ui-primary-light)}.bds-radio-card--disabled.bds-radio-card--checked .bds-radio-card__dot{background-color:var(--boreal-ui-primary-light)}.bds-radio-card--disabled.bds-radio-card--checked .bds-radio-card__header,.bds-radio-card--disabled.bds-radio-card--checked .bds-radio-card__description{color:var(--boreal-ui-primary-light)}.bds-radio-card--error{border-color:var(--boreal-stroke-danger-base)}.bds-radio-card--error:hover,.bds-radio-card--error:focus,.bds-radio-card--error:focus-within,.bds-radio-card--error:active{background-color:var(--boreal-ui-danger-lighter)}.bds-radio-card--error .bds-radio-card__header,.bds-radio-card--error .bds-radio-card__description{color:var(--boreal-text-danger-base)}.bds-radio-card--error .bds-radio-card__button{border-color:var(--boreal-stroke-danger-base)}.bds-radio-card--error.bds-radio-card--checked .bds-radio-card__dot{background-color:var(--boreal-ui-danger-base)}'};var BdsRadioCard=function(){function a(a){var r=this;registerInstance(this,a);this.bdsChange=createEvent(this,"bdsChange");this.value="on";this.info="";this.name="";this.label="";this.checked=false;this.disabled=false;this.error=false;this.handleClick=function(){return r.select()};this.handleKeyDown=function(a){if(a.key===" "){a.preventDefault();r.select()}}}a.prototype.select=function(){if(this.disabled||this.checked)return;this.checked=true;this.bdsChange.emit({checked:true,value:this.value})};a.prototype.componentDidLoad=function(){var a=this;requestAnimationFrame((function(){a.el.classList.add("bds-radio-card--transition")}))};Object.defineProperty(a.prototype,"isError",{get:function(){return this.error&&!this.disabled},enumerable:false,configurable:true});Object.defineProperty(a.prototype,"hostClasses",{get:function(){return{"bds-radio-card":true,"bds-radio-card--disabled":this.disabled,"bds-radio-card--checked":this.checked,"bds-radio-card--error":this.isError}},enumerable:false,configurable:true});a.prototype.render=function(){var a=this;return h(Host,{key:"4cdff470403b54e66ad92434ab229406d8e8ef2b",class:this.hostClasses,role:"radio","aria-checked":"".concat(this.checked),"aria-disabled":this.disabled?"true":"false","aria-invalid":this.isError?"true":"false",tabIndex:this.disabled?-1:0,onClick:this.handleClick,onKeyDown:this.handleKeyDown},h("div",{key:"2019eb2a3aa666c3115dfe0c9fd1fed2a18e02de",class:"bds-radio-card__container"},h("input",{key:"d3e47807abff5bfe0ae1d61e8cdda12d047449e5",class:"bds-radio-card__input",type:"radio",name:this.name,value:this.value,checked:this.checked,disabled:this.disabled,tabIndex:-1,onFocus:function(){return a.el.focus()}}),h("span",{key:"091b3ad34ffc7335c07e899645ebb944e0629fe6",class:"bds-radio-card__button"},h("span",{key:"1e717309877f85d8c8d3d635714664c997ab4097",class:"bds-radio-card__dot"})),h("div",{key:"dfc0604e2acbb5db112e410029d057f66e23d71f",class:"bds-radio-card__content"},h("div",{key:"8206a03a6095600fafbc70e1ce43ed85b4204441",class:"bds-radio-card__header"},h("div",{key:"a93dc203f940d4b03622f4896f2799d6379e3e01",class:"bds-radio-card__icon"},h("slot",{key:"a410dff923959aef7695fa4e72b2cb8d4a551ba1",name:"icon"})),h("div",{key:"fb598d2bc0e231171454974041998eea8ee9c1b3",class:"bds-radio-card__title"},this.label||h("slot",{key:"98d45578384b5132140c4ff1db0964f4f19a6faa"}))),h("bds-typography",{key:"ff6f0f7b6d293f73b1d2beb3d1f6998889dbb868",variant:"helper"},h("slot",{key:"73529f1e31f946f0da04334cbf65ff439b74c0d4",name:"description"})))),this.info&&h("span",{key:"7bf6f3803b50675cc9dec6256a938dfb45bbdee1",class:"bds-radio-card__info-icon","aria-label":this.info},h("em",{key:"f472d256e753650c94739c0fb2218e5cf62f0543",class:"bds-icon-info-circle"},h("bds-tooltip",{key:"3e2fe945dbe4a7b9cac470c9e497725937eaabd0"},this.info))))};Object.defineProperty(a.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return a}();BdsRadioCard.style=bdsRadioCardCss();export{BdsRadioCard as bds_radio_card};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __extends=this&&this.__extends||function(){var t=function(i,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)if(Object.prototype.hasOwnProperty.call(i,r))t[r]=i[r]};return t(i,r)};return function(i,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(i,r);function e(){this.constructor=i}i.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}();var __awaiter=this&&this.__awaiter||function(t,i,r,e){function n(t){return t instanceof r?t:new r((function(i){i(t)}))}return new(r||(r=Promise))((function(r,o){function a(t){try{u(e.next(t))}catch(t){o(t)}}function s(t){try{u(e["throw"](t))}catch(t){o(t)}}function u(t){t.done?r(t.value):n(t.value).then(a,s)}u((e=e.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},e,n,o,a=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return a.next=s(0),a["throw"]=s(1),a["return"]=s(2),typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(i){return u([t,i])}}function u(s){if(e)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(r=0)),r)try{if(e=1,n&&(o=s[0]&2?n["return"]:s[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;if(n=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;n=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){r.label=s[1];break}if(s[0]===6&&r.label<o[1]){r.label=o[1];o=s;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(s);break}if(o[2])r.ops.pop();r.trys.pop();continue}s=i.call(t,r)}catch(t){s=[6,t];n=0}finally{e=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{M as Mixin,r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-BqJlOB6b.js";import{f as formAssociatedMixin}from"./form-associated.mixin-C4HM8wQe.js";import{O as ORIENTATIONS}from"./orientation-CPvuMm5C.js";import{c as createId}from"./BaseAttributes-DhSchGPI.js";import{v as validatePropValue}from"./validateProps-kGnB15Lz.js";import{K as KEYBOARD}from"./Keys-DlYG-OVB.js";var RADIO_GROUP_TYPES={RADIO:"radio"};var bdsRadioGroupCss=function(){return'@charset "UTF-8";.bds-radio-group{--bds-divider-gap:var(--boreal-spacing-3xs);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:var(--boreal-spacing-2xs)}.bds-radio-group__options{display:grid;grid-template-columns:1fr;gap:var(--boreal-spacing-xs)}.bds-radio-group[orientation=horizontal] .bds-radio-group__options{grid-template-columns:repeat(var(--layout-count, 1), auto);-ms-flex-pack:start;justify-content:start}.bds-radio-group[type=radiobutton] .bds-radio-group__options{display:-ms-inline-flexbox;display:inline-flex;gap:0;padding:var(--boreal-spacing-3xs);border:1px solid var(--boreal-stroke-default-light);background-color:var(--boreal-ui-inverse);border-radius:var(--boreal-radius-xs);overflow:hidden}.bds-radio-group[type=radiobutton][orientation=vertical] .bds-radio-group__options{-ms-flex-direction:column;flex-direction:column}.bds-radio-group[type=radiobutton].bds-radio-group--error .bds-radio-group__options{border-color:var(--boreal-stroke-danger-base)}.bds-radio-group[type=radiobutton].bds-radio-group--error bds-radio-button.bds-radio-button--error{color:var(--boreal-stroke-danger-base)}.bds-radio-group[type=radiobutton].bds-radio-group--error bds-divider[data-injected]{--bds-divider-color:var(--boreal-stroke-danger-base)}'};var LEAF_TAGS=["BDS-RADIO","BDS-RADIO-BUTTON","BDS-RADIO-CARD"];var BdsRadioGroup=function(t){__extends(i,t);function i(i){var r=t.call(this)||this;registerInstance(r,i);r.bdsChange=createEvent(r,"bdsChange");r.valueChange=createEvent(r,"valueChange");if(i.$hostElement$["s-ei"]){r.internals=i.$hostElement$["s-ei"]}else{r.internals=i.$hostElement$.attachInternals();i.$hostElement$["s-ei"]=r.internals}r._id=createId("bds-radio-group");r.isDisabled=false;r.isInvalid=false;r.disabled=false;r.error=false;r.errorMessage="";r.helperText="";r.info="";r.label="";r.orientation=ORIENTATIONS.VERTICAL;r.required=false;r.type=RADIO_GROUP_TYPES.RADIO;r.value="";r.handleKeyDown=function(t){var i=t.target;if(!LEAF_TAGS.includes(i.tagName))return;switch(t.key){case KEYBOARD.ArrowDown:case KEYBOARD.ArrowRight:r.navigateTo(i,true);t.preventDefault();break;case KEYBOARD.ArrowUp:case KEYBOARD.ArrowLeft:r.navigateTo(i,false);t.preventDefault();break}};r.handleSlotChange=function(){r.updateLayoutCount()};r._buttonCount=0;return r}i.prototype.checkPropValues=function(){validatePropValue(Object.values(ORIENTATIONS),ORIENTATIONS.VERTICAL,this.el,"orientation")};i.prototype.onDisabledChange=function(t){this.isDisabled=t;this.radioElements.forEach((function(i){return i.disabled=t}))};i.prototype.onErrorChange=function(t){this.radioElements.forEach((function(i){return i.error=t}))};i.prototype.onValueChange=function(t){this.radioElements.forEach((function(i){i.checked=i.value===t;i.setAttribute("aria-checked",String(i.value===t))}));var i=this.radioElements.find((function(t){return t.checked}));this.updateTabIndexes(i!==null&&i!==void 0?i:null)};i.prototype.componentWillLoad=function(){var t;this.checkPropValues();this.isDisabled=this.disabled;if(this.value===""){var i=Array.from(this.el.querySelectorAll("bds-radio[checked], bds-radio-button[checked], bds-radio-card[checked]")).at(-1);if(i!==undefined){this.value=(t=i.getAttribute("value"))!==null&&t!==void 0?t:""}}};i.prototype.componentDidLoad=function(){var t,i;var r=this.radioElements.filter((function(t){return t.checked}));if(r.length>1){r.slice(0,-1).forEach((function(t){return t.checked=false}))}this.onValueChange(this.value);if(this.error)this.radioElements.forEach((function(t){return t.error=true}));this.updateLayoutCount();this.updateTabIndexes((i=(t=this.radioElements.find((function(t){return t.checked})))!==null&&t!==void 0?t:this.radioElements.find((function(t){return!t.disabled})))!==null&&i!==void 0?i:null);this.updateFormValidity()};i.prototype.formAssociatedCallback=function(){this.syncFormValue()};i.prototype.formResetCallback=function(){var t=this;this.value="";this.isInvalid=false;this.radioElements.forEach((function(i){i.checked=false;i.setAttribute("aria-checked","false");if(!t.error)i.error=false}));this.internals.setFormValue(null);this.updateFormValidity();var i=this.radioElements.find((function(t){return!t.disabled}));this.updateTabIndexes(i!==null&&i!==void 0?i:null)};i.prototype.formStateRestoreCallback=function(t,i){var r=typeof t==="string"?t:"";this.value=r;this.internals.setFormValue(r!==""?r:null)};i.prototype.formDisabledCallback=function(t){this.isDisabled=t;this.radioElements.forEach((function(i){return i.disabled=t}))};i.prototype.handleRadioChange=function(t){var i=t.target;if(!LEAF_TAGS.includes(i.tagName))return;this.radioElements.filter((function(t){return t!==i})).forEach((function(t){t.checked=false;t.setAttribute("aria-checked","false")}));this.value=t.detail.value;this.internals.setFormValue(this.value);this.updateTabIndexes(i);this.updateFormValidity();this.bdsChange.emit({value:this.value});this.valueChange.emit(this.value)};i.prototype.handleInvalid=function(t){if(this.errorMessage!==""){t.preventDefault();this.isInvalid=true;this.radioElements.forEach((function(t){return t.error=true}))}};i.prototype.checkValidity=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.internals.checkValidity()]}))}))};i.prototype.reportValidity=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.internals.reportValidity()]}))}))};i.prototype.navigateTo=function(t,i){var r=this.radioElements.filter((function(t){return!t.disabled}));if(r.length===0)return;var e=r.indexOf(t);var n=(r.length+e+(i?1:-1))%r.length;var o=r[n];o.checked=true;o.setAttribute("aria-checked","true");this.radioElements.filter((function(t){return t!==o})).forEach((function(t){t.checked=false;t.setAttribute("aria-checked","false")}));this.value=o.value;this.internals.setFormValue(this.value);this.updateTabIndexes(o);this.updateFormValidity();this.bdsChange.emit({value:this.value});this.valueChange.emit(this.value);o.focus()};i.prototype.insertDividers=function(){this.el.querySelectorAll("bds-divider[data-injected]").forEach((function(t){return t.remove()}));if(this.type!=="radiobutton")return;var t=this.orientation===ORIENTATIONS.HORIZONTAL?ORIENTATIONS.VERTICAL:ORIENTATIONS.HORIZONTAL;var i=this.radioElements.filter((function(t){return t.tagName==="BDS-RADIO-BUTTON"}));i.forEach((function(i,r){var e;if(r===0)return;var n=document.createElement("bds-divider");n.setAttribute("orientation",t);n.setAttribute("data-injected","");(e=i.parentNode)===null||e===void 0?void 0:e.insertBefore(n,i)}))};Object.defineProperty(i.prototype,"radioElements",{get:function(){return Array.from(this.el.querySelectorAll("bds-radio, bds-radio-button, bds-radio-card"))},enumerable:false,configurable:true});i.prototype.syncFormValue=function(){this.internals.setFormValue(this.value!==""?this.value:null);this.updateFormValidity()};i.prototype.updateFormValidity=function(){if(this.required&&this.value===""){var t=this.radioElements.find((function(t){return!t.disabled}));this.internals.setValidity({valueMissing:true},this.errorMessage!==""?this.errorMessage:"Please select an option.",t)}else{this.internals.setValidity({});if(this.isInvalid){this.isInvalid=false;if(!this.error)this.radioElements.forEach((function(t){return t.error=false}))}}};i.prototype.updateLayoutCount=function(){var t=this.radioElements.length;this.el.style.setProperty("--layout-count","".concat(t));if(t!==this._buttonCount){this._buttonCount=t;this.insertDividers()}};i.prototype.updateTabIndexes=function(t){this.radioElements.forEach((function(t){return t.setAttribute("tabindex","-1")}));if(t!==null)t.setAttribute("tabindex","0")};Object.defineProperty(i.prototype,"isError",{get:function(){var t=this.error&&!this.disabled;return t||this.isInvalid},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"classMap",{get:function(){return{"bds-radio-group":true,"bds-radio-group--disabled":this.isDisabled,"bds-radio-group--error":this.isError,"bds-radio-group--required":this.required}},enumerable:false,configurable:true});i.prototype.render=function(){var t="".concat(this._id,"-label");var i="".concat(this._id,"-helper");var r=this.isError;var e=this.isDisabled?"disabled":r?"error":"default";var n=r&&this.errorMessage!==""?this.errorMessage:this.helperText;return h(Host,{key:"ab755f253ab7096e8ed0efa7196cedd96cdc7ca8",class:this.classMap,role:"radiogroup","aria-labelledby":this.label!==""?t:undefined,"aria-describedby":n!==""?i:undefined,"aria-invalid":r?"true":undefined,"aria-required":this.required?"true":undefined,onKeyDown:this.handleKeyDown},this.label&&h("bds-typography",{key:"85bc7d114efabd92930c6c934c19e4ba887a3663",id:t,variant:"label",state:e,required:this.required,tooltipText:this.info!==""?this.info:undefined},this.label),h("div",{key:"3f1670875353369c608c9cf064ccb1b7beede19a",class:"bds-radio-group__options"},h("slot",{key:"b0d52880c82dec9557c10bcf7ef8930299bdf7a6",onSlotchange:this.handleSlotChange})),n&&h("bds-typography",{key:"f0a17de329944c3fe63cf7cb586ec85016693208",id:i,variant:"helper",state:e},n))};Object.defineProperty(i,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(i,"watchers",{get:function(){return{orientation:[{checkPropValues:0}],disabled:[{onDisabledChange:0}],error:[{onErrorChange:0}],value:[{onValueChange:0}]}},enumerable:false,configurable:true});return i}(Mixin(formAssociatedMixin));BdsRadioGroup.style=bdsRadioGroupCss();export{BdsRadioGroup as bds_radio_group};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-BqJlOB6b.js";var bdsRadioCss=function(){return'@charset "UTF-8";.bds-radio__content,.bds-radio__icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.bds-radio__info{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center}.bds-radio{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;gap:var(--boreal-spacing-2xs);cursor:pointer;outline:none}.bds-radio input[type=radio]{position:absolute;opacity:0;width:0;height:0;margin:0;pointer-events:none}.bds-radio__content{gap:var(--boreal-spacing-3xs)}.bds-radio__icon{-ms-flex-negative:0;flex-shrink:0;line-height:1}.bds-radio__label{font-family:var(--boreal-typography-font-family-primary);font-size:var(--boreal-typography-font-size-sm);font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-sm);color:var(--boreal-text-default)}.bds-radio__button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-negative:0;flex-shrink:0;width:18px;height:18px;border-radius:var(--boreal-radius-full);border:1px solid var(--boreal-stroke-default-light);background-color:var(--boreal-ui-inverse);-webkit-transition:background-color 0.3s ease, border-color 0.3s ease, -webkit-box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, -webkit-box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, -webkit-box-shadow 0.3s ease}.bds-radio__dot{width:10px;height:10px;border-radius:var(--boreal-radius-full);background-color:transparent;-webkit-transition:background-color 0.3s ease, border-color 0.3s ease, -webkit-box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, -webkit-box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, -webkit-box-shadow 0.3s ease}.bds-radio__info-icon{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;font-size:var(--boreal-typography-font-size-sm);line-height:1;color:var(--boreal-icon-default-ink)}.bds-radio:hover:not(.bds-radio--disabled):not(.bds-radio--checked) .bds-radio__button{border-color:var(--boreal-stroke-default-light);-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-radio:hover:not(.bds-radio--disabled):not(.bds-radio--checked) .bds-radio__dot{background-color:var(--boreal-ui-base-light)}.bds-radio:is(:focus-visible,:focus) .bds-radio__button{-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus);box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus)}.bds-radio:active:not(.bds-radio--disabled):not(.bds-radio--checked) .bds-radio__button{-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus), 0 1px 2px 0 rgba(19, 19, 22, 0.15) inset;box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus), 0 1px 2px 0 rgba(19, 19, 22, 0.15) inset}.bds-radio--checked .bds-radio__button{border-color:var(--boreal-stroke-primary-base)}.bds-radio--checked .bds-radio__dot{background-color:var(--boreal-ui-primary-base)}.bds-radio--error .bds-radio__button{border-color:var(--boreal-stroke-danger-base)}.bds-radio--disabled{cursor:not-allowed;pointer-events:none}.bds-radio--disabled .bds-radio__button{border-color:var(--boreal-stroke-default-light);background-color:var(--boreal-ui-disabled)}.bds-radio--disabled .bds-radio__label{color:var(--boreal-text-disabled)}.bds-radio--disabled.bds-radio--checked .bds-radio__button{border-color:var(--boreal-ui-primary-light)}.bds-radio--disabled.bds-radio--checked .bds-radio__dot{background-color:var(--boreal-ui-primary-light)}'};var BdsRadio=function(){function e(e){var a=this;registerInstance(this,e);this.bdsChange=createEvent(this,"bdsChange");this.checked=false;this.disabled=false;this.value="on";this.name="";this.label="";this.error=false;this.info="";this.handleClick=function(){return a.select()};this.handleKeyDown=function(e){if(e.key===" "){e.preventDefault();a.select()}}}e.prototype.componentDidLoad=function(){this.el.setAttribute("role","radio");this.el.setAttribute("aria-checked",String(this.checked));this.el.setAttribute("tabindex","-1")};e.prototype.select=function(){if(this.disabled||this.checked)return;this.checked=true;this.el.setAttribute("aria-checked","true");this.bdsChange.emit({checked:true,value:this.value})};Object.defineProperty(e.prototype,"classMap",{get:function(){return{"bds-radio":true,"bds-radio--checked":this.checked,"bds-radio--error":this.error,"bds-radio--disabled":this.disabled}},enumerable:false,configurable:true});e.prototype.render=function(){var e=this;return h(Host,{key:"1d68465b5124471bda9fb1e4f3dc022d4f22be6d",class:this.classMap,onClick:this.handleClick,onKeyDown:this.handleKeyDown},h("input",{key:"8c820cf327a9978f6f098794e26a4ec0394e99c3",type:"radio",name:this.name,value:this.value,checked:this.checked,disabled:this.disabled,"aria-hidden":"true",tabIndex:-1,onFocus:function(){return e.el.focus()}}),h("span",{key:"6de9fcb7657842b81b4bf803e3e60b6891fef27e",class:"bds-radio__button"},h("span",{key:"660c57e990abc4f6f1288f93c198e9bb60be6c29",class:"bds-radio__dot"})),h("span",{key:"ec3879d0edb42cdbc7b4257d563d9c298fd3b89d",class:"bds-radio__content"},h("span",{key:"430b04fd6f836cf2881fecf9df56bee70486da85",class:"bds-radio__icon"},h("slot",{key:"30dcf8837cd50a9e48a6c061576f7b9d53eeabd9",name:"icon"})),h("span",{key:"dbb139d87c4689a64e2860b365d7c261c56b638b",class:"bds-radio__label"},this.label||h("slot",{key:"a7d985fa9773a8f285c36f3deaeb7112adf20f95"})),this.info&&h("span",{key:"36958330fd1ed9fa6f64bcf757c9be113fae5daf",class:"bds-radio__info"},h("span",{key:"ea5a415943c9f67f027a4b241d024ea61321a8a1",class:"bds-radio__info-icon bds-icon-info-circle","aria-hidden":"true"}),h("bds-tooltip",{key:"875105c226c6d1fb90d62fe275ed544f043a1c19"},this.info))))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();BdsRadio.style=bdsRadioCss();export{BdsRadio as bds_radio};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,h,a as Host,g as getElement}from"./index-
|
|
1
|
+
import{r as registerInstance,h,a as Host,g as getElement}from"./index-BqJlOB6b.js";import{v as validatePropValue}from"./validateProps-kGnB15Lz.js";var SPINNER_SIZES={SMALL:"sm",MEDIUM:"md",LARGE:"lg"};var bdsSpinnerCss=function(){return'@charset "UTF-8";bds-spinner{display:inline-block;position:relative;width:1em;height:1em}bds-spinner::before,bds-spinner::after{content:"";position:absolute;border-color:transparent transparent var(--boreal-primary-base) transparent;border-radius:50%;border-width:3px;border-style:solid;top:0;left:0;width:100%;height:100%;-webkit-box-sizing:border-box;box-sizing:border-box}bds-spinner::before{opacity:0.2;border-style:dashed;-webkit-animation:spin 0.8s linear infinite;animation:spin 0.8s linear infinite}bds-spinner::after{-webkit-animation:draw-arc 0.8s linear infinite;animation:draw-arc 0.8s linear infinite}.bds-spinner--small{width:var(--boreal-layout-m);height:var(--boreal-layout-m)}.bds-spinner--medium{width:var(--boreal-layout-ml);height:var(--boreal-layout-ml)}.bds-spinner--large{width:var(--boreal-layout-xl);height:var(--boreal-layout-xl)}.bds-spinner__sr-only{position:absolute;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip:rect(0, 0, 0, 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);white-space:nowrap;border:0}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes draw-arc{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}60%{-webkit-transform:rotate(330deg);transform:rotate(330deg)}65%{-webkit-transform:rotate(335deg);transform:rotate(335deg)}90%{-webkit-transform:rotate(350deg);transform:rotate(350deg)}95%{-webkit-transform:rotate(355deg);transform:rotate(355deg)}98%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes draw-arc{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}60%{-webkit-transform:rotate(330deg);transform:rotate(330deg)}65%{-webkit-transform:rotate(335deg);transform:rotate(335deg)}90%{-webkit-transform:rotate(350deg);transform:rotate(350deg)}95%{-webkit-transform:rotate(355deg);transform:rotate(355deg)}98%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}'};var BdsSpinner=function(){function e(e){registerInstance(this,e);this.size=SPINNER_SIZES.SMALL;this.label="Loading"}e.prototype.checkPropValues=function(){validatePropValue(Object.values(SPINNER_SIZES),SPINNER_SIZES.SMALL,this.el,"size")};e.prototype.componentWillLoad=function(){this.checkPropValues()};Object.defineProperty(e.prototype,"getClassMap",{get:function(){return{"bds-spinner":true,"bds-spinner--small":this.size===SPINNER_SIZES.SMALL,"bds-spinner--medium":this.size===SPINNER_SIZES.MEDIUM,"bds-spinner--large":this.size===SPINNER_SIZES.LARGE}},enumerable:false,configurable:true});e.prototype.render=function(){return h(Host,{key:"7e7846adadb6224abfcaaf2478768b72ec712659",class:this.getClassMap,role:"status","aria-label":this.label,"aria-live":"polite","aria-busy":"true"},h("span",{key:"1c6aad446ed35a3adcb4e4f28fd4a3e7b9b7cb3a",class:"bds-spinner__sr-only"},this.label))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{size:[{checkPropValues:0}]}},enumerable:false,configurable:true});return e}();BdsSpinner.style=bdsSpinnerCss();export{BdsSpinner as bds_spinner};
|