@telesign/boreal-web-components 0.1.0-alpha.3 → 0.1.0-alpha.4
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.js +1 -1
- 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-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-B8n1ru5i.js +1 -0
- package/components-build/p-Bfazyxqi.js +1 -0
- package/components-build/p-CGdxFth9.js +1 -0
- package/components-build/p-CrAt6pGl.js +1 -0
- package/components-build/p-DCwT43Kz.js +1 -0
- package/components-build/p-DIY3CDNL.js +1 -0
- package/components-build/p-DhSchGPI.js +1 -0
- package/components-build/p-kGnB15Lz.js +1 -0
- package/custom-elements.json +2588 -540
- 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-0028481c.entry.js +1 -0
- package/dist/boreal-web-components/p-127a4134.entry.js +1 -0
- package/dist/boreal-web-components/p-1466de58.system.entry.js +1 -0
- package/dist/boreal-web-components/p-1d1bb9d2.entry.js +1 -0
- package/dist/boreal-web-components/p-2158a7cd.entry.js +1 -0
- package/dist/boreal-web-components/{p-8c57e06a.entry.js → p-251b3002.entry.js} +1 -1
- package/dist/boreal-web-components/p-251d35df.system.entry.js +1 -0
- package/dist/boreal-web-components/{p-fc2cb919.entry.js → p-2b8bd1dd.entry.js} +1 -1
- package/dist/boreal-web-components/p-32c23246.system.entry.js +1 -0
- package/dist/boreal-web-components/p-3fbcc233.entry.js +1 -0
- package/dist/boreal-web-components/p-401f1aee.system.entry.js +1 -0
- package/dist/boreal-web-components/p-41b48701.system.entry.js +1 -0
- package/dist/boreal-web-components/p-41cac1b8.system.entry.js +1 -0
- package/dist/boreal-web-components/p-44ceff4e.system.entry.js +1 -0
- package/dist/boreal-web-components/{p-efe57901.system.entry.js → p-52600375.system.entry.js} +1 -1
- package/dist/boreal-web-components/p-627b19a5.system.entry.js +1 -0
- package/dist/boreal-web-components/p-649737e5.entry.js +1 -0
- package/dist/boreal-web-components/p-64cb5825.entry.js +1 -0
- package/dist/boreal-web-components/p-66360e63.entry.js +1 -0
- package/dist/boreal-web-components/p-695d0830.entry.js +1 -0
- package/dist/boreal-web-components/p-6a99f4c6.system.entry.js +1 -0
- package/dist/boreal-web-components/p-731b88cc.entry.js +1 -0
- package/dist/boreal-web-components/{p-22378341.system.entry.js → p-74c13bed.system.entry.js} +1 -1
- package/dist/boreal-web-components/p-7a4efddd.system.entry.js +1 -0
- package/dist/boreal-web-components/p-7db870b7.entry.js +1 -0
- package/dist/boreal-web-components/p-7f7ac40f.entry.js +1 -0
- package/dist/boreal-web-components/p-80822731.system.entry.js +1 -0
- package/dist/boreal-web-components/p-82d49661.entry.js +1 -0
- package/dist/boreal-web-components/p-83ca193e.entry.js +1 -0
- package/dist/boreal-web-components/p-871c9a9f.system.entry.js +1 -0
- package/dist/boreal-web-components/p-BQ_zoZa2.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-CXz1RLGi.system.js +1 -0
- package/dist/boreal-web-components/p-CtknSula.system.js +1 -0
- package/dist/boreal-web-components/p-CvK2d92c.js +1 -0
- package/dist/boreal-web-components/p-CzYQb3pP.js +1 -0
- package/dist/boreal-web-components/p-DCKg5Cg_.system.js +2 -0
- package/dist/boreal-web-components/p-DZcx75cy.system.js +1 -0
- package/dist/boreal-web-components/p-DhSchGPI.js +1 -0
- package/dist/boreal-web-components/{p-BkDQsB4R.system.js → p-Dme-NuTD.system.js} +1 -1
- package/dist/boreal-web-components/p-RhSdMyWk.system.js +1 -0
- package/dist/boreal-web-components/{p-5fa53a80.system.entry.js → p-ab5ffa15.system.entry.js} +1 -1
- package/dist/boreal-web-components/p-b12d4788.system.entry.js +1 -0
- package/dist/boreal-web-components/p-ba2b625a.system.entry.js +1 -0
- package/dist/boreal-web-components/p-bf2ef10b.entry.js +1 -0
- package/dist/boreal-web-components/{p-6de2b44c.system.entry.js → p-c7aee9f4.system.entry.js} +1 -1
- package/dist/boreal-web-components/p-e0bf8a6e.entry.js +1 -0
- package/dist/boreal-web-components/p-edca16b6.system.entry.js +1 -0
- package/dist/boreal-web-components/p-fc24d963.entry.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/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-DbIXSJF2.js +22 -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 +12 -5
- package/dist/cjs/bds-button.cjs.entry.js +5 -5
- package/dist/cjs/bds-checkbox.cjs.entry.js +6 -6
- package/dist/cjs/bds-dialog.cjs.entry.js +7 -6
- 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 +468 -0
- package/dist/cjs/bds-list-menu.cjs.entry.js +130 -0
- package/dist/cjs/bds-popover.cjs.entry.js +17 -8
- 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 +12 -22
- package/dist/cjs/bds-toggle.cjs.entry.js +186 -0
- package/dist/cjs/bds-tooltip_2.cjs.entry.js +320 -0
- package/dist/cjs/boreal-web-components.cjs.js +2 -2
- package/dist/cjs/{anchored.mixin-CnIwkaUi.js → getOffset-m4hBgyVP.js} +42 -26
- package/dist/cjs/{index-BcSjvXJk.js → index-CwYIVC9N.js} +64 -0
- package/dist/cjs/loader.cjs.js +2 -2
- 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 +10 -0
- package/dist/collection/components/actions/bds-button/bds-button.js +2 -2
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu/bds-list-menu.css +25 -0
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu/bds-list-menu.js +301 -0
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu-item/bds-list-menu-item.css +71 -0
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu-item/bds-list-menu-item.js +437 -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.js +1 -1
- package/dist/collection/components/forms/bds-flag/bds-flag.js +1 -1
- package/dist/collection/components/forms/bds-text-field/bds-text-field.js +1 -1
- package/dist/collection/components/helpers/bds-divider.css +36 -0
- package/dist/collection/components/helpers/bds-divider.js +88 -0
- package/dist/collection/components/helpers/types/IDivider.js +1 -0
- package/dist/collection/components/helpers/types/enum.js +4 -0
- package/dist/collection/components/helpers/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 +4 -2
- package/dist/collection/components/overlays/bds-tooltip/constants/Offset.js +1 -0
- package/dist/collection/components/titles-text/bds-typography/bds-typography.css +4 -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 +14 -1
- package/dist/collection/mixins/index.js +2 -0
- package/dist/collection/mixins/links.mixin.js +153 -0
- package/dist/collection/mixins/menu-behavior.mixin.js +113 -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 +3 -0
- package/dist/collection/types/links.js +1 -0
- package/dist/collection/types/menu.js +8 -0
- package/dist/collection/types/position.js +6 -2
- package/dist/collection/utils/constants/common/Keys.js +12 -0
- 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 +81 -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-CzYQb3pP.js +20 -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 +12 -5
- package/dist/esm/bds-button.entry.js +5 -5
- package/dist/esm/bds-checkbox.entry.js +3 -3
- package/dist/esm/bds-dialog.entry.js +7 -6
- 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 +466 -0
- package/dist/esm/bds-list-menu.entry.js +128 -0
- package/dist/esm/bds-popover.entry.js +16 -7
- 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 +5 -15
- package/dist/esm/bds-toggle.entry.js +184 -0
- package/dist/esm/bds-tooltip_2.entry.js +317 -0
- package/dist/esm/boreal-web-components.js +3 -3
- package/dist/esm/{anchored.mixin-Y3MkGc2X.js → getOffset-DKPjeBHi.js} +40 -25
- package/dist/esm/{index-D4EFsvs1.js → index-BqJlOB6b.js} +64 -0
- package/dist/esm/loader.js +3 -3
- 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-CzYQb3pP.js +1 -0
- 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.entry.js +1 -1
- 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-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/form-associated.mixin-CvK2d92c.js +1 -0
- package/dist/esm-es5/getOffset-DKPjeBHi.js +1 -0
- package/dist/esm-es5/index-BqJlOB6b.js +2 -0
- package/dist/esm-es5/loader.js +1 -1
- 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-list-menu/bds-list-menu/bds-list-menu.d.ts +70 -0
- package/dist/types/components/actions/bds-list-menu/bds-list-menu-item/bds-list-menu-item.d.ts +116 -0
- package/dist/types/components/actions/bds-list-menu/bds-list-menu-item/types/IListMenuItem.d.ts +12 -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-flag/bds-flag.d.ts +3 -4
- package/dist/types/components/helpers/bds-divider.d.ts +26 -0
- package/dist/types/components/helpers/types/IDivider.d.ts +5 -0
- package/dist/types/components/helpers/types/enum.d.ts +5 -0
- package/dist/types/components/helpers/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 +1268 -54
- 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 +91 -0
- package/dist/types/types/IFormProps.d.ts +25 -0
- package/dist/types/types/index.d.ts +3 -0
- package/dist/types/types/links.d.ts +14 -0
- package/dist/types/types/menu.d.ts +16 -0
- package/dist/types/types/position.d.ts +6 -2
- package/dist/types/utils/constants/common/Keys.d.ts +7 -6
- 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}/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-39c26e58.entry.js +0 -1
- package/dist/boreal-web-components/p-6210d025.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-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-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/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/cjs/{internals-X77qKxsK.js → form-associated.mixin-DXwvF_vW.js} +30 -30
- 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__ → testing}/helpers.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/esm/{internals-Dy7QKP9e.js → form-associated.mixin-CvK2d92c.js} +30 -30
- /package/dist/types/utils/{__test__ → testing}/constants.d.ts +0 -0
- /package/dist/types/utils/{__test__ → testing}/fixtures.d.ts +0 -0
- /package/dist/types/utils/{__test__ → testing}/helpers.d.ts +0 -0
package/dist/boreal-web-components/{p-efe57901.system.entry.js → p-52600375.system.entry.js}
RENAMED
|
@@ -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))};System.register(["./p-GjKJvOVG.system.js","./p-sDZFaZMN.system.js"],(function(a){"use strict";var s,i,n,t,o,g;return{setters:[function(a){s=a.r;i=a.d;n=a.h;t=a.a;o=a.g},function(a){g=a.v}],execute:function(){var l={ISO2:"iso2",ISO3:"iso3",CODE:"code"};var e={LEFT:"left",RIGHT:"right"};var r={CIRCLE:"circle",SQUARE:"square",RECTANGLE:"rectangle"};var f=[{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 c={capital:"Global",iso2:"global",continent:"",flag_1x1:"",flag_4x3:"",iso:true,name:"Global",country:"00",iso3:"GLOBAL"};var x="./constants/flags/4x3/";function u(a,s,i,n,t,o,g,l,r){var f=o===true||o==="true";var c=g===true||g==="true";var x=l===true||l==="true";var u=t==="iso3"?a:s;var v=i;var m=u.toLocaleUpperCase();var _="";switch(true){case c&&x&&f&&r===e.RIGHT:_="(+".concat(n,") ").concat(m);break;case c&&x&&f:_="".concat(m," (+").concat(n,")");break;case c&&!x&&f:_="".concat(m);break;case f&&x&&r===e.RIGHT:_="(+".concat(n,") ").concat(v);break;case f&&x:_="".concat(v," (+").concat(n,")");break;case f||!c&&f:_="".concat(v);break;case!f&&!x:_="";break;case!f&&x:_="(+".concat(n,")");break}return _.trim()}var v=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 m=a("bds_flag",function(){function a(a){s(this,a);this.alignFlag=e.LEFT;this.callSign=false;this.country="";this.customFlags=[];this.identifier=l.CODE;this.label=false;this.shape=r.RECTANGLE;this.shortName=false}a.prototype.checkPropValues=function(){g(Object.values(e),e.LEFT,this.el,"alignFlag");g(Object.values(l),l.CODE,this.el,"identifier");g(Object.values(r),r.RECTANGLE,this.el,"shape")};a.prototype.componentWillLoad=function(){this.checkPropValues()};a.prototype.flagUrl=function(a){var s;var n=(s=this.customFlags)===null||s===void 0?void 0:s.find((function(s){return s.iso2.toLowerCase()===a}));if((n===null||n===void 0?void 0:n.flag_4x3)!==undefined)return n.flag_4x3;if(x.startsWith("http")){return"".concat(x).concat(a,".svg")}return"".concat(window.location.origin).concat(i("".concat(x).concat(a,".svg")))};a.prototype.getCountry=function(){var a=__spreadArray(__spreadArray(__spreadArray([],f,true),this.customFlags,true),[c],false);var s=this.identifier===l.CODE?"country":this.identifier;var i=this.identifier===l.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 u(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===e.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 o=this.flagClass;var g=!this.isGlobal?{backgroundImage:"url(".concat(this.flagUrl(a),")")}:{};return n(t,{key:"a3d7548922ce9ad6bd67bdc906e0cd3590a76a35",class:o,"aria-label":s,role:"img"},a&&n("span",{key:"44299f5031e4adb04837eabefa37f70f7dc8a9b8",class:i,style:g,"aria-hidden":"true"}),n("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 o(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}());m.style=v()}}}));
|
|
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))};System.register(["./p-DCKg5Cg_.system.js","./p-BsZkk4oK.system.js"],(function(a){"use strict";var s,i,n,t,o,g;return{setters:[function(a){s=a.r;i=a.d;n=a.h;t=a.a;o=a.g},function(a){g=a.v}],execute:function(){var l={ISO2:"iso2",ISO3:"iso3",CODE:"code"};var e={LEFT:"left",RIGHT:"right"};var r={CIRCLE:"circle",SQUARE:"square",RECTANGLE:"rectangle"};var f=[{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 c={capital:"Global",iso2:"global",continent:"",flag_1x1:"",flag_4x3:"",iso:true,name:"Global",country:"00",iso3:"GLOBAL"};var x="./constants/flags/4x3/";function u(a,s,i,n,t,o,g,l,r){var f=o===true||o==="true";var c=g===true||g==="true";var x=l===true||l==="true";var u=t==="iso3"?a:s;var v=i;var m=u.toLocaleUpperCase();var _="";switch(true){case c&&x&&f&&r===e.RIGHT:_="(+".concat(n,") ").concat(m);break;case c&&x&&f:_="".concat(m," (+").concat(n,")");break;case c&&!x&&f:_="".concat(m);break;case f&&x&&r===e.RIGHT:_="(+".concat(n,") ").concat(v);break;case f&&x:_="".concat(v," (+").concat(n,")");break;case f||!c&&f:_="".concat(v);break;case!f&&!x:_="";break;case!f&&x:_="(+".concat(n,")");break}return _.trim()}var v=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 m=a("bds_flag",function(){function a(a){s(this,a);this.alignFlag=e.LEFT;this.callSign=false;this.country="";this.customFlags=[];this.identifier=l.CODE;this.label=false;this.shape=r.RECTANGLE;this.shortName=false}a.prototype.checkPropValues=function(){g(Object.values(e),e.LEFT,this.el,"alignFlag");g(Object.values(l),l.CODE,this.el,"identifier");g(Object.values(r),r.RECTANGLE,this.el,"shape")};a.prototype.componentWillLoad=function(){this.checkPropValues()};a.prototype.flagUrl=function(a){var s;var n=(s=this.customFlags)===null||s===void 0?void 0:s.find((function(s){return s.iso2.toLowerCase()===a}));if((n===null||n===void 0?void 0:n.flag_4x3)!==undefined)return n.flag_4x3;if(x.startsWith("http")){return"".concat(x).concat(a,".svg")}return"".concat(window.location.origin).concat(i("".concat(x).concat(a,".svg")))};a.prototype.getCountry=function(){var a=__spreadArray(__spreadArray(__spreadArray([],f,true),this.customFlags,true),[c],false);var s=this.identifier===l.CODE?"country":this.identifier;var i=this.identifier===l.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 u(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===e.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 o=this.flagClass;var g=!this.isGlobal?{backgroundImage:"url(".concat(this.flagUrl(a),")")}:{};return n(t,{key:"c8f41b293eb2cfb1313aaa5c1ecbd4de3bf2e27c",class:o,"aria-label":s,role:"img"},a&&n("span",{key:"21f885fe3f7de150dd3766d3c942a6131d420a26",class:i,style:g,"aria-hidden":"true"}),n("span",{key:"08b819e1754ea9675306060ef1b8bcfa94546b09",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 o(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}());m.style=v()}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __extends=this&&this.__extends||function(){var t=function(e,n){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))t[n]=e[n]};return t(e,n)};return function(e,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}return t};return __assign.apply(this,arguments)};System.register(["./p-DCKg5Cg_.system.js","./p-CXz1RLGi.system.js","./p-BsZkk4oK.system.js","./p-DZcx75cy.system.js"],(function(t){"use strict";var e,n,i,r,s,a,o,l,u;return{setters:[function(t){e=t.M;n=t.r;i=t.c;r=t.h;s=t.a;a=t.g},function(t){o=t.C},function(t){l=t.v},function(t){u=t.K}],execute:function(){function c(t){return t==="menu"?"menuitem":"option"}function b(t,e){return t==="option"?String(e):null}function f(t,e,n,i){if(e)return-1;if(t==="option")return n||i?0:-1;if(t==="menuitem")return i?0:-1;return-1}function d(t,e,n){if(e.length===0||n===-1)return;var i=-1;switch(t.key){case u.ArrowDown.key:i=(n+1)%e.length;break;case u.ArrowUp.key:i=(n-1+e.length)%e.length;break;default:return}e[i].focus()}function h(t){var e=[u.ArrowDown.key,u.ArrowUp.key,u.Enter.key,u.Space.key];if(e.includes(t.key)){t.preventDefault()}}var m=function(t){var e=function(t){__extends(e,t);function e(){var e=t.apply(this,arguments)||this;e.disabled=false;e.selected=false;e.activeItem=false;return e}Object.defineProperty(e.prototype,"parentRole",{get:function(){var t=this.el.closest('[role="menu"], [role="listbox"]');return t!==null?t.getAttribute("role"):null},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"menuItemRole",{get:function(){return c(this.parentRole||"menu")},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"ariaSelected",{get:function(){return b(this.menuItemRole,this.selected)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"itemTabIndex",{get:function(){return f(this.menuItemRole,this.disabled,this.selected,this.activeItem)},enumerable:false,configurable:true});e.prototype.handleKeyDownLogic=function(t,e){h(t);if(t.key===u.Enter.key||t.key===u.Space.key){e();return}var n=this.el.closest("[role='menu'], [role='listbox']");if(n===null)return;var i=Array.from(n.querySelectorAll("".concat(this.el.tagName.toLocaleLowerCase(),':not([disabled]):not([variant="label"])')));var r=i.indexOf(this.el);d(t,i,r)};return e}(t);return e};var v=function(t){var e=function(t){__extends(e,t);function e(){var e=t.apply(this,arguments)||this;e.href="";e.newTab=false;e.download="";return e}Object.defineProperty(e.prototype,"isLink",{get:function(){return this.href!==""||this.download!==""},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"linkAttributes",{get:function(){var t={};if(!this.isLink)return t;var e=this.sanitizeUrl(this.href);t.href=e;t.target=this.newTab?"_blank":"_self";t.rel=this._isExternalLink(e)||this.newTab||this.download!==""?"noopener noreferrer":"";t.download=this.download!==""?this.download:undefined;if(this.el.tagName.toLowerCase()!=="a"){t.role="link";t.tabindex="0"}return t},enumerable:false,configurable:true});e.prototype._isExternalLink=function(t){var e=/^https?:\/\//.test(t)&&!t.includes(window.location.hostname);return e};e.prototype.handleLinkKeyDown=function(t){if(!this.isLink)return;if(this.el.tagName.toLowerCase()!=="a"&&(t.key===u.Enter.key||t.key===u.Space.key)){t.preventDefault();this.handleLinkClick(new MouseEvent("click",{bubbles:true,cancelable:true}))}};e.prototype.handleLinkClick=function(t){if(!this.isLink){t.preventDefault();return}var e=this.linkAttributes;if(e.download!==""&&e.download!==undefined){t.preventDefault();var n=document.createElement("a");n.href=e.download||"";n.download=e.download;n.style.display="none";document.body.appendChild(n);console.log("Initiating download:",n.href);n.click();document.body.removeChild(n)}if(this.el.tagName.toLowerCase()!=="a"){if(e.target==="_blank"){window.open(e.href,"_blank",e.rel)}else{window.location.href=e.href||""}t.preventDefault()}};e.prototype.sanitizeUrl=function(t){var e=t.trim().toLowerCase();if(e.startsWith("javascript:")||e.startsWith("data:")||e.includes("\0")){return""}if(!e.startsWith("http://")&&!e.startsWith("https://")&&!e.startsWith("mailto:")&&!e.startsWith("tel:")&&!e.startsWith("/")&&!e.startsWith("#")){return e.startsWith("://")?"":"https://".concat(t)}return t};return e}(t);return e};var g={LABEL:"label",BUTTON:"button"};var p=function(){return'@charset "UTF-8";.bds-list-item,.bds-list-item__content,.bds-list-item__content--left,.bds-list-item__content--right{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.bds-list-item{font-family:var(--boreal-typography-font-family-primary);-ms-flex-item-align:stretch;align-self:stretch;color:var(--boreal-text-default);width:100%;font-size:var(--boreal-typography-font-size-sm);font-style:normal;font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-sm)}.bds-list-item__content{-ms-flex-pack:justify;justify-content:space-between;width:100%;gap: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-2xs) 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);-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-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)}.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 x=t("bds_list_menu_item",function(t){__extends(e,t);function e(e){var r=t.call(this)||this;n(r,e);r.bdsSelect=i(r,"bdsSelect");r.variant=g.BUTTON;r.name="";r.disabled=false;r.selected=false;r.value="";r.activeItem=false;r.href="";r.newTab=false;r.download="";r.currentState=o.DEFAULT;r.handleClick=function(t){if(r.disabled||r.isLabelVariant)return;if(r.isLink){r.handleLinkClick(t);return}r.bdsSelect.emit({value:r.value,selected:!r.selected})};r.handleKeyDown=function(t){if(r.disabled||r.isLabelVariant)return;r.handleKeyDownLogic(t,(function(){return r.handleClick(t)}));if(!r.isLink||r.linkAttributes.download!==undefined){r.currentState=t.key===u.Enter.key||t.key===u.Space.key?o.ACTIVE:r.currentState}};r.handleKeyUp=function(){if(r.disabled||r.isLabelVariant)return;r.currentState=o.DEFAULT};return r}e.prototype.checkPropsVariant=function(){l(Object.values(g),g.BUTTON,this.el,"variant")};e.prototype.componentWillLoad=function(){this.checkPropsVariant()};Object.defineProperty(e.prototype,"isLabelVariant",{get:function(){return this.variant===g.LABEL},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"classMap",{get:function(){var t;return t={"bds-list-item":true,"bds-list-item--disabled":this.disabled,"bds-list-item--selected":this.selected},t["bds-list-item--state-".concat(this.currentState)]=true,t["bds-list-item--".concat(this.variant)]=true,t},enumerable:false,configurable:true});e.prototype.renderTypeLabel=function(){return r("bds-typography",{variant:"label",element:"label",align:"start",role:"presentation"},r("slot",{name:"left-content"})," ",r("slot",null))};e.prototype.renderTypeButton=function(){return r("div",{class:"bds-list-item__content"},r("div",{class:"bds-list-item__content--left"},r("slot",{name:"left-content"}),r("slot",null)),r("div",{class:"bds-list-item__content--right"},r("slot",{name:"right-content"})))};e.prototype.render=function(){var t=this.renderTypeButton();if(this.isLabelVariant)t=this.renderTypeLabel();var e=this.isLink?__assign(__assign({},this.linkAttributes),{tabindex:this.activeItem?0:-1}):{};return r(s,__assign({key:"ccf9e4a413fd0f13e38f040a0da92493c84d5ae2",class:this.classMap,role:this.isLabelVariant?"presentation":this.menuItemRole,"aria-selected":this.ariaSelected,tabIndex:this.isLabelVariant?-1:this.itemTabIndex,onClick:this.handleClick,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp},e),t)};Object.defineProperty(e.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{variant:[{checkPropsVariant:0}]}},enumerable:false,configurable:true});return e}(e(m,v)));x.style=p()}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{M as e,r as t,c as s,h as i,a,g as l}from"./p-BqJlOB6b.js";import{f as o,s as r,r as d}from"./p-CvK2d92c.js";import{c as h}from"./p-DhSchGPI.js";import{v as n}from"./p-kGnB15Lz.js";const b={TEXT:"text",PASSWORD:"password"},c={OUTLINE:"outline",PLAIN:"plain"},f={BLUR:"blur",CHANGE:"change",INPUT:"input",SUBMIT:"submit"},x=class extends(e(o)){constructor(e){super(),t(this,e),this.valueChange=s(this,"valueChange"),this.bdsInput=s(this,"bdsInput"),this.bdsChange=s(this,"bdsChange"),this.bdsFocus=s(this,"bdsFocus"),this.bdsBlur=s(this,"bdsBlur"),this.bdsClear=s(this,"bdsClear"),this.bdsValidationChange=s(this,"bdsValidationChange"),e.$hostElement$["s-ei"]?this.internals=e.$hostElement$["s-ei"]:(this.internals=e.$hostElement$.attachInternals(),e.$hostElement$["s-ei"]=this.internals),this.name="",this.disabled=!1,this.required=!1,this.isDisabled=!1,this.value="",this.error=!1,this.errorMessage="",this.customValidators=[],this.validationTiming=f.BLUR,this.type=b.TEXT,this.variant=c.OUTLINE,this.placeholder="",this.readOnly=!1,this.autocomplete="off",this.pattern="",this.minLength=0,this.maxLength=0,this.label="",this.sublabel="",this.icon="",this.helperText="",this.info="",this.clearable=!1,this.clearOnHover=!1,this.charCount=0,this.counter=!1,this.customWidth="",this.focused=!1,this.showPassword=!1,this.touched=!1,this.dirty=!1,this.currentCharCount=0,this.validationError=!1,this.validationMessage="",this._valueAtFocus="",this._id=h("bds-text-field"),this.invalidHandler=e=>{e.preventDefault(),this.validationError=!0,this.validationMessage=this.internals.validationMessage,this.bdsValidationChange.emit({valid:!1,validity:this.internals.validity,value:this.value,touched:this.touched,dirty:this.dirty})}}async checkValidity(){return this.internals.checkValidity()}async reportValidity(){return this.internals.reportValidity()}onDisabledChange(e){this.isDisabled=e}checkPropValues(){n(Object.values(b),b.TEXT,this.el,"type"),n(Object.values(c),c.OUTLINE,this.el,"variant"),n(Object.values(f),f.BLUR,this.el,"validationTiming")}componentWillLoad(){this.checkPropValues(),this.isDisabled=this.disabled,this.currentCharCount=this.value.length}componentDidLoad(){this.el.addEventListener("invalid",this.invalidHandler)}disconnectedCallback(){this.el.removeEventListener("invalid",this.invalidHandler)}onCustomValidatorsChange(){this.updateValidity()}onValueChange(e){r(this.internals,e),this.currentCharCount=e.length,this.updateValidity(),this.valueChange.emit(e)}formAssociatedCallback(){r(this.internals,this.value),this.updateValidity()}formResetCallback(){this.value="",this.touched=!1,this.dirty=!1,this.currentCharCount=0,this.validationError=!1,this.validationMessage="",r(this.internals,null),this.updateValidity()}formStateRestoreCallback(e,t){this.value="string"==typeof e?e:"",r(this.internals,this.value),this.updateValidity()}updateValidity(e=!1){const t=d(this.internals,[...this.validators,...this.customValidators],this.el);e&&(this.validationError=!t,this.validationMessage=t?"":this.internals.validationMessage,this.bdsValidationChange.emit({valid:t,validity:this.internals.validity,value:this.value,touched:this.touched,dirty:this.dirty}))}handleInput(e){this.value=e.target.value,this.dirty=!0,this.bdsInput.emit({value:this.value,event:e}),this.validationTiming===f.INPUT&&this.updateValidity(!0)}handleChange(e){this.bdsChange.emit({value:this.value,event:e}),this.validationTiming===f.CHANGE&&this.updateValidity(!0)}handleFocus(e){this.focused=!0,this._valueAtFocus=this.value,this.bdsFocus.emit({event:e})}handleBlur(e){this.focused=!1,this.touched=!0,this.bdsBlur.emit({event:e}),(this.validationTiming===f.BLUR||this.validationTiming===f.CHANGE&&this.value!==this._valueAtFocus)&&this.updateValidity(!0)}handleShowPassword(){this.showPassword=!this.showPassword}handleClear(){this.value="",this.dirty=!0,this.validationError=!1,this.validationMessage="",this.bdsClear.emit(),this.el.querySelector("input")?.focus()}handleMouseDown(e){this.readOnly&&e.preventDefault()}get validators(){return[{key:"valueMissing",isValid:()=>!this.required||""!==this.value,message:"This field is required. Please fill it out."},{key:"tooShort",isValid:()=>0===this.minLength||this.value.length>=this.minLength,message:`Please enter at least ${this.minLength} characters.`},{key:"patternMismatch",isValid:()=>{if(""===this.pattern||""===this.value)return!0;try{return new RegExp(this.pattern).test(this.value)}catch{return!0}},message:"Please match the requested format."}]}get effectiveMaxLength(){return 0!==this.maxLength?this.maxLength:this.counter&&this.charCount>0?this.charCount:void 0}get classMap(){return{"bds-text-field":!0,"bds-text-field--error":this.error||this.validationError,"bds-text-field--disabled":this.isDisabled,"bds-text-field--focused":this.focused,"bds-text-field--readonly":this.readOnly,"bds-text-field--plain":this.variant===c.PLAIN,"bds-text-field--clear-on-hover":this.clearOnHover}}get hostStyle(){return""!==this.customWidth?{"--bds-text-field-width":this.customWidth}:void 0}get iconClear(){return this.clearable||this.clearOnHover?"bds-icon-close":""}get showPasswordIcon(){return this.showPassword?"bds-icon-sight-on":"bds-icon-sight-off"}render(){const e=`${this._id}-label`,t=`${this._id}-helper`,s=(this.clearable||this.clearOnHover)&&""!==this.value&&!this.isDisabled&&!this.readOnly,l=this.error&&""!==this.errorMessage?this.errorMessage:this.validationError&&""!==this.validationMessage?this.validationMessage:this.helperText,o=""!==l||this.counter&&this.charCount>0,r=this.isDisabled?"disabled":this.error||this.validationError?"error":"default";return i(a,{key:"96b7e057fa7f25e8f7d13b7de0fd17f12de602bb",class:this.classMap,style:this.hostStyle,tabIndex:-1,onFocus:()=>!this.readOnly&&this.el.querySelector("input")?.focus()},""!==this.label&&i("bds-typography",{key:"e827b43ea347037ff2d404229aaefdd258d2ad22",id:e,variant:"label",htmlFor:this._id,required:this.required,tooltipText:""!==this.info?this.info:void 0,state:r},this.label),i("div",{key:"f579762db25f65031917874dbb4c2347b5d9f027",class:"bds-text-field__container"},(""!==this.icon||""!==this.sublabel)&&i("span",{key:"191d2ccec9baf8b739163eea112dce9a1073f4bd",class:"bds-text-field__sublabel"},""!==this.icon&&i("em",{key:"1cc1b1b7ece610b2a18ba872c4b7035d2239731b",class:this.icon}),this.sublabel),i("slot",{key:"ba7b08573b6ae35c10649125991a2bbed15f31f3",name:"prefix"}),i("input",{key:"6391338c4f636382cf19f888dc810baaf6820c80",id:this._id,class:"bds-text-field__control","aria-labelledby":""!==this.label?e:void 0,"aria-describedby":o&&""!==l?t:void 0,"aria-invalid":this.error||this.validationError?"true":void 0,"aria-required":this.required?"true":void 0,type:this.type===b.PASSWORD&&this.showPassword?b.TEXT:this.type,value:this.value,disabled:this.isDisabled,readOnly:this.readOnly,tabIndex:this.readOnly?-1:void 0,placeholder:this.placeholder,autocomplete:this.autocomplete,pattern:""!==this.pattern?this.pattern:void 0,minLength:0!==this.minLength?this.minLength:void 0,maxLength:this.effectiveMaxLength,onMouseDown:e=>this.handleMouseDown(e),onInput:e=>this.handleInput(e),onChange:e=>this.handleChange(e),onFocus:e=>this.handleFocus(e),onBlur:e=>this.handleBlur(e)}),(s||this.type===b.PASSWORD)&&i("div",{key:"e5dc4cab3d536ef09eaeae96ca68a7d4b4e15d92",class:"bds-text-field__actions"},s&&i("button",{key:"b18d06de000c3ea465be221dcbb77ab49bb3949f",class:"bds-text-field__action bds-text-field__action--clear",type:"button","aria-label":"Clear",onClick:()=>this.handleClear()},i("em",{key:"0aa5d75c5214b7832a2a2e80a1cd2c42af5bea9a",class:this.iconClear})),this.type===b.PASSWORD&&i("button",{key:"fd97135cca8d32178461bf7109c9b6a7eec543e9",class:"bds-text-field__action bds-text-field__action--password",type:"button","aria-label":this.showPassword?"Hide password":"Show password",onClick:()=>this.handleShowPassword()},i("em",{key:"0de72e7756ad62bbe4fb5f925526071720f358db",class:this.showPasswordIcon})))),o&&i("div",{key:"9d1c0e8920511650ab6711f2f813c01491d52414",class:"bds-text-field__footer"},""!==l&&i("bds-typography",{key:"f27235a7a38f34b9a9f7bae762c3c6be12acd8b0",id:t,variant:"helper",state:r},l),this.counter&&this.charCount>0&&i("span",{key:"3aa43ea8bd6a35963f0983ec8814e0ce19ee71ce",class:"bds-text-field__char-count"},this.currentCharCount,"/",this.charCount)))}static get formAssociated(){return!0}get el(){return l(this)}static get watchers(){return{disabled:[{onDisabledChange:0}],type:[{checkPropValues:0}],variant:[{checkPropValues:0}],validationTiming:[{checkPropValues:0}],customValidators:[{onCustomValidatorsChange:0}],value:[{onValueChange:0}]}}};x.style='@charset "UTF-8";.bds-text-field__container,.bds-text-field__sublabel,.bds-text-field__actions,.bds-text-field__action,.bds-text-field__footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.bds-text-field [slot=prefix],.bds-text-field__sublabel{font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-semibold);line-height:var(--boreal-typography-line-height-xs)}.bds-text-field{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:var(--boreal-spacing-2xs);width:var(--bds-text-field-width, 100%);font-family:var(--boreal-typography-font-family-primary);color:var(--boreal-text-default)}.bds-text-field__container{padding:var(--boreal-spacing-1xs);padding-left:0;height:var(--boreal-layout-l);border:1px solid var(--boreal-stroke-default-light);border-radius:var(--boreal-radius-xs);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;overflow:hidden}.bds-text-field__sublabel{gap:var(--boreal-spacing-3xs);padding-left:var(--boreal-spacing-xs);white-space:nowrap}.bds-text-field__sublabel em[class^=bds-icon-],.bds-text-field__sublabel em[class*=" bds-icon-"]{width:var(--boreal-icons-m);height:var(--boreal-icons-m);font-size:var(--boreal-typography-font-size-md);line-height:1;-ms-flex-negative:0;flex-shrink:0;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.bds-text-field [slot=prefix]{padding-left:var(--boreal-spacing-xs);overflow:hidden;white-space:nowrap;-ms-flex-negative:0;flex-shrink:0}.bds-text-field__control{min-width:0;width:100%;border:none;outline:none;background:transparent;padding:0;padding-left:var(--boreal-spacing-xs);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-text-field__control::-webkit-input-placeholder{color:var(--boreal-text-default-light)}.bds-text-field__control::-moz-placeholder{color:var(--boreal-text-default-light)}.bds-text-field__control:-ms-input-placeholder{color:var(--boreal-text-default-light)}.bds-text-field__control::-ms-input-placeholder{color:var(--boreal-text-default-light)}.bds-text-field__control::placeholder{color:var(--boreal-text-default-light)}.bds-text-field__control:disabled{cursor:not-allowed}.bds-text-field__actions{padding-left:var(--boreal-spacing-xs);gap:var(--boreal-spacing-3xs)}.bds-text-field__action{-ms-flex-pack:center;justify-content:center;background:none;border:none;padding:var(--boreal-spacing-3xs);cursor:pointer;color:var(--boreal-icon-default-light);line-height:1;-webkit-transition:color 0.3s ease, opacity 0.3s ease;transition:color 0.3s ease, opacity 0.3s ease}.bds-text-field__action--clear em[class^=bds-icon-],.bds-text-field__action--clear em[class*=" bds-icon-"]{width:var(--boreal-icons-s);height:var(--boreal-icons-s);font-size:var(--boreal-typography-font-size-xs);line-height:1;-ms-flex-negative:0;flex-shrink:0;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.bds-text-field__action--password em[class^=bds-icon-],.bds-text-field__action--password em[class*=" bds-icon-"]{width:var(--boreal-icons-l);height:var(--boreal-icons-l);font-size:var(--boreal-typography-font-size-lg);line-height:1;-ms-flex-negative:0;flex-shrink:0;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.bds-text-field__action:hover{color:var(--boreal-icon-default-dark)}.bds-text-field__action:focus-visible{-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-text-field__footer{-ms-flex-pack:justify;justify-content:space-between}.bds-text-field__char-count{-ms-flex-negative:0;flex-shrink:0;font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-xs);color:var(--boreal-text-default-light)}.bds-text-field--focused .bds-text-field__container{border-color:var(--boreal-stroke-focus);-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-text-field--error .bds-text-field__container{border-color:var(--boreal-stroke-danger-base)}.bds-text-field--disabled{cursor:not-allowed}.bds-text-field--disabled .bds-text-field__container{background-color:var(--boreal-ui-default-lighter);border-color:var(--boreal-stroke-default-light)}.bds-text-field--disabled .bds-text-field__sublabel{color:var(--boreal-text-disabled)}.bds-text-field--disabled .bds-text-field__sublabel em[class^=bds-icon-],.bds-text-field--disabled .bds-text-field__sublabel em[class*=" bds-icon-"]{color:var(--boreal-icon-disabled)}.bds-text-field--disabled .bds-text-field__control{color:var(--boreal-icon-disabled)}.bds-text-field--readonly .bds-text-field__container{background-color:transparent;border:none}.bds-text-field--readonly .bds-text-field__control::-webkit-input-placeholder{color:var(--boreal-text-default-darker)}.bds-text-field--readonly .bds-text-field__control::-moz-placeholder{color:var(--boreal-text-default-darker)}.bds-text-field--readonly .bds-text-field__control:-ms-input-placeholder{color:var(--boreal-text-default-darker)}.bds-text-field--readonly .bds-text-field__control::-ms-input-placeholder{color:var(--boreal-text-default-darker)}.bds-text-field--readonly .bds-text-field__control::placeholder{color:var(--boreal-text-default-darker)}.bds-text-field--plain .bds-text-field__container{border-color:transparent}.bds-text-field--plain.bds-text-field--focused .bds-text-field__container{border-color:var(--boreal-stroke-focus)}.bds-text-field--clear-on-hover .bds-text-field__action--clear{opacity:0;pointer-events:none}.bds-text-field--clear-on-hover:hover .bds-text-field__action--clear{opacity:1;pointer-events:auto}';export{x as bds_text_field}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{M as t,r as e,h as a,a as r,g as o}from"./p-BqJlOB6b.js";import{a as i,g as s}from"./p-BQ_zoZa2.js";import{C as l}from"./p-Bfazyxqi.js";import{a as h}from"./p-CaHOghy5.js";import"./p-DCXSEEVH.js";import"./p-CzYQb3pP.js";const p="md",n=class extends(t(i)){constructor(t){super(),e(this,t),this.multiline=!1,this.disabled=!1,this.floatingOptions={},this.isVisible=!1}get options(){return{placement:this.floatingOptions.placement??"bottom",offset:s(this.floatingOptions?.hideArrow,this.floatingOptions.offset,4),arrow:this.floatingOptions.hideArrow?void 0:this.arrowElement,strategy:"fixed"}}get hooks(){return{onPositionUpdate:t=>this.handlePosition(t),onBeforeShow:()=>this.validateShow(),onBeforeHide:t=>this.validateHide(t),subscribeToTrigger:t=>this.subscribe(t)}}get canShowArrow(){return!this.floatingOptions.hideArrow||!1}get getPlacement(){return this.floatingOptions.placement||"bottom"}validateShow(){return!this.disabled}validateHide(t){return!this.floatingOptions.stayOnHover||void 0===t||!t.isConnected||!this.floatingContent.contains(t)&&this.floatingContent!==t}handlePosition(t){this.floatingContent.setAttribute("data-placement",t.placement),this.setArrowPosition(t)}setArrowPosition(t){if(t.middlewareData?.arrow&&!this.disabled&&this.arrowElement?.isConnected){const{x:e,y:a}=t.middlewareData.arrow;Object.assign(this.arrowElement.style,{left:null!=e?`${e}px`:"",top:null!=a?`${a}px`:""})}}get hasMultiline(){return void 0!==this.multiline&&this.multiline}get tooltipStyles(){return{"tooltip-content":!0,"tooltip-content--multiline":this.hasMultiline}}subscribe(t){void 0!==t&&(t.setAttribute("part","tooltip-trigger"),t.setAttribute("ariaDescribedBy","tooltip-content"),t.addEventListener("mouseenter",(()=>this.show())),t.addEventListener("mouseleave",(t=>this.hide(t.target))))}render(){return a(r,{key:"7ba6db9103d172c519e4f9bd3e8743ba506057f1",class:"tooltip"},a("div",{key:"bea4019c3c4d0d1ac605e3c7d5e35564c8173c9e",id:"tooltip-content",part:"tooltip-content",class:this.tooltipStyles,popover:"manual",role:"tooltip","aria-hidden":this.isVisible?"false":"true","data-placement":this.getPlacement,"data-multiline":this.multiline,"data-hidearrow":this.canShowArrow,ref:t=>this.floatingContent=t},this.canShowArrow&&a("div",{key:"f598c2b54709269fcb1d3335d86400cc3ab4a177",class:"tooltip-arrow",part:"arrow",ref:t=>this.arrowElement=t}),a("slot",{key:"2a18a5c6839c21ec3c0a9f82b6117bded3c08b26"})))}get el(){return o(this)}};n.style='@charset "UTF-8";:root{--tooltip-arrow-size:var(--boreal-spacing-s);--tooltip-width:320px}.tooltip-content{position:fixed;margin:0;overflow:visible;border-radius:var(--boreal-radius-xs2);background:var(--boreal-ui-black);color:var(--boreal-text-inverse);padding:var(--boreal-spacing-2xs) var(--boreal-spacing-s);font-size:var(--boreal-typography-font-size-xs);line-height:var(--boreal-typography-line-height-xs);font-family:var(--boreal-typography-font-family-primary);border:var(--boreal-spacing-2xs) solid var(--boreal-ui-black);font-weight:var(--boreal-typography-font-weight-regular)}.tooltip-content--multiline{white-space:normal;max-width:var(--tooltip-width, 320px);word-break:break-word;text-align:center}.tooltip-arrow{position:absolute;width:var(--tooltip-arrow-size);height:var(--tooltip-arrow-size);pointer-events:none;z-index:-1}.tooltip-arrow::before{content:"";position:absolute;width:var(--tooltip-arrow-size);height:var(--tooltip-arrow-size);background:var(--boreal-ui-black);-webkit-transform:rotate(45deg);transform:rotate(45deg);-webkit-transform-origin:center;transform-origin:center;inset:0}.tooltip-content[data-placement^=top] .tooltip-arrow{bottom:calc(var(--tooltip-arrow-size) / -2)}.tooltip-content[data-placement^=bottom] .tooltip-arrow{top:calc(var(--tooltip-arrow-size) / -2)}.tooltip-content[data-placement^=left] .tooltip-arrow{right:calc(var(--tooltip-arrow-size) / -2)}.tooltip-content[data-placement^=right] .tooltip-arrow{left:calc(var(--tooltip-arrow-size) / -2)}';const g={link:{states:[l.DISABLED],size:["sm",p]},label:{states:[l.DISABLED],required:!0,canUseTooltip:!0},heading:{canUseTooltip:!0},subheading:{canUseTooltip:!0},helper:{states:[l.ERROR]},display:{size:["xs","sm",p,"lg","xl"]}},y=class{constructor(t){e(this,t),this.inheritedAttributes={},this.variant="display",this.size=p,this.state=l.DEFAULT,this.customClass="",this.element="p",this.align="start",this.ellipsis=!1,this.maxLines=1,this.tooltipText="",this.required=!1,this.htmlFor=void 0,this.href=null,this.target=null,this.downloadable=!1,this.filename="download",this.sanitizedHref=""}async updateSanitizedHref(){if("a"===this.getTagName&&null!==this.href){const{sanitizeUrl:t}=await import("./p-noyWJ11s.js").then((function(t){return t.i}));this.sanitizedHref=t(this.href)}else this.sanitizedHref=""}async componentWillLoad(){"a"===this.getTagName&&null!==this.href&&await this.updateSanitizedHref(),this.inheritedAttributes={...h(this.el)}}get getTagName(){return"link"===this.variant?"a":this.element.toLowerCase()}getVariantConfig(){return g[this.variant]??{}}getAccessibilityTags(){const{required:t=!1}=this.getVariantConfig(),e=["a","label"].includes(this.getTagName);return{"aria-required":this.required&&t,"aria-disabled":this.state===l.DISABLED&&e}}getVariantStateStyles(){const t=this.getVariantConfig();return{[`bds-typography--${this.variant}`]:!0,[`bds-typography--align-${this.align}`]:!0,[`bds-typography--${this.state}`]:!(!t?.states||!t?.states.includes(this.state)),[`bds-typography--size-${this.size}`]:!(!t?.size||!t?.size.includes(this.size)),"bds-typography--required":!(!t?.required||!this.required),"bds-typography--ellipsis":this.ellipsis&&this.maxLines<=1,"bds-typography--ellipsis-multiline":this.ellipsis&&this.maxLines>1,[this.customClass]:""!==this.customClass}}render(){const t=this.getTagName,e={...(o=this,i=t,{a:{href:o.state!==l.DISABLED?o.sanitizedHref:null,target:o.target,download:o.downloadable?o.filename:null,rel:"_blank"===o.target?"noopener noreferrer":void 0},label:{htmlFor:o.htmlFor}}[i]||{}),...this.inheritedAttributes,...this.getAccessibilityTags()};var o,i;const s=this.getVariantStateStyles(),{canUseTooltip:h=null,required:p=null}=this.getVariantConfig();return a(r,{key:"a9b61038ed68ce72e8a96845ac3c082a6b635053",class:"bds-typography "+(this.state===l.DISABLED?"bds-typography--disabled-cursor":"")},a(t,{key:"3966152c29dd0af270676ab7af0aaf811b48624a",class:s,style:{webkitLineClamp:this.maxLines},...e},a("slot",{key:"fe090f9278feac140d0d4b979912b332da5d6ec8"}),this.required&&p&&a("em",{key:"ccfd67dda34d927778ccf59a40cae185952f2495",class:"bds-typography__required-indicator","aria-hidden":"true"},"*"),this.tooltipText&&h&&a("span",{key:"720ef78bd2e638e0d0be56918483fe227a011f5e"},a("em",{key:"5e064aaed2633b33677e12774dead52ee0871f4a",class:"bds-typography__info-icon bds-icon-info-circle","aria-label":this.tooltipText},a("bds-tooltip",{key:"9ec65063f105cec050f01348a64e7b9f5fa8e968"},this.tooltipText)))))}get el(){return o(this)}static get watchers(){return{href:[{updateSanitizedHref:0}]}}};y.style='@charset "UTF-8";bds-typography.bds-typography--disabled-cursor{cursor:not-allowed}.bds-typography{display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:var(--boreal-typography-font-family-primary);font-weight:var(--boreal-typography-font-weight-regular)}.bds-typography__required-indicator{color:var(--boreal-icon-danger-base);font-weight:var(--boreal-typography-font-weight-regular)}.bds-typography__info-icon{color:var(--boreal-icon-default-light)}.bds-typography--heading,.bds-typography--subheading{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--boreal-spacing-3xs)}.bds-typography--label{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;gap:var(--boreal-spacing-3xs)}.bds-typography--display{display:block}.bds-typography--caption,.bds-typography--helper,.bds-typography--link{display:inline-block}.bds-typography--caption{font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-md);color:var(--boreal-text-default-light)}.bds-typography--helper{font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-sm);color:var(--boreal-text-default-light)}.bds-typography--link{font-size:var(--boreal-typography-font-size-sm);font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-md);color:var(--boreal-text-primary-base);text-decoration:none}.bds-typography--link:hover{text-decoration:underline}.bds-typography--link:visited{color:var(--boreal-text-primary-base)}.bds-typography--link:active{color:var(--boreal-text-primary-dark)}.bds-typography--link.bds-typography--size-sm{font-size:var(--boreal-typography-font-size-xs)}.bds-typography--link.bds-typography--size-md{font-size:var(--boreal-typography-font-size-sm)}.bds-typography--code{font-family:var(--boreal-typography-font-family-secondary);font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-regular);color:var(--boreal-text-default);line-height:var(--boreal-typography-line-height-md);overflow-wrap:break-word;background-color:var(--boreal-bg-neutral);padding:var(--boreal-spacing-3xs) var(--boreal-spacing-xs);border-radius:var(--boreal-radius-xs);display:inline;box-decoration-break:clone;-webkit-box-decoration-break:clone}.bds-typography--label{font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-semibold);line-height:var(--boreal-typography-line-height-md);color:var(--boreal-text-default-darker)}.bds-typography--display{font-weight:var(--boreal-typography-font-weight-regular);color:var(--boreal-text-default)}.bds-typography--display.bds-typography--size-sm{font-size:var(--boreal-typography-font-size-xl);line-height:var(--boreal-typography-line-height-xl)}.bds-typography--display.bds-typography--size-md{font-size:var(--boreal-typography-font-size-2xl);line-height:var(--boreal-typography-line-height-2xl)}.bds-typography--display.bds-typography--size-lg{font-size:var(--boreal-typography-font-size-3xl);line-height:var(--boreal-typography-line-height-3xl);font-weight:var(--boreal-typography-font-weight-light)}.bds-typography--display.bds-typography--size-xl{font-size:var(--boreal-typography-font-size-4xl);line-height:var(--boreal-typography-line-height-4xl);font-weight:var(--boreal-typography-font-weight-light)}.bds-typography--heading{font-size:var(--boreal-typography-font-size-lg);line-height:var(--boreal-typography-line-height-lg);font-weight:var(--boreal-typography-font-weight-regular);color:var(--boreal-text-default)}.bds-typography h1.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-4xl);line-height:var(--boreal-typography-line-height-4xl)}.bds-typography h2.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-3xl);line-height:var(--boreal-typography-line-height-3xl)}.bds-typography h3.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-2xl);line-height:var(--boreal-typography-line-height-2xl)}.bds-typography h4.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-xl);line-height:var(--boreal-typography-line-height-xl)}.bds-typography h5.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-lg);line-height:var(--boreal-typography-line-height-lg)}.bds-typography h6.bds-typography--heading{font-size:var(--boreal-typography-font-size-md);font-weight:var(--boreal-typography-font-weight-semibold);line-height:var(--boreal-typography-line-height-md)}.bds-typography--subheading{font-size:var(--boreal-typography-font-size-md);line-height:var(--boreal-typography-line-height-md);font-weight:var(--boreal-typography-font-weight-semibold)}.bds-typography--align-start{text-align:start}.bds-typography--align-center{text-align:center}.bds-typography--align-end{text-align:end}.bds-typography--align-inherit{text-align:inherit}.bds-typography--error{color:var(--boreal-text-danger-base)}.bds-typography--disabled{color:var(--boreal-text-disabled);pointer-events:none;cursor:not-allowed}.bds-typography--disabled .bds-typography__required-indicator{color:var(--boreal-text-danger-light)}.bds-typography--ellipsis{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.bds-typography--ellipsis-multiline{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;white-space:normal;width:100%}';export{n as bds_tooltip,y as bds_typography}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as a,h as s,a as t,g as r}from"./p-BqJlOB6b.js";import{P as o}from"./p-Bfazyxqi.js";import{v as e}from"./p-kGnB15Lz.js";const l={NONE:"none",DOT:"dot",ICON:"icon"},n=class{constructor(s){a(this,s),this.state=o.NEUTRAL,this.indicator=l.NONE}checkPropValues(){e(Object.values(o),o.NEUTRAL,this.el,"state"),e(Object.values(l),l.NONE,this.el,"indicator")}componentWillLoad(){this.checkPropValues()}get classMap(){return{"bds-status":!0,[`bds-status--${this.state}`]:!0,[`bds-status--${this.indicator}`]:!0}}render(){return s(t,{key:"36cf2dfe777002b02d126d38cb9ed2bce3f828a6",class:this.classMap,role:"status"},this.indicator===l.DOT?s("div",{class:"bds-status__dot","aria-hidden":"true"}):"",s("slot",{key:"99ab1fa89dc28f3ffca617508b5c577abf874d7a",name:"icon"}),s("slot",{key:"8ff726d294fc524950ac0255c71f4ba65b3c9b96"}))}get el(){return r(this)}static get watchers(){return{state:[{checkPropValues:0}],indicator:[{checkPropValues:0}]}}};n.style='@charset "UTF-8";.bds-status{color:var(--boreal-text-default-ink);text-align:center;font-family:var(--boreal-typography-font-family-primary);font-size:var(--boreal-typography-font-size-xs);font-style:normal;font-weight:var(--boreal-typography-font-weight-semibold);line-height:var(--boreal-typography-line-height-xs);display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;gap:var(--boreal-spacing-3xs);padding:var(--boreal-spacing-3xs) var(--boreal-spacing-xs);min-height:var(--boreal-spacing-ml);border-radius:var(--boreal-radius-xs)}.bds-status>[slot=icon]{display:none}.bds-status--icon>[slot=icon]{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:var(--boreal-layout-s);height:var(--boreal-layout-s)}.bds-status__dot{background-color:var(--boreal-icon-default-light);width:var(--boreal-spacing-xs);height:var(--boreal-spacing-xs);border-radius:var(--boreal-radius-full)}.bds-status--neutral{color:var(--boreal-text-default-ink);background-color:var(--boreal-ui-default-lighter)}.bds-status--neutral>.bds-status__dot{background-color:var(--boreal-icon-default-lighter)}.bds-status--neutral>[slot=icon]{color:var(--boreal-icon-default-lighter)}.bds-status--neutral>.bds-status__dot{background-color:var(--boreal-icon-default-light)}.bds-status--pending{color:var(--boreal-text-warning-dark);background-color:var(--boreal-ui-warning-lighter)}.bds-status--pending>.bds-status__dot{background-color:var(--boreal-icon-warning-base)}.bds-status--pending>[slot=icon]{color:var(--boreal-icon-warning-base)}.bds-status--in-progress{color:var(--boreal-text-information-dark);background-color:var(--boreal-ui-info-lighter)}.bds-status--in-progress>.bds-status__dot{background-color:var(--boreal-icon-info-base)}.bds-status--in-progress>[slot=icon]{color:var(--boreal-icon-info-base)}.bds-status--complete{color:var(--boreal-text-success-dark);background-color:var(--boreal-ui-success-lighter)}.bds-status--complete>.bds-status__dot{background-color:var(--boreal-icon-success-base)}.bds-status--complete>[slot=icon]{color:var(--boreal-icon-success-base)}.bds-status--cancel{color:var(--boreal-text-danger-dark);background-color:var(--boreal-ui-danger-lighter)}.bds-status--cancel>.bds-status__dot{background-color:var(--boreal-icon-danger-base)}.bds-status--cancel>[slot=icon]{color:var(--boreal-icon-danger-base)}';export{n as bds_status}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as a,c as e,h as r,F as s,a as n,g as o}from"./p-BqJlOB6b.js";import{S as i}from"./p-Bfazyxqi.js";import{i as t,a as b}from"./p-CaHOghy5.js";const c=class{constructor(r){a(this,r),this.bdsClose=e(this,"bdsClose"),this.inheritedAttributes={},this.isClosing=!1,this.isOpen=!0,this.variant=i.INFO,this.closable=!1,this.closeButtonLabel="",this.handleAnimationEnd=()=>{this.isClosing&&requestAnimationFrame((()=>{this.isClosing=!1,this.isOpen=!1}))}}componentWillLoad(){this.inheritedAttributes={...b(this.el),...t(this.el)}}async open(){this.isOpen||(this.isOpen=!0)}async close(){this.handleCloseBanner()}handleCloseBanner(a){void 0!==a&&a.preventDefault(),this.isClosing=!0,this.bdsClose.emit()}handleEscapeKeyClose(a){this.closable&&"Escape"===a.key&&this.handleCloseBanner()}getIconName(){const a={info:"bds-icon-info-circle-fill",success:"bds-icon-check-circle-fill",warning:"bds-icon-info-major-triangle-up-fill",danger:"bds-icon-alert-circle-fill"};return void 0===a[this.variant]?a.info:a[this.variant]}getAttributes(){return{...this.inheritedAttributes,role:"alert","aria-describedby":this.isOpen?"bds-banner__content":null,"aria-live":"polite","aria-hidden":`${!this.isOpen}`,tabIndex:this.isOpen?0:-1}}getStyles(){return{"bds-banner":!0,[`bds-banner--${this.variant}`]:!0,"bds-banner--closing":this.isClosing,"bds-banner--hidden":!this.isOpen}}renderCloseIcon(){return r("button",{role:"close-button",class:"bds-banner__close-icon","aria-label":this.closeButtonLabel,onClick:a=>this.handleCloseBanner(a)},r("em",{class:"bds-icon-close"}))}render(){const a=this.renderCloseIcon(),e=this.getStyles(),o=this.getIconName();return r(n,{key:"1a07d4c50cb16abf16a6202fc0a6453028030c94",class:e,...this.getAttributes(),onTransitionEnd:this.handleAnimationEnd,onKeyDown:a=>this.handleEscapeKeyClose(a)},this.isOpen&&r(s,{key:"2fa91a3e46f6660cb80302bc56619c107f3cf1a9"},r("div",{key:"406c8ce24b6c8d9467f83baea3c521ef823b7ff6",class:"bds-banner__vertical-line"}),r("div",{key:"1a2c84c6480397e179a212056e0d9896a4ffcd5c",class:"bds-banner__container"},r("div",{key:"c3a259dae39176720f74fb4961b01166956f8e5c",class:"bds-banner__status-icon",role:"status","aria-live":"polite","aria-label":`status ${this.variant}`},r("em",{key:"6d24dc0d611b85a0c9f524f29948552607fc124f","aria-hidden":"true",class:o})),r("div",{key:"6c4af02b7d783417cd016c81214ae4ae9a9040ff",id:"bds-banner__content",class:"bds-banner__content"},r("div",{key:"74d4b78b0e6a058c48d2681b0d49742266f6653d",class:"bds-banner__title"},r("slot",{key:"65baf563140619dd68ba6da5b1a2e61acfae61e6",name:"title"})),r("div",{key:"a24a1af35cf217bcdadff0a9c2d3bbef8d21e232",class:"bds-banner__body"},r("slot",{key:"5ea6dd31fbcf8eb9fd06426a2e98e36c537857b1"})),r("div",{key:"41cc79e73c212e381f8bfca997d62710f94e6ba4",class:"bds-banner__actions"},r("slot",{key:"0266cc63e42d35a7fcbb836dfe7d11c47f192321",name:"actions"}))),this.closable&&a)))}get el(){return o(this)}};c.style='@charset "UTF-8";.bds-banner{position:relative;display:-ms-flexbox;display:flex;border:var(--boreal-spacing-4xs) solid var(--boreal-stroke-info-base);border-radius:var(--boreal-radius-xs);border-left:0;font-family:var(--boreal-typography-font-family-primary);height:100%;-webkit-transition:opacity 0.3s ease-out;transition:opacity 0.3s ease-out}.bds-banner__vertical-line{width:var(--boreal-spacing-2xs);border-top-left-radius:var(--boreal-radius-xs);border-bottom-left-radius:var(--boreal-radius-xs);background-color:var(--boreal-stroke-info-base)}.bds-banner__container{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;width:100%;gap:var(--boreal-spacing-xs);padding:var(--boreal-spacing-s)}.bds-banner__content{width:100%}.bds-banner__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-banner__body{padding-top:var(--boreal-spacing-2xs);font-size:var(--boreal-typography-font-size-sm);line-height:var(--boreal-typography-line-height-sm)}.bds-banner__actions{padding-top:var(--boreal-spacing-s);min-height:0px}.bds-banner__actions:empty{display:none}.bds-banner__status-icon{font-size:var(--boreal-typography-font-size-md);line-height:var(--boreal-typography-line-height-md);margin-top:var(--boreal-spacing-3xs)}.bds-banner__close-icon{background:none;border:none;-ms-flex-item-align:start;align-self:start;font-size:var(--boreal-typography-font-size-md);line-height:var(--boreal-typography-line-height-md);color:var(--boreal-neutral-base);cursor:pointer}.bds-banner--info{border-color:var(--boreal-stroke-info-base);background-color:var(--boreal-ui-info-lighter)}.bds-banner--info .bds-banner__vertical-line{background-color:var(--boreal-stroke-info-base)}.bds-banner--info .bds-banner__status-icon{color:var(--boreal-stroke-info-base)}.bds-banner--success{border-color:var(--boreal-stroke-success-base);background-color:var(--boreal-ui-success-lighter)}.bds-banner--success .bds-banner__vertical-line{background-color:var(--boreal-stroke-success-base)}.bds-banner--success .bds-banner__status-icon{color:var(--boreal-stroke-success-base)}.bds-banner--warning{border-color:var(--boreal-stroke-warning);background-color:var(--boreal-ui-warning-lighter)}.bds-banner--warning .bds-banner__vertical-line{background-color:var(--boreal-stroke-warning)}.bds-banner--warning .bds-banner__status-icon{color:var(--boreal-stroke-warning)}.bds-banner--danger{border-color:var(--boreal-stroke-danger-base);background-color:var(--boreal-ui-danger-lighter)}.bds-banner--danger .bds-banner__vertical-line{background-color:var(--boreal-stroke-danger-base)}.bds-banner--danger .bds-banner__status-icon{color:var(--boreal-stroke-danger-base)}.bds-banner--closing{opacity:0}.bds-banner--hidden{display:none}';export{c as bds_banner}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __extends=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function a(){this.constructor=e}e.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,r=1,a=arguments.length;r<a;r++){e=arguments[r];for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o))t[o]=e[o]}return t};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(t,e,r,a){function o(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,i){function n(t){try{s(a.next(t))}catch(t){i(t)}}function l(t){try{s(a["throw"](t))}catch(t){i(t)}}function s(t){t.done?r(t.value):o(t.value).then(n,l)}s((a=a.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},a,o,i,n=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return n.next=l(0),n["throw"]=l(1),n["return"]=l(2),typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function l(t){return function(e){return s([t,e])}}function s(l){if(a)throw new TypeError("Generator is already executing.");while(n&&(n=0,l[0]&&(r=0)),r)try{if(a=1,o&&(i=l[0]&2?o["return"]:l[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;if(o=0,i)l=[l[0]&2,i.value];switch(l[0]){case 0:case 1:i=l;break;case 4:r.label++;return{value:l[1],done:false};case 5:r.label++;o=l[1];l=[0];continue;case 7:l=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){r.label=l[1];break}if(l[0]===6&&r.label<i[1]){r.label=i[1];i=l;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(l);break}if(i[2])r.ops.pop();r.trys.pop();continue}l=e.call(t,r)}catch(t){l=[6,t];o=0}finally{a=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};System.register(["./p-DCKg5Cg_.system.js","./p-CtknSula.system.js","./p-CXz1RLGi.system.js","./p-BuxZeJbu.system.js","./p-BHYhd1yq.system.js","./p-DZcx75cy.system.js"],(function(t,e){"use strict";var r,a,o,i,n,l,s,h,p;return{setters:[function(t){r=t.M;a=t.r;o=t.h;i=t.a;n=t.g},function(t){l=t.a;s=t.g},function(t){h=t.C},function(t){p=t.a},null,null],execute:function(){var g={START:"start"};var y={XS:"xs",S:"sm",M:"md",L:"lg",XL:"xl"};var b=4;var f=function(){return'@charset "UTF-8";:root{--tooltip-arrow-size:var(--boreal-spacing-s);--tooltip-width:320px}.tooltip-content{position:fixed;margin:0;overflow:visible;border-radius:var(--boreal-radius-xs2);background:var(--boreal-ui-black);color:var(--boreal-text-inverse);padding:var(--boreal-spacing-2xs) var(--boreal-spacing-s);font-size:var(--boreal-typography-font-size-xs);line-height:var(--boreal-typography-line-height-xs);font-family:var(--boreal-typography-font-family-primary);border:var(--boreal-spacing-2xs) solid var(--boreal-ui-black);font-weight:var(--boreal-typography-font-weight-regular)}.tooltip-content--multiline{white-space:normal;max-width:var(--tooltip-width, 320px);word-break:break-word;text-align:center}.tooltip-arrow{position:absolute;width:var(--tooltip-arrow-size);height:var(--tooltip-arrow-size);pointer-events:none;z-index:-1}.tooltip-arrow::before{content:"";position:absolute;width:var(--tooltip-arrow-size);height:var(--tooltip-arrow-size);background:var(--boreal-ui-black);-webkit-transform:rotate(45deg);transform:rotate(45deg);-webkit-transform-origin:center;transform-origin:center;inset:0}.tooltip-content[data-placement^=top] .tooltip-arrow{bottom:calc(var(--tooltip-arrow-size) / -2)}.tooltip-content[data-placement^=bottom] .tooltip-arrow{top:calc(var(--tooltip-arrow-size) / -2)}.tooltip-content[data-placement^=left] .tooltip-arrow{right:calc(var(--tooltip-arrow-size) / -2)}.tooltip-content[data-placement^=right] .tooltip-arrow{left:calc(var(--tooltip-arrow-size) / -2)}'};var d=t("bds_tooltip",function(t){__extends(e,t);function e(e){var r=t.call(this)||this;a(r,e);r.multiline=false;r.disabled=false;r.floatingOptions={};r.isVisible=false;return r}Object.defineProperty(e.prototype,"options",{get:function(){var t,e;return{placement:(t=this.floatingOptions.placement)!==null&&t!==void 0?t:"bottom",offset:s((e=this.floatingOptions)===null||e===void 0?void 0:e.hideArrow,this.floatingOptions.offset,b),arrow:this.floatingOptions.hideArrow?undefined:this.arrowElement,strategy:"fixed"}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"hooks",{get:function(){var t=this;return{onPositionUpdate:function(e){return t.handlePosition(e)},onBeforeShow:function(){return t.validateShow()},onBeforeHide:function(e){return t.validateHide(e)},subscribeToTrigger:function(e){return t.subscribe(e)}}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"canShowArrow",{get:function(){return!this.floatingOptions.hideArrow||false},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"getPlacement",{get:function(){return this.floatingOptions.placement||"bottom"},enumerable:false,configurable:true});e.prototype.validateShow=function(){return!this.disabled};e.prototype.validateHide=function(t){if(this.floatingOptions.stayOnHover&&t!==undefined&&t.isConnected){var e=this.floatingContent.contains(t)||this.floatingContent===t;if(e)return false}return true};e.prototype.handlePosition=function(t){this.floatingContent.setAttribute("data-placement",t.placement);this.setArrowPosition(t)};e.prototype.setArrowPosition=function(t){var e,r;if(((e=t.middlewareData)===null||e===void 0?void 0:e.arrow)&&!this.disabled&&((r=this.arrowElement)===null||r===void 0?void 0:r.isConnected)){var a=t.middlewareData.arrow,o=a.x,i=a.y;Object.assign(this.arrowElement.style,{left:o!=null?"".concat(o,"px"):"",top:i!=null?"".concat(i,"px"):""})}};Object.defineProperty(e.prototype,"hasMultiline",{get:function(){return this.multiline!==undefined&&this.multiline},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"tooltipStyles",{get:function(){return{"tooltip-content":true,"tooltip-content--multiline":this.hasMultiline}},enumerable:false,configurable:true});e.prototype.subscribe=function(t){var e=this;if(t===undefined)return;t.setAttribute("part","tooltip-trigger");t.setAttribute("ariaDescribedBy","tooltip-content");t.addEventListener("mouseenter",(function(){return e.show()}));t.addEventListener("mouseleave",(function(t){return e.hide(t.target)}))};e.prototype.render=function(){var t=this;var e=this.tooltipStyles;return o(i,{key:"7ba6db9103d172c519e4f9bd3e8743ba506057f1",class:"tooltip"},o("div",{key:"bea4019c3c4d0d1ac605e3c7d5e35564c8173c9e",id:"tooltip-content",part:"tooltip-content",class:e,popover:"manual",role:"tooltip","aria-hidden":this.isVisible?"false":"true","data-placement":this.getPlacement,"data-multiline":this.multiline,"data-hidearrow":this.canShowArrow,ref:function(e){return t.floatingContent=e}},this.canShowArrow&&o("div",{key:"f598c2b54709269fcb1d3335d86400cc3ab4a177",class:"tooltip-arrow",part:"arrow",ref:function(e){return t.arrowElement=e}}),o("slot",{key:"2a18a5c6839c21ec3c0a9f82b6117bded3c08b26"})))};Object.defineProperty(e.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return e}(r(l)));d.style=f();var c={DISPLAY:"display",LINK:"link"};var u={P:"p",A:"a"};var v="download";var w={link:{states:[h.DISABLED],size:[y.S,y.M]},label:{states:[h.DISABLED],required:true,canUseTooltip:true},heading:{canUseTooltip:true},subheading:{canUseTooltip:true},helper:{states:[h.ERROR]},display:{size:[y.XS,y.S,y.M,y.L,y.XL]}};var m=function(t,e){var r={a:{href:t.state!==h.DISABLED?t.sanitizedHref:null,target:t.target,download:t.downloadable?t.filename:null,rel:t.target==="_blank"?"noopener noreferrer":undefined},label:{htmlFor:t.htmlFor}};return r[e]||{}};var x=function(){return'@charset "UTF-8";bds-typography.bds-typography--disabled-cursor{cursor:not-allowed}.bds-typography{display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:var(--boreal-typography-font-family-primary);font-weight:var(--boreal-typography-font-weight-regular)}.bds-typography__required-indicator{color:var(--boreal-icon-danger-base);font-weight:var(--boreal-typography-font-weight-regular)}.bds-typography__info-icon{color:var(--boreal-icon-default-light)}.bds-typography--heading,.bds-typography--subheading{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--boreal-spacing-3xs)}.bds-typography--label{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;gap:var(--boreal-spacing-3xs)}.bds-typography--display{display:block}.bds-typography--caption,.bds-typography--helper,.bds-typography--link{display:inline-block}.bds-typography--caption{font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-md);color:var(--boreal-text-default-light)}.bds-typography--helper{font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-sm);color:var(--boreal-text-default-light)}.bds-typography--link{font-size:var(--boreal-typography-font-size-sm);font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-md);color:var(--boreal-text-primary-base);text-decoration:none}.bds-typography--link:hover{text-decoration:underline}.bds-typography--link:visited{color:var(--boreal-text-primary-base)}.bds-typography--link:active{color:var(--boreal-text-primary-dark)}.bds-typography--link.bds-typography--size-sm{font-size:var(--boreal-typography-font-size-xs)}.bds-typography--link.bds-typography--size-md{font-size:var(--boreal-typography-font-size-sm)}.bds-typography--code{font-family:var(--boreal-typography-font-family-secondary);font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-regular);color:var(--boreal-text-default);line-height:var(--boreal-typography-line-height-md);overflow-wrap:break-word;background-color:var(--boreal-bg-neutral);padding:var(--boreal-spacing-3xs) var(--boreal-spacing-xs);border-radius:var(--boreal-radius-xs);display:inline;box-decoration-break:clone;-webkit-box-decoration-break:clone}.bds-typography--label{font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-semibold);line-height:var(--boreal-typography-line-height-md);color:var(--boreal-text-default-darker)}.bds-typography--display{font-weight:var(--boreal-typography-font-weight-regular);color:var(--boreal-text-default)}.bds-typography--display.bds-typography--size-sm{font-size:var(--boreal-typography-font-size-xl);line-height:var(--boreal-typography-line-height-xl)}.bds-typography--display.bds-typography--size-md{font-size:var(--boreal-typography-font-size-2xl);line-height:var(--boreal-typography-line-height-2xl)}.bds-typography--display.bds-typography--size-lg{font-size:var(--boreal-typography-font-size-3xl);line-height:var(--boreal-typography-line-height-3xl);font-weight:var(--boreal-typography-font-weight-light)}.bds-typography--display.bds-typography--size-xl{font-size:var(--boreal-typography-font-size-4xl);line-height:var(--boreal-typography-line-height-4xl);font-weight:var(--boreal-typography-font-weight-light)}.bds-typography--heading{font-size:var(--boreal-typography-font-size-lg);line-height:var(--boreal-typography-line-height-lg);font-weight:var(--boreal-typography-font-weight-regular);color:var(--boreal-text-default)}.bds-typography h1.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-4xl);line-height:var(--boreal-typography-line-height-4xl)}.bds-typography h2.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-3xl);line-height:var(--boreal-typography-line-height-3xl)}.bds-typography h3.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-2xl);line-height:var(--boreal-typography-line-height-2xl)}.bds-typography h4.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-xl);line-height:var(--boreal-typography-line-height-xl)}.bds-typography h5.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-lg);line-height:var(--boreal-typography-line-height-lg)}.bds-typography h6.bds-typography--heading{font-size:var(--boreal-typography-font-size-md);font-weight:var(--boreal-typography-font-weight-semibold);line-height:var(--boreal-typography-line-height-md)}.bds-typography--subheading{font-size:var(--boreal-typography-font-size-md);line-height:var(--boreal-typography-line-height-md);font-weight:var(--boreal-typography-font-weight-semibold)}.bds-typography--align-start{text-align:start}.bds-typography--align-center{text-align:center}.bds-typography--align-end{text-align:end}.bds-typography--align-inherit{text-align:inherit}.bds-typography--error{color:var(--boreal-text-danger-base)}.bds-typography--disabled{color:var(--boreal-text-disabled);pointer-events:none;cursor:not-allowed}.bds-typography--disabled .bds-typography__required-indicator{color:var(--boreal-text-danger-light)}.bds-typography--ellipsis{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.bds-typography--ellipsis-multiline{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;white-space:normal;width:100%}'};var z=t("bds_typography",function(){function t(t){a(this,t);this.inheritedAttributes={};this.variant=c.DISPLAY;this.size=y.M;this.state=h.DEFAULT;this.customClass="";this.element=u.P;this.align=g.START;this.ellipsis=false;this.maxLines=1;this.tooltipText="";this.required=false;this.htmlFor=undefined;this.href=null;this.target=null;this.downloadable=false;this.filename=v;this.sanitizedHref=""}t.prototype.updateSanitizedHref=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:if(!(this.getTagName==="a"&&this.href!==null))return[3,2];return[4,e.import("./p-B-PpI2Xv.system.js").then((function(t){return t.i}))];case 1:t=r.sent().sanitizeUrl;this.sanitizedHref=t(this.href);return[3,3];case 2:this.sanitizedHref="";r.label=3;case 3:return[2]}}))}))};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!(this.getTagName===u.A&&this.href!==null))return[3,2];return[4,this.updateSanitizedHref()];case 1:t.sent();t.label=2;case 2:this.inheritedAttributes=__assign({},p(this.el));return[2]}}))}))};Object.defineProperty(t.prototype,"getTagName",{get:function(){if(this.variant===c.LINK)return u.A;return this.element.toLowerCase()},enumerable:false,configurable:true});t.prototype.getVariantConfig=function(){var t;return(t=w[this.variant])!==null&&t!==void 0?t:{}};t.prototype.getAccessibilityTags=function(){var t=this.getVariantConfig().required,e=t===void 0?false:t;var r=["a","label"].includes(this.getTagName);return{"aria-required":this.required&&e,"aria-disabled":this.state===h.DISABLED&&r}};t.prototype.getVariantStateStyles=function(){var t;var e=this.getVariantConfig();return t={},t["bds-typography--".concat(this.variant)]=true,t["bds-typography--align-".concat(this.align)]=true,t["bds-typography--".concat(this.state)]=!!((e===null||e===void 0?void 0:e.states)&&(e===null||e===void 0?void 0:e.states.includes(this.state))),t["bds-typography--size-".concat(this.size)]=!!((e===null||e===void 0?void 0:e.size)&&(e===null||e===void 0?void 0:e.size.includes(this.size))),t["bds-typography--required"]=!!((e===null||e===void 0?void 0:e.required)&&this.required),t["bds-typography--ellipsis"]=this.ellipsis&&this.maxLines<=1,t["bds-typography--ellipsis-multiline"]=this.ellipsis&&this.maxLines>1,t[this.customClass]=this.customClass!=="",t};t.prototype.render=function(){var t=this.getTagName;var e=__assign(__assign(__assign({},m(this,t)),this.inheritedAttributes),this.getAccessibilityTags());var r=this.getVariantStateStyles();var a=this.getVariantConfig(),n=a.canUseTooltip,l=n===void 0?null:n,s=a.required,p=s===void 0?null:s;var g=this.state===h.DISABLED;return o(i,{key:"a9b61038ed68ce72e8a96845ac3c082a6b635053",class:"bds-typography ".concat(g?"bds-typography--disabled-cursor":"")},o(t,__assign({key:"3966152c29dd0af270676ab7af0aaf811b48624a",class:r,style:{webkitLineClamp:this.maxLines}},e),o("slot",{key:"fe090f9278feac140d0d4b979912b332da5d6ec8"}),this.required&&p&&o("em",{key:"ccfd67dda34d927778ccf59a40cae185952f2495",class:"bds-typography__required-indicator","aria-hidden":"true"},"*"),this.tooltipText&&l&&o("span",{key:"720ef78bd2e638e0d0be56918483fe227a011f5e"},o("em",{key:"5e064aaed2633b33677e12774dead52ee0871f4a",class:"bds-typography__info-icon bds-icon-info-circle","aria-label":this.tooltipText},o("bds-tooltip",{key:"9ec65063f105cec050f01348a64e7b9f5fa8e968"},this.tooltipText)))))};Object.defineProperty(t.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{href:[{updateSanitizedHref:0}]}},enumerable:false,configurable:true});return t}());z.style=x()}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as a,h as o,F as t,a as r,g as s}from"./p-BqJlOB6b.js";import{c as l}from"./p-DhSchGPI.js";import{v as d}from"./p-kGnB15Lz.js";const b={GRAY:"gray",CYAN:"cyan",TEAL:"teal",LIME:"lime",ORANGE:"orange",COBALT:"cobalt",ROSE:"rose",PURPLE:"purple"},i=class{constructor(o){e(this,o),this.bdsClose=a(this,"bdsClose"),this.bdsSelect=a(this,"bdsSelect"),this._id=l("bds-tag"),this.internalSelected=!1,this.multiselect=!1,this.selected=!1,this.closeButtonLabel="Close tag",this.color=b.GRAY,this.readonly=!1,this.disabled=!1,this.handleClose=e=>{this.disabled||(void 0!==e&&(e.preventDefault(),e.stopPropagation()),this.bdsClose.emit({id:this._id,selected:this.internalSelected,el:this.el}))},this.handleKeyDown=e=>{this.disabled||(this.readonly||!["Delete","Backspace"].includes(e.key)?[" ","Enter"].includes(e.key)&&e.target===this.el&&(e.preventDefault(),this.handleSelection()):this.handleClose(e))},this.handleSelection=()=>{this.disabled||this.multiselect&&(this.internalSelected=!this.internalSelected,this.bdsSelect.emit({id:this._id,selected:this.internalSelected,el:this.el}))}}componentWillLoad(){this.syncSelectedFromProp(this.selected),this.checkPropValues(),this.validateMultiselectRole()}checkPropValues(){d(Object.values(b),b.GRAY,this.el,"color")}syncSelectedFromProp(e){this.internalSelected=e}validateMultiselectRole(){this.multiselect&&null===this.el.closest('[role="listbox"], [role="group"], bds-tag-group')&&console.warn('[BorealDS Tag] Missing required ARIA parent. Expected role="listbox", role="group", or <bds-tag-group> when multiselect=true.')}getClasses(){return{"bds-tag":!0,[`bds-tag--${this.color}`]:!0,"bds-tag--disabled":this.disabled,"bds-tag--selected":this.internalSelected}}renderTag(){return o(t,null,o("span",{"aria-hidden":"true",class:"bds-tag__icon"},o("slot",{name:"icon"})),o("span",{class:"bds-tag__text"},o("slot",null)))}renderCloseIcon(){return o("button",{class:"bds-tag__close-button","aria-label":this.closeButtonLabel,onClick:e=>this.handleClose(e),disabled:this.disabled,type:"button"},o("em",{class:"bds-icon-close","aria-hidden":"true"}))}render(){const e=this.getClasses(),a=!this.readonly,t=this.multiselect;return o(r,{key:"0864f3764aef3354e5b2c7494a5c9c2cb261582f",class:e,role:t?"option":void 0,tabIndex:t&&!this.disabled?0:-1,"aria-disabled":this.disabled?"true":void 0,"aria-selected":t?`${this.internalSelected}`:void 0,onKeyDown:this.disabled?void 0:e=>this.handleKeyDown(e),onClick:this.disabled?void 0:this.handleSelection,id:this._id},this.renderTag(),a&&this.renderCloseIcon())}get el(){return s(this)}static get watchers(){return{color:[{checkPropValues:0}],selected:[{syncSelectedFromProp:0}]}}};i.style='@charset "UTF-8";.bds-tag{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;vertical-align:middle;gap:var(--boreal-spacing-3xs);padding:var(--boreal-spacing-3xs) var(--boreal-spacing-3xs) var(--boreal-spacing-3xs) var(--boreal-spacing-2xs);border-radius:var(--boreal-radius-m);cursor:default;max-width:100%;min-width:0;font-family:var(--boreal-typography-font-family-primary);font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-semibold);line-height:var(--boreal-typography-line-height-xs)}.bds-tag:hover:not(.bds-tag--selected):not(.bds-tag--disabled){-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-tag:focus:not(.bds-tag--selected){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)}.bds-tag--selected{outline:none;-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-tag__icon{font-size:var(--boreal-typography-font-size-md);max-height:var(--boreal-spacing-m)}.bds-tag__icon:empty{display:none}.bds-tag__text{margin-right:var(--boreal-spacing-2xs);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bds-tag__close-button{display:-ms-flexbox;display:flex;padding:var(--boreal-spacing-3xs);width:var(--boreal-spacing-s);height:var(--boreal-spacing-s);-webkit-box-sizing:content-box;box-sizing:content-box;border-radius:var(--boreal-radius-full);border:0px solid transparent;background-color:transparent;opacity:0.5;cursor:pointer}.bds-tag__close-button:hover{-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);background-color:var(--boreal-ui-inverse);opacity:0.5}.bds-tag__close-button:focus{background-color:var(--boreal-ui-inverse);opacity:0.5;outline:none;-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-tag__close-button:active{background-color:var(--boreal-ui-inverse);opacity:0.5;-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, 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, 0 1px 2px 0 rgba(19, 19, 22, 0.15) inset}.bds-tag--disabled{cursor:not-allowed}.bds-tag--disabled .bds-tag__close-button{pointer-events:none}.bds-tag--gray{background-color:var(--boreal-extended-onyx-light);color:var(--boreal-extended-onyx-dark)}.bds-tag--gray .bds-tag__close-button{color:var(--boreal-extended-onyx-dark)}.bds-tag--gray.bds-tag--disabled{color:var(--boreal-extended-onyx-base);background-color:var(--boreal-extended-onyx-lighter)}.bds-tag--gray.bds-tag--disabled .bds-tag__close-button{color:var(--boreal-extended-onyx-base)}.bds-tag--purple{background-color:var(--boreal-extended-purple-light);color:var(--boreal-extended-purple-dark)}.bds-tag--purple .bds-tag__close-button{color:var(--boreal-extended-purple-dark)}.bds-tag--purple.bds-tag--disabled{color:var(--boreal-extended-purple-light);background-color:var(--boreal-extended-purple-lighter)}.bds-tag--purple.bds-tag--disabled .bds-tag__close-button{color:var(--boreal-extended-purple-light)}.bds-tag--rose{background-color:var(--boreal-extended-rose-light);color:var(--boreal-extended-rose-dark)}.bds-tag--rose .bds-tag__close-button{color:var(--boreal-extended-rose-dark)}.bds-tag--rose.bds-tag--disabled{color:var(--boreal-extended-rose-light);background-color:var(--boreal-extended-rose-lighter)}.bds-tag--rose.bds-tag--disabled .bds-tag__close-button{color:var(--boreal-extended-rose-light)}.bds-tag--lime{background-color:var(--boreal-extended-lime-light);color:var(--boreal-extended-lime-dark)}.bds-tag--lime .bds-tag__close-button{color:var(--boreal-extended-lime-dark)}.bds-tag--lime.bds-tag--disabled{color:var(--boreal-extended-lime-light);background-color:var(--boreal-extended-lime-lighter)}.bds-tag--lime.bds-tag--disabled .bds-tag__close-button{color:var(--boreal-extended-lime-light)}.bds-tag--cobalt{background-color:var(--boreal-extended-cobalt-light);color:var(--boreal-extended-cobalt-dark)}.bds-tag--cobalt .bds-tag__close-button{color:var(--boreal-extended-cobalt-dark)}.bds-tag--cobalt.bds-tag--disabled{color:var(--boreal-extended-cobalt-light);background-color:var(--boreal-extended-cobalt-lighter)}.bds-tag--cobalt.bds-tag--disabled .bds-tag__close-button{color:var(--boreal-extended-cobalt-light)}.bds-tag--orange{background-color:var(--boreal-extended-orange-light);color:var(--boreal-extended-orange-dark)}.bds-tag--orange .bds-tag__close-button{color:var(--boreal-extended-orange-dark)}.bds-tag--orange.bds-tag--disabled{color:var(--boreal-extended-orange-light);background-color:var(--boreal-extended-orange-lighter)}.bds-tag--orange.bds-tag--disabled .bds-tag__close-button{color:var(--boreal-extended-orange-light)}.bds-tag--teal{background-color:var(--boreal-extended-teal-light);color:var(--boreal-extended-teal-dark)}.bds-tag--teal .bds-tag__close-button{color:var(--boreal-extended-teal-dark)}.bds-tag--teal.bds-tag--disabled{color:var(--boreal-extended-teal-light);background-color:var(--boreal-extended-teal-lighter)}.bds-tag--teal.bds-tag--disabled .bds-tag__close-button{color:var(--boreal-extended-teal-light)}.bds-tag--cyan{background-color:var(--boreal-extended-cyan-light);color:var(--boreal-extended-cyan-dark)}.bds-tag--cyan .bds-tag__close-button{color:var(--boreal-extended-cyan-dark)}.bds-tag--cyan.bds-tag--disabled{color:var(--boreal-extended-cyan-light);background-color:var(--boreal-extended-cyan-lighter)}.bds-tag--cyan.bds-tag--disabled .bds-tag__close-button{color:var(--boreal-extended-cyan-light)}';export{i as bds_tag}
|
package/dist/boreal-web-components/{p-22378341.system.entry.js → p-74c13bed.system.entry.js}
RENAMED
|
@@ -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 c(){this.constructor=o}o.prototype=r===null?Object.create(r):(c.prototype=r.prototype,new c)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var o,r=1,c=arguments.length;r<c;r++){o=arguments[r];for(var
|
|
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 c(){this.constructor=o}o.prototype=r===null?Object.create(r):(c.prototype=r.prototype,new c)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var o,r=1,c=arguments.length;r<c;r++){o=arguments[r];for(var s in o)if(Object.prototype.hasOwnProperty.call(o,s))e[s]=o[s]}return e};return __assign.apply(this,arguments)};System.register(["./p-DCKg5Cg_.system.js","./p-Dme-NuTD.system.js","./p-BuxZeJbu.system.js"],(function(e){"use strict";var o,r,c,s,b,t,i,a,n;return{setters:[function(e){o=e.M;r=e.r;c=e.c;s=e.h;b=e.a;t=e.g},function(e){i=e.s;a=e.f},function(e){n=e.a}],execute:function(){var d=function(){return'@charset "UTF-8";bds-checkbox{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;gap:8px;cursor:pointer;outline:none}bds-checkbox .bds-checkbox__label{font-family:var(--boreal-typography-font-family-primary)}bds-checkbox .bds-checkbox__box{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:18px;height:18px;border:2px solid var(--boreal-stroke-default-light);background:transparent;-webkit-transition:all 0.2s ease;transition:all 0.2s ease;border-radius:4px}bds-checkbox:hover .bds-checkbox__box{border-color:var(--boreal-stroke-default-light)}bds-checkbox:focus-visible .bds-checkbox__box{border-color:var(--boreal-stroke-focus);outline:2px solid var(--boreal-stroke-focus);outline-offset:1px}bds-checkbox:active .bds-checkbox__box{border-color:var(--boreal-stroke-default-light);background:var(--boreal-bg-neutral);outline:2px solid var(--boreal-stroke-primary-light)}bds-checkbox.bds-checkbox--checked .bds-checkbox__box,bds-checkbox.bds-checkbox--indeterminate .bds-checkbox__box{border-color:var(--boreal-ui-primary-base);background:var(--boreal-ui-primary-base);color:#fff}bds-checkbox.bds-checkbox--checked:hover .bds-checkbox__box,bds-checkbox.bds-checkbox--indeterminate:hover .bds-checkbox__box{border-color:var(--boreal-ui-primary-dark);background:var(--boreal-ui-primary-dark)}bds-checkbox.bds-checkbox--checked:focus-visible .bds-checkbox__box,bds-checkbox.bds-checkbox--indeterminate:focus-visible .bds-checkbox__box{border-color:var(--boreal-ui-primary-base);background:var(--boreal-ui-primary-base);outline:2px solid var(--boreal-stroke-focus)}bds-checkbox.bds-checkbox--checked:active .bds-checkbox__box,bds-checkbox.bds-checkbox--indeterminate:active .bds-checkbox__box{border-color:var(--boreal-ui-primary-dark);background:var(--boreal-ui-primary-dark)}bds-checkbox.bds-checkbox--error .bds-checkbox__box{border-color:var(--boreal-stroke-danger-base)}bds-checkbox.bds-checkbox--error.bds-checkbox--checked .bds-checkbox__box,bds-checkbox.bds-checkbox--error.bds-checkbox--indeterminate .bds-checkbox__box{border-color:var(--boreal-stroke-danger-base);background:var(--boreal-stroke-danger-base)}bds-checkbox.bds-checkbox--disabled{pointer-events:none}bds-checkbox.bds-checkbox--disabled .bds-checkbox__box{border-color:var(--boreal-stroke-default-light);background:var(--boreal-bg-neutral)}bds-checkbox.bds-checkbox--disabled .bds-checkbox__label{color:var(--boreal-text-disabled)}bds-checkbox.bds-checkbox--disabled.bds-checkbox--checked .bds-checkbox__box,bds-checkbox.bds-checkbox--disabled.bds-checkbox--indeterminate .bds-checkbox__box{border-color:var(--boreal-ui-primary-light);background:var(--boreal-ui-primary-light);color:#fff}'};var h=e("bds_checkbox",function(e){__extends(o,e);function o(o){var s=e.call(this)||this;r(s,o);s.valueChange=c(s,"valueChange");s.bdsChange=c(s,"bdsChange");if(o.$hostElement$["s-ei"]){s.internals=o.$hostElement$["s-ei"]}else{s.internals=o.$hostElement$.attachInternals();o.$hostElement$["s-ei"]=s.internals}s.inheritedAttributes={};s.isDisabled=false;s.disabled=false;s.required=false;s.checked=false;s.indeterminate=false;s.error=false;s.value="on";s.label="";s.handleClick=function(){s.toggle()};s.handleKeyDown=function(e){if(e.key===" "){e.preventDefault();s.toggle()}};return s}o.prototype.componentWillLoad=function(){this.isDisabled=this.disabled;this.inheritedAttributes=__assign({},n(this.el));this.syncFormValue()};o.prototype.onCheckedChange=function(){this.syncFormValue()};o.prototype.onDisabledChange=function(e){this.isDisabled=e};o.prototype.formAssociatedCallback=function(){this.syncFormValue()};o.prototype.formResetCallback=function(){this.checked=false;this.indeterminate=false;i(this.internals,null)};o.prototype.formStateRestoreCallback=function(e,o){this.checked=e===this.value;this.syncFormValue()};o.prototype.formDisabledCallback=function(e){this.isDisabled=e};o.prototype.syncFormValue=function(){i(this.internals,this.checked?this.value:null)};o.prototype.toggle=function(){if(this.isDisabled)return;this.indeterminate=false;this.checked=!this.checked;this.valueChange.emit(this.checked);this.bdsChange.emit({checked:this.checked,value:this.value})};o.prototype.getAriaChecked=function(){if(this.indeterminate)return"mixed";return this.checked?"true":"false"};o.prototype.renderCheckIcon=function(){if(this.indeterminate){return s("svg",{class:"bds-checkbox__icon",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s("path",{d:"M4 8h8",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"}))}if(this.checked){return s("svg",{class:"bds-checkbox__icon",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s("path",{d:"M3.5 8.5L6.5 11.5L12.5 4.5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))}return null};o.prototype.render=function(){var e={"bds-checkbox":true,"bds-checkbox--checked":this.checked,"bds-checkbox--indeterminate":this.indeterminate,"bds-checkbox--error":this.error,"bds-checkbox--disabled":this.isDisabled};return s(b,__assign(__assign({key:"4c2aa0c0e06451d258204ed2aaf92c41f730a2a8",class:e},this.inheritedAttributes),{role:"checkbox","aria-checked":this.getAriaChecked(),"aria-disabled":this.isDisabled?"true":null,tabindex:this.isDisabled?-1:0,onClick:this.handleClick,onKeyDown:this.handleKeyDown}),s("span",{key:"de6763aaef951d9236cbf4df7ac49fd09f998e93",class:"bds-checkbox__box"},this.renderCheckIcon()),s("span",{key:"571e62e3cde00561465a155bc1399f6074516a03",class:"bds-checkbox__label"},this.label?this.label:s("slot",null)))};Object.defineProperty(o,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(o.prototype,"el",{get:function(){return t(this)},enumerable:false,configurable:true});Object.defineProperty(o,"watchers",{get:function(){return{checked:[{onCheckedChange:0}],disabled:[{onDisabledChange:0}]}},enumerable:false,configurable:true});return o}(o(a)));h.style=d()}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var a,t=1,r=arguments.length;t<r;t++){a=arguments[t];for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i))e[i]=a[i]}return e};return __assign.apply(this,arguments)};System.register(["./p-DCKg5Cg_.system.js","./p-BuxZeJbu.system.js","./p-BsZkk4oK.system.js"],(function(e){"use strict";var a,t,r,i,s,n;return{setters:[function(e){a=e.r;t=e.h;r=e.a;i=e.g},function(e){s=e.a},function(e){n=e.v}],execute:function(){var o={ICON:"icon",NAME:"name",FULL:"full"};var l=function(){return'@charset "UTF-8";.bds-avatar{font-family:var(--boreal-typography-font-family-primary)}.bds-avatar__container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--boreal-spacing-xs)}.bds-avatar__circle{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:var(--boreal-layout-ml);height:var(--boreal-layout-ml);border-radius:var(--boreal-radius-full);background-color:var(--bds-avatar-background)}.bds-avatar__initials{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-xs);font-weight:var(--boreal-typography-font-weight-semibold);line-height:var(--boreal-typography-line-height-xs);color:var(--bds-avatar-initials-color);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bds-avatar__name{font-size:var(--boreal-typography-font-size-sm);font-weight:var(--boreal-typography-font-weight-semibold);line-height:var(--boreal-typography-line-height-sm);color:var(--boreal-text-default);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}'};var c=e("bds_avatar",function(){function e(e){a(this,e);this.inheritedAttributes={};this.username="";this.variant=o.FULL;this.background="";this.initialsColor=""}e.prototype.componentWillLoad=function(){this.checkPropValues();this.inheritedAttributes=__assign({},s(this.el))};e.prototype.componentDidLoad=function(){if(this.normalizedUsername.length<=0&&this.variant!==o.ICON)console.warn("[BorealDS Avatar] Missing required `username` prop. The avatar relies on it to display initials or name.")};e.prototype.checkPropValues=function(){n(Object.values(o),o.FULL,this.el,"variant")};Object.defineProperty(e.prototype,"normalizedUsername",{get:function(){return this.username.trim()},enumerable:false,configurable:true});e.prototype.extractInitials=function(e){if(e===void 0){e=""}if(e.length===0)return"";var a=e.trim().split(/\s+/).filter((function(e){return e.length>0}));if(a.length===0)return"";if(a.length===1)return a[0].charAt(0).toUpperCase();var t=a[0].charAt(0).toUpperCase();var r=a[a.length-1].charAt(0).toUpperCase();return"".concat(t).concat(r)};e.prototype.getAvatarStyles=function(){var e;var a=this.background||"var(--boreal-ui-success-base)";var t=this.initialsColor||"var(--boreal-text-inverse)";return e={},e["--bds-avatar-background"]="".concat(a),e["--bds-avatar-initials-color"]="".concat(t),e};e.prototype.render=function(){var e=this.extractInitials(this.normalizedUsername);var a=this.normalizedUsername.length>0?"User name: ".concat(this.normalizedUsername):"User name";var i=this.variant===o.FULL||this.variant===o.ICON;var s=this.normalizedUsername&&(this.variant===o.FULL||this.variant===o.NAME);return t(r,__assign({key:"8c3cc5b02c02997a8aad688ae043522d07bc3239",class:"bds-avatar",role:"img","aria-label":a},this.inheritedAttributes),t("div",{key:"357ec2fbb0f4ad6c9b3fa54da78c55eab0a4f7f7",class:"bds-avatar__container"},i&&t("div",{key:"2dbc77e00bedf5e67f08337dad76eeca9fcffb28",class:"bds-avatar__circle",style:this.getAvatarStyles()},t("span",{key:"6bbd987437cf03bc573363d86092349da5d12521",class:"bds-avatar__initials"},e)),s&&t("span",{key:"05e0480670c5ba15b8518325910a661aefb32da8",class:"bds-avatar__name"},this.normalizedUsername)))};Object.defineProperty(e.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});return e}());c.style=l()}}}));
|