@adyen/bento-vue3 1.84.1 → 1.84.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/dist/assets/accordion-item.css +1 -1
  2. package/dist/assets/action-bar.css +1 -1
  3. package/dist/assets/base-modal.css +1 -1
  4. package/dist/assets/button-actions.css +1 -1
  5. package/dist/assets/card.css +1 -1
  6. package/dist/assets/data-grid.css +1 -1
  7. package/dist/assets/dialog-page.css +1 -1
  8. package/dist/assets/file-uploader.css +1 -1
  9. package/dist/assets/inspector.css +1 -1
  10. package/dist/assets/modal-fullscreen.css +1 -1
  11. package/dist/assets/sidepanel.css +1 -1
  12. package/dist/chunks/{code-snippet.4HtbNUDE.js → code-snippet.BX3Yeo0x.js} +2 -2
  13. package/dist/chunks/{code-snippet.4HtbNUDE.js.map → code-snippet.BX3Yeo0x.js.map} +1 -1
  14. package/dist/chunks/{data-grid.DJAYHf2n.js → data-grid.CqtJp9rE.js} +5 -5
  15. package/dist/chunks/{data-grid.DJAYHf2n.js.map → data-grid.CqtJp9rE.js.map} +1 -1
  16. package/dist/chunks/{date-picker.dyp0YK9_.js → date-picker.DGIwFh6T.js} +13 -13
  17. package/dist/chunks/{date-picker.dyp0YK9_.js.map → date-picker.DGIwFh6T.js.map} +1 -1
  18. package/dist/chunks/{date-range-picker.TsUvRvGy.js → date-range-picker.Df9XyFMH.js} +26 -26
  19. package/dist/chunks/{date-range-picker.TsUvRvGy.js.map → date-range-picker.Df9XyFMH.js.map} +1 -1
  20. package/dist/chunks/{dropdown-tag.DtpDzWl4.js → dropdown-tag.Bf6TiNZw.js} +2 -2
  21. package/dist/chunks/{dropdown-tag.DtpDzWl4.js.map → dropdown-tag.Bf6TiNZw.js.map} +1 -1
  22. package/dist/chunks/{dropdown.D0_8f9Mz.js → dropdown.Dct8gr_q.js} +19 -19
  23. package/dist/chunks/{dropdown.D0_8f9Mz.js.map → dropdown.Dct8gr_q.js.map} +1 -1
  24. package/dist/chunks/es6.C1DXQV6f.js.map +1 -1
  25. package/dist/chunks/{filter-bar.D0BEt7ia.js → filter-bar.DHRuvmx9.js} +6 -6
  26. package/dist/chunks/{filter-bar.D0BEt7ia.js.map → filter-bar.DHRuvmx9.js.map} +1 -1
  27. package/dist/chunks/{header-with-views.BGIZadqh.js → header-with-views.XzJCg2Ln.js} +2 -2
  28. package/dist/chunks/{header-with-views.BGIZadqh.js.map → header-with-views.XzJCg2Ln.js.map} +1 -1
  29. package/dist/chunks/{input-field-password.DN3ltmAg.js → input-field-password.Drp3Gn3x.js} +3 -3
  30. package/dist/chunks/{input-field-password.DN3ltmAg.js.map → input-field-password.Drp3Gn3x.js.map} +1 -1
  31. package/dist/chunks/{input-field-phone-number.CouE9QiR.js → input-field-phone-number.CcCrGAZb.js} +3 -3
  32. package/dist/chunks/{input-field-phone-number.CouE9QiR.js.map → input-field-phone-number.CcCrGAZb.js.map} +1 -1
  33. package/dist/chunks/{input-field.C2SQq0V1.js → input-field.CBegTqdQ.js} +2 -2
  34. package/dist/chunks/{input-field.C2SQq0V1.js.map → input-field.CBegTqdQ.js.map} +1 -1
  35. package/dist/chunks/{pagination.Biy7xN75.js → pagination.BofKoYTB.js} +2 -2
  36. package/dist/chunks/{pagination.Biy7xN75.js.map → pagination.BofKoYTB.js.map} +1 -1
  37. package/dist/chunks/{search-bar.BF8M5OSY.js → search-bar.DrkPxPDP.js} +3 -3
  38. package/dist/chunks/{search-bar.BF8M5OSY.js.map → search-bar.DrkPxPDP.js.map} +1 -1
  39. package/dist/chunks/{secondary-nav.D2lBMjqY.js → secondary-nav.C0_VfFa9.js} +2 -2
  40. package/dist/chunks/{secondary-nav.D2lBMjqY.js.map → secondary-nav.C0_VfFa9.js.map} +1 -1
  41. package/dist/code-snippet.js +1 -1
  42. package/dist/data-grid.js +1 -1
  43. package/dist/date-picker.js +1 -1
  44. package/dist/date-range-picker.js +1 -1
  45. package/dist/dropdown.js +2 -2
  46. package/dist/filter-bar.js +1 -1
  47. package/dist/header-with-views.js +1 -1
  48. package/dist/index.js +14 -14
  49. package/dist/input-field-password.js +1 -1
  50. package/dist/input-field-phone-number.js +1 -1
  51. package/dist/input-field.js +1 -1
  52. package/dist/pagination.js +1 -1
  53. package/dist/search-bar.js +2 -2
  54. package/dist/secondary-nav.js +1 -1
  55. package/dist/styles/bento-dark.css +1 -0
  56. package/dist/styles/bento-light.css +1 -0
  57. package/dist/styles/bento.css +1 -0
  58. package/dist/styles/legacy.css +1 -0
  59. package/dist/styles/styleguide.css +1 -0
  60. package/dist/web-types.json +1 -1
  61. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown.D0_8f9Mz.js","sources":["../../../vue2/src/components/dropdown/components/dropdown-options-container/composables/use-dropdown-options-listbox.ts","../../../vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue","../../../ui-assets/icons-16/dist/vue/chevron-down-small.vue","../../../ui-assets/icons-16/dist/vue/chevron-up-small.vue","../../../vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue","../../../vue2/src/components/dropdown/composables/use-display-value.ts","../../../vue2/src/components/dropdown/composables/use-keyboard-navigation.ts","../../../vue2/src/components/search-bar/useSearchBarDataFilter.ts","../../../vue2/src/components/input-field/input-field.keys.ts","../../../vue2/src/components/dropdown/dropdown.vue"],"sourcesContent":["import { computed, ref, type Ref, watch } from 'vue';\nimport { BentoListboxEvent, type BentoListboxOptions } from '@/types/listbox';\nimport { BentoDropdownEvent } from '../../../dropdown.types';\nimport { useI18n } from '@/utils/ts/i18n';\nimport messages from '../messages.json';\n\ntype MessageSchema = (typeof messages)['en-US'];\n\n/**\n * A composable that handles all dropdown options option selecting logic & listeners.\n * If single select dropdown then emits straight up to dropdown.\n * If multi select dropdown then stores selections in internal state and only emits when Apply button is pressed.\n *\n * @param selectedValue The selectedValue property passed into the dropdown options container component.\n * @param multiple The multiple property passed into the dropdown options container component.\n * @param isOpen The isOpen property passed into the dropdown options container component.\n * @param emit The emit function for the dropdown options container component.\n */\nexport const useDropdownOptionsListbox = (\n selectedValue: Ref<BentoListboxOptions>,\n multiple: Ref<boolean>,\n isOpen: Ref<boolean>,\n emit: (event: BentoListboxEvent | BentoDropdownEvent, selectedValue?: BentoListboxOptions) => void\n) => {\n const internalSelectedValue = ref(selectedValue.value);\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n watch(selectedValue, () => {\n internalSelectedValue.value = selectedValue.value;\n });\n\n // Multi-select dropdown cancel and apply button logic\n const isApplyButtonDisabled = computed(\n () => JSON.stringify(internalSelectedValue.value) === JSON.stringify(selectedValue.value)\n );\n\n const onApplyClick = () => {\n emit(BentoListboxEvent.SELECT, internalSelectedValue.value);\n emit(BentoDropdownEvent.CLOSE_DROPDOWN);\n };\n\n const onCancelClick = () => {\n internalSelectedValue.value = selectedValue.value;\n emit(BentoDropdownEvent.CLOSE_DROPDOWN);\n };\n\n const onOutsideDropdownClick = () => {\n if (isOpen.value && multiple.value) {\n internalSelectedValue.value = selectedValue.value;\n }\n };\n\n const actions = computed(() => [\n {\n title: t('apply') as string,\n event: onApplyClick,\n disabled: isApplyButtonDisabled.value,\n },\n {\n title: t('cancel') as string,\n event: onCancelClick,\n },\n ]);\n\n // Click and keyboard navigation event listners\n const onOptionSelected = (newSelectedValue: BentoListboxOptions) => {\n internalSelectedValue.value = newSelectedValue;\n if (!multiple.value) {\n emit(BentoDropdownEvent.SELECT, newSelectedValue);\n }\n };\n\n const onTabKey = (newSelectedValue: BentoListboxOptions) => {\n onOptionSelected(newSelectedValue);\n emit(BentoDropdownEvent.TAB);\n };\n\n const onEnterKey = (newSelectedValue: BentoListboxOptions) => {\n onOptionSelected(newSelectedValue);\n emit(BentoDropdownEvent.ENTER);\n };\n\n const onSpaceKey = (newSelectedValue: BentoListboxOptions) => {\n onOptionSelected(newSelectedValue);\n emit(BentoDropdownEvent.SPACE);\n };\n\n const onEscapeKey = () => {\n onCancelClick();\n emit(BentoListboxEvent.ESCAPE);\n };\n\n const emitShowMoreEvent = () => {\n emit(BentoDropdownEvent.SHOW_MORE);\n };\n\n const listeners = {\n [BentoListboxEvent.SELECT]: onOptionSelected,\n [BentoListboxEvent.SHOW_MORE]: emitShowMoreEvent,\n [BentoListboxEvent.TAB]: onTabKey,\n [BentoListboxEvent.SPACE]: onSpaceKey,\n [BentoListboxEvent.ENTER]: onEnterKey,\n };\n\n return {\n // Values\n actions,\n internalSelectedValue,\n\n // Methods\n listeners,\n onEscapeKey,\n onOutsideDropdownClick,\n };\n};\n","<template>\n <component\n :is=\"popperContainerOrPopoverComponent\"\n class=\"b-dropdown-options-container\"\n :class=\"conditionalClasses\"\n v-bind=\"popperContainerOrPopoverProps\"\n >\n <div @keydown.esc=\"onEscapeKey\">\n <bento-listbox\n :id=\"id\"\n ref=\"dropdownOptionsListboxRef\"\n :aria-label=\"ariaLabel\"\n class=\"b-dropdown-options-container__listbox\"\n :class=\"conditionalListboxClasses\"\n :component-loading=\"componentLoading\"\n :empty-state=\"emptyState\"\n :is-option-disabled=\"isOptionDisabled\"\n :items=\"items\"\n :selected-value=\"internalSelectedValue\"\n :multiple=\"multiple\"\n :static-categories=\"staticCategories\"\n :no-results-message=\"noResultsMessage\"\n :searching=\"searching\"\n :loading=\"loading\"\n :lazy-load-type=\"lazyLoadType\"\n :has-more-items=\"hasMoreItems\"\n :virtual-scroll=\"virtualScroll\"\n v-on=\"listeners\"\n >\n <template v-for=\"(_, innerSlot) of slots\" #[innerSlot]=\"scope\">\n <slot :name=\"innerSlot\" v-bind=\"scope\" />\n </template>\n </bento-listbox>\n </div>\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, type PropType, ref, toRefs, useSlots } from 'vue';\n import { BentoListbox } from '@/internal';\n import {\n type BentoListboxEvent,\n type BentoListboxIsOptionDisabled,\n type BentoListboxOptions,\n } from '@/types/listbox';\n import { PopperContainer } from '@/components/popper-container';\n import {\n type BentoDropdownEmptyStateProps,\n type BentoDropdownEvent,\n BentoDropdownLazyLoadType,\n type BentoDropdownVirtulisationOptions,\n } from '../../dropdown.types';\n import { useI18n } from '@/utils/ts/i18n';\n import { BentoPopover } from '@/components/popover';\n import { useDropdownOptionsListbox } from './composables/use-dropdown-options-listbox';\n import { generateUid } from '@/core/utils/ts';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const slots = useSlots();\n\n const emit = defineEmits<{\n /**\n * Emitted when the dropdown is closing.\n */\n (e: BentoDropdownEvent.CLOSE_DROPDOWN);\n\n /**\n * Emitted when the `ENTER` key is pressed\n */\n (e: BentoListboxEvent.ENTER, newSelectedValue: BentoListboxOptions);\n\n /**\n * Emitted when the `ESCAPE` key is pressed\n */\n (e: BentoListboxEvent.ESCAPE);\n\n /**\n * Emitted when an item is selected\n */\n (e: BentoListboxEvent.SELECT, newSelectedValue: BentoListboxOptions);\n\n /**\n * Emitted when:\n * - `lazyLoad` is `automatic` and the scroll meets the end of the list\n * - `lazyload` is `button` and the button is clicked\n */\n (e: BentoDropdownEvent.SHOW_MORE);\n\n /**\n * Emitted when the `SPACE` key is pressed\n */\n (e: BentoListboxEvent.SPACE, newSelectedValue: BentoListboxOptions);\n\n /**\n * Emitted when the `TAB` key is pressed\n */\n (e: BentoListboxEvent.TAB, newSelectedValue: BentoListboxOptions);\n }>();\n\n const props = defineProps({\n /**\n * Defines a string value that labels an interactive element.\n */\n ariaLabel: { type: String, default: null },\n\n /**\n * Indicates that dropdown items are loading\n */\n componentLoading: { type: Boolean, default: false },\n\n /**\n * Empty state props used with the inner empty state component which is displayed when no search results are found.\n */\n emptyState: {\n type: Object as PropType<BentoDropdownEmptyStateProps>,\n default: undefined,\n },\n\n /**\n * Disables dropdown functionality\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Indicates whether there are more items to load\n */\n hasMoreItems: { type: Boolean, default: false },\n\n /**\n * Identifies the listbox whose contents are controlled by the the combobox on which the aria-controls attribute is set.\n */\n id: { type: String, required: true },\n\n /**\n * Function that allows the options to be disabled\n *\n * @type {BentoDropdownIsOptionDisabled}\n * @param {BentoDropdownOptionItem} option - Dropdown option object\n * @param {string} option.label - Option's label text\n * @param {string|number} option.value - Option's value\n * @param {unknown} option.data - Option's extra data to be passed to the default slot\n */\n isOptionDisabled: {\n type: Function as PropType<BentoListboxIsOptionDisabled>,\n default: undefined,\n },\n\n /**\n * The option elements to populate the dropdown with.\n * It must be an array of {@see BentoDropdownOptionItem }\n * * @property {string} value.label - Text to be displayed in the option\n * * @property {string,number} value.value - Value of the option\n */\n items: {\n type: Array as PropType<BentoListboxOptions>,\n required: true,\n },\n\n /**\n * The type of `Lazy Load`.\n * Type \"automatic\" will enable infinite scrolling\n * Type \"button\" will enable lazy loading with \"Show more\" button\n */\n lazyLoadType: {\n type: String as PropType<BentoDropdownLazyLoadType | `${BentoDropdownLazyLoadType}`>,\n default: BentoDropdownLazyLoadType.AUTOMATIC,\n validator: (value: BentoDropdownLazyLoadType) => Object.values(BentoDropdownLazyLoadType).includes(value),\n },\n\n /**\n * Indicates if new options are lazy loading.\n */\n loading: { type: Boolean, default: false },\n\n /**\n * If enabled, the user will be able to select multiple items.\n */\n multiple: { type: Boolean, default: false },\n\n /**\n * Indicates if the dropdown is open so that\n * the container can be displayed.\n */\n open: { type: Boolean, required: true },\n\n /**\n * The `input` value.\n * Providing an empty string or empty array will select no options.\n * Set to an empty string `''` if you don't want any of the available options to be selected for single select\n */\n selectedValue: {\n type: Array as PropType<BentoListboxOptions>,\n default: null,\n },\n\n /**\n * Flag that indicates that an external search it's being made\n * to filter out the items inside the the multi-select listbox\n *\n * If enabled, hides the \"Select all\" checkbox in \"multiple\" mode.\n */\n searching: BentoListbox.props.searching,\n\n /**\n * If enabled, dropdown will display non-selectable, static categories\n */\n staticCategories: { type: Boolean, default: false },\n\n /**\n * Reference to the DOM element or Vue component for positioning\n * the Dropdown container.\n */\n targetElement: { type: PopperContainer.props.targetElement.type, required: true },\n\n /**\n * Enables virtual scrolling if set to true or by providing an object with itemHeight function.\n * The itemHeight function is used to calculate the height of rendered item given it's index.\n */\n virtualScroll: {\n type: [Boolean, Object] as PropType<BentoDropdownVirtulisationOptions>,\n default: false,\n },\n });\n\n const { selectedValue, multiple } = toRefs(props);\n const dropdownOptionsListboxRef = ref(null);\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const isDropdownOpen = computed(() => props.open && !props.disabled);\n const noResultsMessage = computed(() => t('noOptionsMatchThisSearch') as string);\n\n const conditionalClasses = computed(() => ({\n 'b-dropdown-options-container--single': !props?.multiple,\n }));\n\n const conditionalListboxClasses = computed(() => ({\n 'b-dropdown-options-container__listbox--single': !props?.multiple,\n }));\n\n const { actions, internalSelectedValue, listeners, onEscapeKey, onOutsideDropdownClick } =\n useDropdownOptionsListbox(selectedValue, multiple, isDropdownOpen, emit);\n\n // Use different components depending on if the dropdown is a single or multi-select\n const popperContainerOrPopoverComponent = computed(() => (props?.multiple ? BentoPopover : PopperContainer));\n\n const popperContainerOrPopoverProps = computed(() => {\n const containerMinAndMaxWidth = {\n 'min-width': `${(props?.targetElement as HTMLElement)?.clientWidth}px`,\n 'max-width': 'min(500px, 95%)',\n };\n\n return props?.multiple\n ? ({\n actionsLayout: 'space-between',\n ariaLabel: props.ariaLabel,\n actions: actions.value,\n divider: true,\n fallbackPosition: ['top-start'],\n id: generateUid(`dropdown-options-${props.id}`),\n open: props.open,\n position: 'bottom-start',\n style: {\n width: 'auto',\n ...containerMinAndMaxWidth,\n },\n targetElement: props.targetElement,\n } as InstanceType<typeof BentoPopover>['$props'])\n : ({\n fallbackPosition: ['top-start'],\n offset: [0, 8],\n position: 'bottom-start',\n style: {\n display: isDropdownOpen.value ? 'block' : 'none',\n ...containerMinAndMaxWidth,\n },\n targetElement: props.targetElement,\n } as InstanceType<typeof PopperContainer>['$props']);\n });\n\n defineExpose({\n onOutsideDropdownClick,\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Dropdown options container.\n * It lists all the available options.\n *\n * @example\n * <bento-dropdown-options-container\n * v-if=\"inputContainerRef\" <!-- Ref to the input to match the width -->\n * :id=\"dropdownOptionsContainerId\"\n * :target-element=\"inputContainerRef\"\n * :aria-label=\"ariaLabel\"\n * :open=\"isDropdownOpen\"\n * :disabled=\"disabled\"\n * :multiple=\"multiple\"\n * :selected=\"value\"\n * :isOptionDisabled=\"option => option.value === 2\"\n * :items=\"[{\n * { label: 'Option 1', value: 1 },\n * { label: 'Option 2', value: 2 },\n * }]\"\n * @select=\"onOptionSelected\"\n * />\n */\n export default defineComponent({\n i18n: { messages },\n name: 'bento-dropdown-options-container',\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./dropdown-options-container.scss\" />\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#001222\" d=\"M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z\"/></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#001222\" d=\"M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z\"/></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n","<template>\n <div class=\"b-dropdown-small-textbox\" :class=\"conditionalClasses\">\n <dropdown-base-textbox\n ref=\"baseTextbox\"\n v-bind=\"{ ...$attrs, ...$props }\"\n class=\"b-dropdown-small-textbox__textbox\"\n :size=\"BentoDropdownSize.SMALL\"\n v-on=\"listeners\"\n >\n <template #icon>\n <div class=\"b-dropdown-small-textbox__chevron\">\n <chevron-up-small-icon v-show=\"isDropdownOpen\" svg-title=\"opened\" />\n <chevron-down-small-icon v-show=\"!isDropdownOpen\" svg-title=\"closed\" />\n </div>\n </template>\n </dropdown-base-textbox>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, type PropType, ref } from 'vue';\n import {\n DropdownBaseTextboxEvent,\n DropdownBaseTextboxState,\n } from '@/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.types';\n import { BentoDropdownSize } from '@/components/dropdown/dropdown.types';\n import { type Booleanish } from '@/types/prop-types';\n import DropdownBaseTextbox from '@/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue';\n import ChevronDownSmallIcon from '@adyen/ui-assets-icons-16/vue/chevron-down-small';\n import ChevronUpSmallIcon from '@adyen/ui-assets-icons-16/vue/chevron-up-small';\n import { stopEventPropagation } from '@/utils/ts/events';\n\n const emit = defineEmits<{\n /**\n * Emitted on clearing the input.\n */\n (e: 'clear');\n\n /**\n * Emitted on click, space and enter user events. It will open the dropdown.\n */\n (e: 'close');\n\n /**\n * Emitted on input event.\n */\n (e: 'input', newInput: string);\n\n /**\n * Emitted on keydown event.\n */\n (e: 'keydown', keydownEvent: KeyboardEvent);\n\n /**\n * Emitted on click, space, enter and esc user events. It will close the dropdown.\n */\n (e: 'open');\n }>();\n\n const props = defineProps({\n /**\n * The number of additional items that have been selected in the dropdown.\n */\n additionalItemsSelected: { type: [Number, String] as PropType<number | string>, default: 0 },\n\n /**\n * Sets the aria-controls attribute on the textbox. This should correspond to the popover's id that the textbox triggers.\n */\n ariaControls: { type: String, required: true },\n\n /**\n * Indicates whether the content the textbox triggers is visible or not. Needs to be set accordingly when the textbox is used and changed every time the popover is shown/hidden.\n */\n ariaExpanded: {\n type: [String, Boolean] as PropType<Booleanish>,\n required: true,\n },\n\n /**\n * If no label element is used then the aria-label is be set should be set.\n */\n ariaLabel: { type: String, default: null },\n\n /**\n * Corresponds to the label's id that labels the textbox element.\n */\n ariaLabelledby: { type: String, default: null },\n\n /**\n * Custom debounce time. Default: 300\n */\n debounceTime: { type: Number, default: 300 },\n\n /**\n * Disables any textbox functionality\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Selected option's label\n */\n displayValue: { type: String, default: null },\n\n /**\n * Sets the possibility to type into the textbox\n */\n dynamicFiltering: { type: Boolean, default: false },\n\n /**\n * Marks the textbox as invalid, rendering an error state\n */\n isInvalid: { type: Boolean, default: false },\n\n /**\n * Indicates if the dropdown is open so that\n * the respective event can be emitted\n */\n open: { type: Boolean, default: false },\n\n /**\n * Sets the dropdown to readonly state\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * The input value\n */\n value: { type: String, default: '' },\n });\n\n const baseTextbox = ref(null);\n\n const conditionalClasses = computed(() => ({\n [`b-dropdown-small-textbox--${DropdownBaseTextboxState.DISABLED}`]: props.disabled,\n [`b-dropdown-small-textbox--${DropdownBaseTextboxState.READONLY}`]: props.readonly,\n [`b-dropdown-small-textbox--${DropdownBaseTextboxState.OPENED}`]: props.open,\n }));\n\n const isDropdownOpen = computed(() => props.open && !props.disabled && !props.readonly);\n\n const onInput = (newInput: string) => {\n emit('input', newInput);\n };\n const onKeyDown = (e: KeyboardEvent) => {\n emit('keydown', e);\n };\n const openDropdown = (e: Event) => {\n stopEventPropagation(e);\n emit('open');\n };\n const closeDropdown = (e: Event) => {\n stopEventPropagation(e);\n emit('close');\n };\n const clearValue = (e: Event) => {\n stopEventPropagation(e);\n emit('clear');\n };\n\n const listeners = {\n [DropdownBaseTextboxEvent.INPUT]: onInput,\n [DropdownBaseTextboxEvent.OPEN]: openDropdown,\n [DropdownBaseTextboxEvent.CLOSE]: closeDropdown,\n [DropdownBaseTextboxEvent.CLEAR]: clearValue,\n [DropdownBaseTextboxEvent.KEYDOWN]: onKeyDown,\n };\n\n const focus = () => {\n baseTextbox.value.focus();\n };\n\n defineExpose({\n focus,\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * For internal use only, textbox component in its small variant used in the dropdown component.\n */\n export default defineComponent({\n name: 'dropdown-small-textbox',\n inheritAttrs: false,\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./dropdown-small-textbox.scss\" />\n","import { computed, type Ref } from 'vue';\nimport { type UseDisplayValueOptions } from './use-display-value.types';\nimport { type BentoListboxOptions } from '@/types/listbox';\n\n/**\n * Generates the `displayValue` for the Category Multi Select based on\n * the selection, the placeholder or it can be empty if there's nothing to show.\n *\n * @param options Multi select options\n * @returns The text to be displayed by the dropdown\n */\nconst categoryMultiSelect = (selectedValues: Ref<BentoListboxOptions>, items: Ref<BentoListboxOptions>) =>\n items.value\n .reduce((acc, option) => {\n // Category items\n if (option.items) {\n const selectedCategoryOptions = option.items.filter(categoryOption =>\n selectedValues.value.find(selectedOption => selectedOption.value === categoryOption.value)\n );\n\n // If the category is fully selected add the category name\n const isCategoryFullySelected = selectedCategoryOptions.length === option.items.length;\n if (isCategoryFullySelected) {\n acc.push(option.displayValue ?? option.label);\n } else {\n // If category is partially selected add each selected option and category\n selectedCategoryOptions.forEach(({ label, displayValue }) => acc.push(displayValue ?? label));\n }\n }\n\n // Non-category option\n if (selectedValues.value.find(selectedOption => selectedOption.value === option.value)) {\n acc.push(option.displayValue ?? option.label);\n }\n\n return acc;\n }, [])\n .join(', ');\n\n/**\n * Generates the `displayValue` for the Dropdown based on\n * the selection, the placeholder or it can be empty if there's nothing to show.\n *\n * When there is a selected value but the value is not present in the list, the\n * value is then returned as there is no way to know what the text/label is.\n *\n * @param options Options needed to calculate the display value based on the type of Dropdown (single, multi, category)\n * @returns The text to be displayed by the dropdown\n */\nexport const useDisplayValue = ({ items, placeholder, selectedValues, isMultiSelect }: UseDisplayValueOptions) => {\n const isCategoryMultilevel = computed(\n () => isMultiSelect.value && items.value.find(option => option.items?.length)\n );\n\n const computedDisplayValue = computed(() => {\n // If no value selected, return placeholder or nothing\n if (!selectedValues.value.length) {\n return placeholder.value || null;\n }\n\n // Category multi select\n if (isCategoryMultilevel.value) {\n return categoryMultiSelect(selectedValues, items);\n }\n\n return selectedValues.value.map(({ label, displayValue }) => displayValue ?? label).join(', ');\n });\n\n return computedDisplayValue;\n};\n","import { BentoKeyboardNavigationKeyDownEvent } from '@/types/keyboard-navigation';\nimport { BentoListboxEvent } from '@/types/listbox';\nimport { computed, nextTick, type Ref } from 'vue';\nimport {\n type UseListboxKeyboardNavigationOptions,\n type UseTextboxKeyboardNavigationOptions,\n} from './use-keyboard-navigation.types';\n\n/**\n * Returns the focus to the textbox of the dropdown if it exists\n * when the dropdown is being closed.\n * @param elementToFocusOn Reference to the input container\n */\nconst focusOnTextbox = (elementToFocusOn: Ref) => {\n elementToFocusOn.value.$children?.[0].$refs.textbox.focus();\n};\n\n/**\n * Controls the keyboard navigation inside the Dropdown's textbox for Single and Multi select.\n * Adds support for the keys:\n *\n * - Arrow Down\n * - Arrow Up\n * - Home key\n * - End key\n * - Space key\n * - Enter key\n * - Tab\n * - Escape key\n *\n * @param options Options from the Dropdown to handle the navigation\n * @param toggleDropdown Function to open/close the Dropdown\n * @param openDropdown Function to open the Dropdown\n * @param closeDropdown Function to close the Dropdown\n * @returns List of event listeners available to the Dropdown's textbox\n */\nexport const useTextboxKeyboardNavigation = (\n {\n inputContainerRef,\n optionsContainerRef,\n selectedValueIndex,\n isDropdownOpen,\n isDynamicFltering,\n items,\n isMultiple,\n }: UseTextboxKeyboardNavigationOptions,\n toggleDropdown: () => void,\n openDropdown: () => void,\n closeDropdown: () => void\n) => {\n const focusOnOption = async (index: number) => {\n if (isDynamicFltering.value) {\n await nextTick();\n }\n items.value[index]?.focus();\n };\n\n const focusOnChip = async (index: number) => {\n if (isDynamicFltering.value) {\n await nextTick();\n }\n\n const chips =\n optionsContainerRef.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef?.$el.querySelectorAll(\n 'button'\n );\n\n if (chips.length) {\n chips[index]?.focus();\n } else {\n focusOnOption(index);\n }\n };\n\n const setListboxFocusedIndex = (selectedIndex: number) => {\n return optionsContainerRef.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef?.setListboxFocusedIndex(\n selectedIndex\n );\n };\n\n const skipToFirstOption = () => {\n if (!isDropdownOpen.value) {\n openDropdown();\n }\n\n nextTick(() => {\n setListboxFocusedIndex(0);\n focusOnOption(0);\n });\n };\n\n const skipToLastOption = () => {\n if (!isDropdownOpen.value) {\n openDropdown();\n }\n\n nextTick(() => {\n setListboxFocusedIndex(items.value.length - 1);\n focusOnOption(items.value.length - 1);\n });\n };\n\n const onArrowDown = ({ detail: event }) => {\n event.preventDefault();\n\n skipToFirstOption();\n };\n\n const onArrowUp = ({ detail: event }) => {\n event.preventDefault();\n\n skipToLastOption();\n };\n\n const onHomeKey = () => {\n skipToFirstOption();\n };\n\n const onEndKey = () => {\n skipToLastOption();\n };\n\n const onSpaceKey = ({ detail: event }) => {\n event.preventDefault();\n toggleDropdown();\n if (isDropdownOpen.value) {\n nextTick(() => {\n if (isMultiple) {\n focusOnChip(0);\n } else {\n setListboxFocusedIndex(selectedValueIndex.value);\n focusOnOption(selectedValueIndex.value);\n }\n });\n }\n };\n\n const onEnterKey = ({ detail: event }) => {\n event.preventDefault();\n toggleDropdown();\n if (isDropdownOpen.value) {\n nextTick(() => {\n if (isMultiple) {\n focusOnChip(0);\n } else {\n setListboxFocusedIndex(selectedValueIndex.value);\n focusOnOption(selectedValueIndex.value);\n }\n });\n }\n };\n\n const onTab = () => {\n // tab should not navigate through a combobox\n if (isDropdownOpen.value) {\n closeDropdown();\n }\n };\n\n const onEscapeKey = () => {\n if (isDropdownOpen.value) {\n closeDropdown();\n focusOnTextbox(inputContainerRef);\n }\n };\n\n const textboxKeyboardNavigationListeners = computed(() => ({\n [BentoKeyboardNavigationKeyDownEvent.ARROW_DOWN]: onArrowDown,\n [BentoKeyboardNavigationKeyDownEvent.ARROW_UP]: onArrowUp,\n [BentoKeyboardNavigationKeyDownEvent.HOME]: onHomeKey,\n [BentoKeyboardNavigationKeyDownEvent.END]: onEndKey,\n ...(!isDynamicFltering.value ? { [BentoKeyboardNavigationKeyDownEvent.SPACE]: onSpaceKey } : {}),\n [BentoKeyboardNavigationKeyDownEvent.ENTER]: onEnterKey,\n [BentoKeyboardNavigationKeyDownEvent.TAB]: onTab,\n [BentoKeyboardNavigationKeyDownEvent.ESCAPE]: onEscapeKey,\n }));\n\n return textboxKeyboardNavigationListeners;\n};\n\n/**\n * Controls the keyboard navigation inside the Dropdown's listbox container for Single and Multi select.\n * Adds support for the keys:\n *\n * - Escape key\n * - Enter Key\n * - Tab\n * - Space key\n *\n * @param options Options from the Dropdown to handle the navigation inside the listbox\n * @param closeDropdown Function to close the Dropdown\n * @returns List of event listeners available to the Dropdown's listbox container\n */\nexport const useListboxKeyboardNavigation = (\n { inputContainerRef, isDropdownOpen }: UseListboxKeyboardNavigationOptions,\n closeDropdown: () => void\n) => {\n const closeDropdownAndFocusOnTextbox = () => {\n if (isDropdownOpen.value) {\n closeDropdown();\n }\n nextTick(() => {\n focusOnTextbox(inputContainerRef);\n });\n };\n\n const listboxKeyboardNavigationListeners = {\n [BentoListboxEvent.ENTER]: closeDropdownAndFocusOnTextbox,\n [BentoListboxEvent.ESCAPE]: closeDropdownAndFocusOnTextbox,\n [BentoListboxEvent.TAB]: closeDropdownAndFocusOnTextbox,\n [BentoListboxEvent.SPACE]: closeDropdownAndFocusOnTextbox,\n };\n\n return listboxKeyboardNavigationListeners;\n};\n","import { computed, ref, type Ref, watch } from 'vue';\nimport { type BentoSearchBarItem } from './search-bar.types';\n\n/**\n * Filters an array {@see BentoSearchBarData} containing elements of type {@see BentoSearchBarItem}\n * by the {@param searchTerm}.\n *\n * @param {Ref<String>} searchTerm - Text that satisfies the search criteria.\n * @param {Ref<BentoSearchBarData>} data - Array to be filtered by {@param searchTerm}\n * @returns {Ref<BentoSearchBarData>} New instance of the array filtered by the {@param searchTerm} text\n * @param {Ref<Boolean>} ignoreGroups - Boolean that determines if search returns items with subitems\n */\nexport function useSearchBarFilter<T extends BentoSearchBarItem>(\n searchTerm: Ref<string>,\n data: Ref<Array<T>>,\n searchEvent?: (searchValue: string) => void,\n ignoreGroups?: Ref<boolean>\n) {\n const searchTermRef = ref(searchTerm);\n const dataRef = ref(data);\n\n const findHits = (searchTermLowerCased: string, options: Array<BentoSearchBarItem> = []) =>\n options.flatMap(option => {\n if (option.label.toLocaleLowerCase().includes(searchTermLowerCased)) {\n if (ignoreGroups?.value && option.items) {\n return [...findHits(searchTermLowerCased, option.items)];\n }\n return [option, ...findHits(searchTermLowerCased, option.items)];\n }\n\n if (option.items) {\n return [...findHits(searchTermLowerCased, option.items)];\n }\n\n return [];\n });\n\n // If search event exists trigger it on the search term changing\n watch(searchTermRef, () => {\n if (searchEvent !== undefined) {\n searchEvent(searchTermRef.value);\n }\n });\n\n const filterInputData = computed(() => {\n if (!searchTermRef.value) {\n return dataRef.value;\n }\n // If search event exists, emit the new search value into the event and do not manipulate data.\n if (searchEvent !== undefined) {\n return dataRef.value;\n }\n\n const searchTermLowerCased = searchTermRef.value.toLocaleLowerCase();\n const filtered = findHits(searchTermLowerCased, dataRef.value);\n return filtered;\n });\n\n return filterInputData;\n}\n","export const INPUT_FIELD_COMPONENT_INJECTION_KEY = Symbol('input field component injection key');\nexport const INPUT_FIELD_HINT_INJECTION_KEY = Symbol('input field hint injection key');\nexport const INPUT_FIELD_PARENT_COMPONENT_INJECTION_KEY = Symbol('input field parent component injection key');\n","<!-- TODO: Remove aria props as these are part of JSX elements /vue/types/jsx.d.ts -->\n<!-- eslint-disable vue/attribute-hyphenation -->\n<template>\n <div v-bento-click-outside-directive=\"clickOutsideDropdown\" class=\"b-dropdown\" :class=\"conditionalClasses\">\n <field-label\n v-if=\"label\"\n :id=\"labelId\"\n :condensed=\"condensed\"\n :label=\"label\"\n :tooltip-text=\"tooltipText\"\n :optional=\"optional\"\n :required=\"required\"\n />\n <div\n ref=\"inputContainerRefWrapper\"\n v-bento-keyboard-navigation-directive\n v-on=\"textboxKeyboardNavigationListeners\"\n >\n <component\n :is=\"computedSize\"\n ref=\"inputContainerRef\"\n :condensed=\"condensed\"\n :value=\"searchTerm\"\n :additional-items-selected=\"additionalItemsSelected\"\n :aria-controls=\"dropdownOptionsContainerId\"\n :ariaExpanded=\"isDropdownOpen\"\n :aria-labelledby=\"label ? labelId : null\"\n :aria-describedby=\"ariaDescribedBy\"\n :aria-label=\"computedAriaLabel\"\n :aria-readonly=\"isReadOnly\"\n :readonly=\"isReadOnly\"\n :required=\"required\"\n :disabled=\"disabled\"\n :display-value=\"displayValue\"\n :dynamic-filtering=\"dynamicFiltering\"\n :is-invalid=\"!!errorMessage || error\"\n :multiple=\"multiple\"\n :open=\"isDropdownOpen\"\n :selected-value-item=\"!isInputComponent ? selectedValueItem : undefined\"\n :show-slot-content-in-multiple=\"showSlotContentInMultiple\"\n @input=\"searchTerm = $event\"\n @open=\"toggleDropdown\"\n @close=\"toggleDropdown\"\n >\n <template v-for=\"(_, innerSlot) of slots\" #[innerSlot]=\"scope\">\n <slot :name=\"innerSlot\" v-bind=\"scope\" />\n </template>\n </component>\n </div>\n <bento-dropdown-options-container\n v-if=\"inputContainerRef\"\n :id=\"dropdownOptionsContainerId\"\n ref=\"optionsContainerRef\"\n :aria-label=\"computedAriaLabel\"\n :component-loading=\"componentLoading\"\n :empty-state=\"emptyState\"\n :debounce-time=\"search?.debounceTime\"\n :disabled=\"disabled\"\n :is-option-disabled=\"isOptionDisabled\"\n :items=\"filteredItems\"\n :multiple=\"multiple\"\n :static-categories=\"staticCategories\"\n :open=\"isDropdownOpen\"\n :selected-value=\"cachedSelectedListboxOptions\"\n :searching=\"isSearching\"\n :target-element=\"inputContainerRefWrapper\"\n :loading=\"loading\"\n :has-more-items=\"hasMoreItems\"\n :lazy-load-type=\"lazyLoadType\"\n :virtual-scroll=\"virtualScroll\"\n v-on=\"listboxListeners\"\n >\n <template v-for=\"(_, innerSlot) of slots\" #[innerSlot]=\"scope\">\n <slot :name=\"innerSlot\" v-bind=\"scope\" />\n </template>\n </bento-dropdown-options-container>\n <error-message\n v-if=\"!!errorMessage\"\n :id=\"errorId\"\n :error-message=\"errorMessage\"\n class=\"b-dropdown__error-message\"\n />\n <bento-typography\n v-if=\"description || hasSlot('description')\"\n :id=\"descriptionId\"\n class=\"b-dropdown__description\"\n :class=\"descriptionConditionalClasses\"\n el=\"span\"\n >\n <slot name=\"description\">\n {{ description }}\n </slot>\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import {\n computed,\n defineComponent,\n inject,\n nextTick,\n type Ref,\n ref,\n toRef,\n toRefs,\n useAttrs,\n useSlots,\n watch,\n } from 'vue';\n // Components\n import { BentoDropdownOptionsContainer } from './components/dropdown-options-container';\n import { BentoTypography } from '@/components/typography';\n import { DropdownInputDefault, DropdownInputSmall } from './components';\n import { BentoListbox, ErrorMessage, FieldLabel, useCachedSelectedValues, useMultiLevelItems } from '@/internal';\n\n // Utils\n import { deprecate } from '@/utils/ts/deprecate';\n import { generateUid } from '@/core/utils/ts';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n import { useI18n } from '@/utils/ts/i18n';\n import { useFormFieldEmits } from '@/utils/ts/form-field/form-field';\n\n // Composables\n import { useDisplayValue, useListboxKeyboardNavigation, useTextboxKeyboardNavigation } from './composables';\n import { useVisibleDomOptions } from '@/internal/listbox/composables/use-visible-dom-options/use-visible-dom-options';\n import { useFormLayoutFieldLoading } from '@/composables/use-form-layout-loading/use-form-layout-loading';\n import { useSearchBarFilter } from '@/components/search-bar/useSearchBarDataFilter';\n\n // Directives\n import { BentoClickOutsideDirective as vBentoClickOutsideDirective } from '@/directives/click-outside';\n import { BentoKeyboardNavigationDirective as vBentoKeyboardNavigationDirective } from '@/directives';\n\n // Types\n import { BentoDropdownEvent, type BentoDropdownProps, BentoDropdownSize } from './dropdown.types';\n import {\n BentoListboxEvent,\n type BentoListboxItemRole,\n type BentoListboxMultiSelectValue,\n type BentoListboxOptions,\n type BentoListboxSelectedValue,\n type BentoListboxSelectedValueLabelPair,\n } from '@/types/listbox';\n\n import messages from './messages.json';\n import { useHasSlot } from '@/composables';\n import { INPUT_FIELD_COMPONENT_INJECTION_KEY } from '@/components/input-field/input-field.keys';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const attrs = useAttrs();\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n const props = withDefaults(defineProps<BentoDropdownProps>(), {\n ariaLabel: null,\n condensed: false,\n emptyState: undefined,\n disabled: false,\n dynamicFiltering: false,\n error: false,\n errorMessage: null,\n description: null,\n hasMoreItems: false,\n isOptionDisabled: undefined,\n items: () => [],\n label: null,\n loading: false,\n componentLoading: false,\n lazyLoadType: BentoListbox.props.lazyLoadType.default,\n multiple: false,\n optional: false,\n placeholder: null,\n readonly: false,\n required: false,\n search: undefined,\n showSlotContentInMultiple: false,\n size: null,\n staticCategories: false,\n tooltipText: null,\n value: null,\n modelValue: null,\n virtualScroll: false,\n enableValueLabelPair: false,\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when an option is clicked. Updates the selected option from the \"value\" property linked to the v-model.\n * @deprecated since version 2.0. Use `v-model` or `update:model-value instead.\n */\n (e: 'input', selectedValue: BentoListboxSelectedValue | any); // eslint-disable-line @typescript-eslint/no-explicit-any\n\n /**\n * Emitted when an option is clicked. Updates the selected option from the \"modelValue\" property linked to the v-model.\n */\n (e: 'update:model-value', selectedValue: BentoListboxSelectedValue | any); // eslint-disable-line @typescript-eslint/no-explicit-any\n\n /**\n * Emitted when:\n * - `lazyLoad` is `automatic` and the scroll meets the end of the list\n * - `lazyload` is `button` and the button is clicked\n */\n (e: 'show-more');\n\n /**\n * Emitted when the dropdown is opened.\n */\n (e: 'open');\n }>();\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const { emitValue } = useFormFieldEmits<BentoListboxSelectedValue>(emit);\n\n const inputContainerRef = ref(null);\n const inputContainerRefWrapper = ref(null);\n const optionsContainerRef: Ref<InstanceType<typeof BentoDropdownOptionsContainer>> = ref(null);\n const isDropdownOpen = ref(false);\n const dropdownOptionsContainerId = generateUid('bento-dropdown-options-container');\n const labelId = generateUid('dropdown-label');\n const descriptionId = generateUid('dropdown-description');\n const errorId = generateUid('dropdown-error');\n\n const { isReadOnly } = useFormLayoutFieldLoading(toRef(props, 'readonly'));\n\n const dropdownValue = computed(() => props.modelValue ?? props.value);\n\n const { cachedSelectedListboxOptions, cachedListboxSelectedValues, setCachedValues } = useCachedSelectedValues(\n toRef(props, 'items'),\n dropdownValue,\n toRef(props, 'multiple'),\n toRef(props, 'enableValueLabelPair')\n );\n\n const ariaLabelAttribute = ref(attrs['aria-label']);\n const ariaDescribedByAttribute = ref(attrs['aria-describedby']);\n const { ariaLabel, label } = toRefs(props);\n\n // vue-i18n issue with t() used in script - direct usage in template works\n // requires either createI18n({ legacy: false }) or to be wrapped in computed()\n const computedAriaLabelFallbackMessage = computed(() => t('ariaLabelFallback'));\n const computedAriaLabel = useAriaLabel({\n // TODO: take ariaLabel ref away when aria-label prop is removed\n ariaLabel: ariaLabel.value || (ariaLabelAttribute as Ref<string>),\n label,\n defaultFallback: computedAriaLabelFallbackMessage,\n });\n\n // Inject input field component key to change the dropdown size\n const isInputComponent =\n props.size === BentoDropdownSize.SMALL || inject(INPUT_FIELD_COMPONENT_INJECTION_KEY, false);\n const computedSize = computed(() => (isInputComponent ? BentoDropdownSize.SMALL : BentoDropdownSize.DEFAULT));\n\n const conditionalClasses = computed(() => ({\n 'b-dropdown--condensed': props.condensed,\n }));\n\n // Description styles\n const descriptionConditionalClasses = computed(() => ({\n 'b-dropdown__description--error': !!props.errorMessage,\n }));\n\n // Filtering\n const searchTerm = ref('');\n const items = toRef(props, 'items');\n const staticCategories = toRef(props, 'staticCategories');\n const filteredItems = useSearchBarFilter(searchTerm, items, props?.search?.searchEvent, staticCategories);\n const isSearching = computed(() => props.dynamicFiltering && !!searchTerm.value);\n\n const displayValue = useDisplayValue({\n items,\n placeholder: toRef(props, 'placeholder'),\n isMultiSelect: toRef(props, 'multiple'),\n selectedValues: cachedSelectedListboxOptions,\n });\n\n const selectedValueItem = computed(() => {\n if (props?.multiple && Array.isArray(dropdownValue.value)) {\n return props.items.filter(\n ({ value }) => props?.value && (props?.value as BentoListboxMultiSelectValue).includes(value)\n );\n }\n if (!props.multiple && props.staticCategories) {\n // Find the category that holds the selected value\n const category = props.items.find(categoryItem =>\n categoryItem.items.some(item => item.value === dropdownValue.value)\n );\n // Find the specific item within the category\n const selectedCategoryItem = category\n ? category.items.find(item => item.value === dropdownValue.value)\n : null;\n\n return selectedCategoryItem;\n }\n\n return props.items.find(({ value }) => value === dropdownValue.value);\n });\n\n const selectedValueIndex = computed(() => {\n const index = filteredItems.value.findIndex(({ value }) => {\n return props.enableValueLabelPair\n ? (dropdownValue.value as BentoListboxSelectedValueLabelPair).value === value\n : dropdownValue.value === value;\n });\n return index > -1 ? index : 0;\n });\n\n const { isMultiLevelSelect, flattenedItemsList } = useMultiLevelItems(items);\n\n const isTreePattern = computed(() => isMultiLevelSelect.value && !props.staticCategories);\n\n const computedOptionRole = computed<BentoListboxItemRole>(() => (isTreePattern.value ? 'treeitem' : 'option'));\n\n const additionalItemsSelected = computed(() => {\n if (props.multiple) {\n const selectedItemsCount = Array.isArray(dropdownValue.value) ? dropdownValue.value.length : 0;\n const total = isMultiLevelSelect.value ? flattenedItemsList.value.length : items.value.length;\n\n if (selectedItemsCount === 0) {\n return null;\n }\n\n // Display count always - show \"all\" only when is not external filtering (hasMoreItems = true)\n if (!props.hasMoreItems && total > 0 && total === selectedItemsCount) {\n return t('all');\n }\n\n return selectedItemsCount;\n }\n\n return null;\n });\n\n // ARIA\n const ariaDescribedBy = computed(\n () =>\n [\n props.description ? descriptionId : null,\n ariaDescribedByAttribute.value,\n props.errorMessage ? errorId : null,\n ]\n .filter(Boolean)\n .join(' ') || null\n );\n\n const listboxRef = computed(() => optionsContainerRef.value?.$el as HTMLDivElement);\n\n const { visibleDomOptions, updateVisibleDomOptions } = useVisibleDomOptions(\n listboxRef,\n filteredItems,\n computedOptionRole\n );\n\n const openDropdown = () => {\n if (isReadOnly.value) {\n return;\n }\n isDropdownOpen.value = true;\n nextTick(() => {\n updateVisibleDomOptions();\n });\n };\n\n const closeDropdown = () => {\n isDropdownOpen.value = false;\n };\n\n const toggleDropdown = () => {\n if (isReadOnly.value) {\n return;\n }\n isDropdownOpen.value = !isDropdownOpen.value;\n nextTick(() => {\n updateVisibleDomOptions();\n });\n\n // Clear search\n if (isSearching.value) {\n searchTerm.value = '';\n }\n };\n\n const clickOutsideDropdown = () => {\n if (isSearching.value) {\n searchTerm.value = '';\n }\n\n if (isDropdownOpen.value) {\n isDropdownOpen.value = false;\n // Reset the internal dropdown options state\n optionsContainerRef.value.onOutsideDropdownClick();\n }\n };\n\n const onOptionSelected = (selectedValue: BentoListboxOptions) => {\n // Clear and close the dropdown on single selection\n if (!props.multiple) {\n searchTerm.value = '';\n isDropdownOpen.value = false;\n focus();\n }\n\n setCachedValues(selectedValue);\n\n /**\n * Emit the value/label pair objects if enableValueLabelPair is enabled,\n * otherwise just emit the list of selected values (number or string)\n */\n emitValue(cachedListboxSelectedValues.value);\n };\n\n const emitShowMoreEvent = () => {\n emit(BentoDropdownEvent.SHOW_MORE);\n };\n\n const textboxKeyboardNavigationListeners = useTextboxKeyboardNavigation(\n {\n inputContainerRef,\n optionsContainerRef,\n selectedValueIndex,\n isDropdownOpen,\n isDynamicFltering: toRef(props, 'dynamicFiltering'),\n items: visibleDomOptions,\n isMultiple: props.multiple,\n },\n toggleDropdown,\n openDropdown,\n closeDropdown\n );\n\n const listboxKeyboardNavigationListeners = useListboxKeyboardNavigation(\n {\n inputContainerRef,\n isDropdownOpen,\n },\n closeDropdown\n );\n\n const listboxListeners = {\n [BentoListboxEvent.CLOSE_DROPDOWN]: closeDropdown,\n [BentoListboxEvent.SELECT]: onOptionSelected,\n [BentoListboxEvent.SHOW_MORE]: emitShowMoreEvent,\n ...listboxKeyboardNavigationListeners,\n };\n\n if (props.error) {\n deprecate(\n 'BentoDropdown \"error\" property',\n `Use the BentoDropdown \"errorMessage\" property instead to indicate that there is a modifier error.\n Having the field as \"undefined\" will hide/remove the error.\n <bento-dropdown errorMessage=\"Error message text\" />`,\n '2.0.0'\n );\n }\n\n if (props.size) {\n deprecate('BentoDropdown \"size\" property', `Do not use. Only 'default' size should be used.`, '2.0.0');\n }\n\n if (props.value) {\n deprecate(\n 'BentoDropdown \"value\" property',\n `The use of \"value\" prop in \"BentoDropdown\" is no longer supported.\n Use the \"v-model\" or \"model-value\" property instead.`,\n '2.0.0'\n );\n }\n\n const focus = () => {\n inputContainerRef.value.focus();\n };\n\n watch(\n () => isDropdownOpen.value,\n (isOpen: boolean) => {\n if (isOpen) {\n emit('open');\n }\n }\n );\n\n defineExpose({\n focus,\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * A Dropdown shows a selected option's.\n * Use a dropdown when you want users to select options\n * from a list of pre-defined options.\n *\n * @example\n * import { BentoDropdown } from '@adyen/bento-vue2';\n * import type { BentoDropdownOptions } from '@adyen/bento-vue2'\n *\n * export default {\n * components: { BentoDropdown },\n * template: `\n * <bento-dropdown\n * v-model=\"selectedValue\"\n * :disabled=\"false\"\n * :multiple=\"true\"\n * :isOptionsDisabled=\"option => option.value === 2\"\n * :items=\"options\"\n * />\n * `,\n * setup() {\n * const selectedValue = ref(2) // Default value\n * const options: BentoDropdownOptions = [\n * { label: 'Option 1', value: 1 },\n * { label: 'Option 2', value: 2 },\n * ];\n * return { options, selectedValue };\n * }\n * }\n */\n export default defineComponent({\n i18n: { messages },\n name: 'b-dropdown',\n components: {\n DropdownInputDefault,\n DropdownInputSmall,\n },\n model: { prop: 'modelValue' },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./dropdown.scss\" />\n"],"names":["useDropdownOptionsListbox","selectedValue","multiple","isOpen","emit","internalSelectedValue","ref","t","useI18n","messages$1","watch","isApplyButtonDisabled","computed","onApplyClick","BentoListboxEvent","onCancelClick","onOutsideDropdownClick","actions","onOptionSelected","newSelectedValue","onTabKey","onEnterKey","onSpaceKey","onEscapeKey","emitShowMoreEvent","listeners","__default__$2","defineComponent","slots","useSlots","__emit","props","__props","toRefs","dropdownOptionsListboxRef","isDropdownOpen","noResultsMessage","conditionalClasses","conditionalListboxClasses","popperContainerOrPopoverComponent","BentoPopover","PopperContainer","popperContainerOrPopoverProps","containerMinAndMaxWidth","_a","generateUid","__expose","uuid$1","openBlock","createElementBlock","mergeProps","_ctx","createCommentVNode","uuid","__default__$1","baseTextbox","DropdownBaseTextboxState","onInput","newInput","onKeyDown","e","openDropdown","stopEventPropagation","closeDropdown","clearValue","DropdownBaseTextboxEvent","categoryMultiSelect","selectedValues","items","acc","option","selectedCategoryOptions","categoryOption","selectedOption","label","displayValue","useDisplayValue","placeholder","isMultiSelect","isCategoryMultilevel","focusOnTextbox","elementToFocusOn","useTextboxKeyboardNavigation","inputContainerRef","optionsContainerRef","selectedValueIndex","isDynamicFltering","isMultiple","toggleDropdown","focusOnOption","index","nextTick","focusOnChip","chips","_b","setListboxFocusedIndex","selectedIndex","skipToFirstOption","skipToLastOption","onArrowDown","event","onArrowUp","onHomeKey","onEndKey","onTab","BentoKeyboardNavigationKeyDownEvent","useListboxKeyboardNavigation","closeDropdownAndFocusOnTextbox","useSearchBarFilter","searchTerm","data","searchEvent","ignoreGroups","searchTermRef","dataRef","findHits","searchTermLowerCased","options","INPUT_FIELD_COMPONENT_INJECTION_KEY","INPUT_FIELD_HINT_INJECTION_KEY","INPUT_FIELD_PARENT_COMPONENT_INJECTION_KEY","__default__","messages","DropdownInputDefault","DropdownInputSmall","attrs","useAttrs","hasSlot","useHasSlot","emitValue","useFormFieldEmits","inputContainerRefWrapper","dropdownOptionsContainerId","labelId","descriptionId","errorId","isReadOnly","useFormLayoutFieldLoading","toRef","dropdownValue","cachedSelectedListboxOptions","cachedListboxSelectedValues","setCachedValues","useCachedSelectedValues","ariaLabelAttribute","ariaDescribedByAttribute","ariaLabel","computedAriaLabelFallbackMessage","computedAriaLabel","useAriaLabel","isInputComponent","BentoDropdownSize","inject","computedSize","descriptionConditionalClasses","staticCategories","filteredItems","isSearching","selectedValueItem","value","category","categoryItem","item","isMultiLevelSelect","flattenedItemsList","useMultiLevelItems","isTreePattern","computedOptionRole","additionalItemsSelected","selectedItemsCount","total","ariaDescribedBy","listboxRef","visibleDomOptions","updateVisibleDomOptions","useVisibleDomOptions","clickOutsideDropdown","focus","textboxKeyboardNavigationListeners","listboxKeyboardNavigationListeners","listboxListeners","deprecate"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkBOA,KAAA,CAAAC,GAAAC,GAAAC,GAAAC,MAAA;AAMH,QAAAC,IAAAC,EAAAL,EAAA,KAAA,GACA,EAAA,GAAAM,EAAA,IAAAC,GAAA,EAAA,UAAAC,GAAA,CAAA;AAEA,EAAAC,GAAAT,GAAA,MAAA;AACI,IAAAI,EAAA,QAAAJ,EAAA;AAAA,EAA4C,CAAA;AAIhD,QAAAU,IAAAC;AAAA,IAA8B,MAAA,KAAA,UAAAP,EAAA,KAAA,MAAA,KAAA,UAAAJ,EAAA,KAAA;AAAA,EAC8D,GAG5FY,IAAA,MAAA;AACI,IAAAT,EAAAU,EAAA,QAAAT,EAAA,KAAA,GACAD,EAAAU,EAAA,cAAA;AAAA,EAAsC,GAG1CC,IAAA,MAAA;AACI,IAAAV,EAAA,QAAAJ,EAAA,OACAG,EAAAU,EAAA,cAAA;AAAA,EAAsC,GAG1CE,IAAA,MAAA;AACI,IAAAb,EAAA,SAAAD,EAAA,UACIG,EAAA,QAAAJ,EAAA;AAAA,EACJ,GAGJgB,IAAAL,EAAA,MAAA;AAAA,IAA+B;AAAA,MAC3B,OAAAL,EAAA,OAAA;AAAA,MACoB,OAAAM;AAAA,MACT,U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AA,IAEA;AAIR,UAAAJ,KAAA,MAAA;AACI,MAAA9F,EAAA,MAAA,MAAA;AAAA,IAA8B;AAGlC,WAAAzE;AAAA,MAAA,MAAAyB,EAAA;AAAA,MACyB,CAAAhC,MAAA;AAEjB,QAAAA,KACIC,EAAA,MAAA;AAAA,MACJ;AAAA,IACJ,GAGJ0C,EAAA;AAAA,MAAa,OAAAmI;AAAA,IACT,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"dropdown.Dct8gr_q.js","sources":["../../../vue2/src/components/dropdown/components/dropdown-options-container/composables/use-dropdown-options-listbox.ts","../../../vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue","../../../ui-assets/icons-16/dist/vue/chevron-down-small.vue","../../../ui-assets/icons-16/dist/vue/chevron-up-small.vue","../../../vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue","../../../vue2/src/components/dropdown/composables/use-display-value.ts","../../../vue2/src/components/dropdown/composables/use-keyboard-navigation.ts","../../../vue2/src/components/search-bar/useSearchBarDataFilter.ts","../../../vue2/src/components/input-field/input-field.keys.ts","../../../vue2/src/components/dropdown/dropdown.vue"],"sourcesContent":["import { computed, ref, type Ref, watch } from 'vue';\nimport { BentoListboxEvent, type BentoListboxOptions } from '@/types/listbox';\nimport { BentoDropdownEvent } from '../../../dropdown.types';\nimport { useI18n } from '@/utils/ts/i18n';\nimport messages from '../messages.json';\n\ntype MessageSchema = (typeof messages)['en-US'];\n\n/**\n * A composable that handles all dropdown options option selecting logic & listeners.\n * If single select dropdown then emits straight up to dropdown.\n * If multi select dropdown then stores selections in internal state and only emits when Apply button is pressed.\n *\n * @param selectedValue The selectedValue property passed into the dropdown options container component.\n * @param multiple The multiple property passed into the dropdown options container component.\n * @param isOpen The isOpen property passed into the dropdown options container component.\n * @param emit The emit function for the dropdown options container component.\n */\nexport const useDropdownOptionsListbox = (\n selectedValue: Ref<BentoListboxOptions>,\n multiple: Ref<boolean>,\n isOpen: Ref<boolean>,\n emit: (event: BentoListboxEvent | BentoDropdownEvent, selectedValue?: BentoListboxOptions) => void\n) => {\n const internalSelectedValue = ref(selectedValue.value);\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n watch(selectedValue, () => {\n internalSelectedValue.value = selectedValue.value;\n });\n\n // Multi-select dropdown cancel and apply button logic\n const isApplyButtonDisabled = computed(\n () => JSON.stringify(internalSelectedValue.value) === JSON.stringify(selectedValue.value)\n );\n\n const onApplyClick = () => {\n emit(BentoListboxEvent.SELECT, internalSelectedValue.value);\n emit(BentoDropdownEvent.CLOSE_DROPDOWN);\n };\n\n const onCancelClick = () => {\n internalSelectedValue.value = selectedValue.value;\n emit(BentoDropdownEvent.CLOSE_DROPDOWN);\n };\n\n const onOutsideDropdownClick = () => {\n if (isOpen.value && multiple.value) {\n internalSelectedValue.value = selectedValue.value;\n }\n };\n\n const actions = computed(() => [\n {\n title: t('apply') as string,\n event: onApplyClick,\n disabled: isApplyButtonDisabled.value,\n },\n {\n title: t('cancel') as string,\n event: onCancelClick,\n },\n ]);\n\n // Click and keyboard navigation event listners\n const onOptionSelected = (newSelectedValue: BentoListboxOptions) => {\n internalSelectedValue.value = newSelectedValue;\n if (!multiple.value) {\n emit(BentoDropdownEvent.SELECT, newSelectedValue);\n }\n };\n\n const onTabKey = (newSelectedValue: BentoListboxOptions) => {\n onOptionSelected(newSelectedValue);\n emit(BentoDropdownEvent.TAB);\n };\n\n const onEnterKey = (newSelectedValue: BentoListboxOptions) => {\n onOptionSelected(newSelectedValue);\n emit(BentoDropdownEvent.ENTER);\n };\n\n const onSpaceKey = (newSelectedValue: BentoListboxOptions) => {\n onOptionSelected(newSelectedValue);\n emit(BentoDropdownEvent.SPACE);\n };\n\n const onEscapeKey = () => {\n onCancelClick();\n emit(BentoListboxEvent.ESCAPE);\n };\n\n const emitShowMoreEvent = () => {\n emit(BentoDropdownEvent.SHOW_MORE);\n };\n\n const listeners = {\n [BentoListboxEvent.SELECT]: onOptionSelected,\n [BentoListboxEvent.SHOW_MORE]: emitShowMoreEvent,\n [BentoListboxEvent.TAB]: onTabKey,\n [BentoListboxEvent.SPACE]: onSpaceKey,\n [BentoListboxEvent.ENTER]: onEnterKey,\n };\n\n return {\n // Values\n actions,\n internalSelectedValue,\n\n // Methods\n listeners,\n onEscapeKey,\n onOutsideDropdownClick,\n };\n};\n","<template>\n <component\n :is=\"popperContainerOrPopoverComponent\"\n class=\"b-dropdown-options-container\"\n :class=\"conditionalClasses\"\n v-bind=\"popperContainerOrPopoverProps\"\n >\n <div @keydown.esc=\"onEscapeKey\">\n <bento-listbox\n :id=\"id\"\n ref=\"dropdownOptionsListboxRef\"\n :aria-label=\"ariaLabel\"\n class=\"b-dropdown-options-container__listbox\"\n :class=\"conditionalListboxClasses\"\n :component-loading=\"componentLoading\"\n :empty-state=\"emptyState\"\n :is-option-disabled=\"isOptionDisabled\"\n :items=\"items\"\n :selected-value=\"internalSelectedValue\"\n :multiple=\"multiple\"\n :static-categories=\"staticCategories\"\n :no-results-message=\"noResultsMessage\"\n :searching=\"searching\"\n :loading=\"loading\"\n :lazy-load-type=\"lazyLoadType\"\n :has-more-items=\"hasMoreItems\"\n :virtual-scroll=\"virtualScroll\"\n v-on=\"listeners\"\n >\n <template v-for=\"(_, innerSlot) of slots\" #[innerSlot]=\"scope\">\n <slot :name=\"innerSlot\" v-bind=\"scope\" />\n </template>\n </bento-listbox>\n </div>\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, type PropType, ref, toRefs, useSlots } from 'vue';\n import { BentoListbox } from '@/internal';\n import {\n type BentoListboxEvent,\n type BentoListboxIsOptionDisabled,\n type BentoListboxOptions,\n } from '@/types/listbox';\n import { PopperContainer } from '@/components/popper-container';\n import {\n type BentoDropdownEmptyStateProps,\n type BentoDropdownEvent,\n BentoDropdownLazyLoadType,\n type BentoDropdownVirtulisationOptions,\n } from '../../dropdown.types';\n import { useI18n } from '@/utils/ts/i18n';\n import { BentoPopover } from '@/components/popover';\n import { useDropdownOptionsListbox } from './composables/use-dropdown-options-listbox';\n import { generateUid } from '@/core/utils/ts';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const slots = useSlots();\n\n const emit = defineEmits<{\n /**\n * Emitted when the dropdown is closing.\n */\n (e: BentoDropdownEvent.CLOSE_DROPDOWN);\n\n /**\n * Emitted when the `ENTER` key is pressed\n */\n (e: BentoListboxEvent.ENTER, newSelectedValue: BentoListboxOptions);\n\n /**\n * Emitted when the `ESCAPE` key is pressed\n */\n (e: BentoListboxEvent.ESCAPE);\n\n /**\n * Emitted when an item is selected\n */\n (e: BentoListboxEvent.SELECT, newSelectedValue: BentoListboxOptions);\n\n /**\n * Emitted when:\n * - `lazyLoad` is `automatic` and the scroll meets the end of the list\n * - `lazyload` is `button` and the button is clicked\n */\n (e: BentoDropdownEvent.SHOW_MORE);\n\n /**\n * Emitted when the `SPACE` key is pressed\n */\n (e: BentoListboxEvent.SPACE, newSelectedValue: BentoListboxOptions);\n\n /**\n * Emitted when the `TAB` key is pressed\n */\n (e: BentoListboxEvent.TAB, newSelectedValue: BentoListboxOptions);\n }>();\n\n const props = defineProps({\n /**\n * Defines a string value that labels an interactive element.\n */\n ariaLabel: { type: String, default: null },\n\n /**\n * Indicates that dropdown items are loading\n */\n componentLoading: { type: Boolean, default: false },\n\n /**\n * Empty state props used with the inner empty state component which is displayed when no search results are found.\n */\n emptyState: {\n type: Object as PropType<BentoDropdownEmptyStateProps>,\n default: undefined,\n },\n\n /**\n * Disables dropdown functionality\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Indicates whether there are more items to load\n */\n hasMoreItems: { type: Boolean, default: false },\n\n /**\n * Identifies the listbox whose contents are controlled by the the combobox on which the aria-controls attribute is set.\n */\n id: { type: String, required: true },\n\n /**\n * Function that allows the options to be disabled\n *\n * @type {BentoDropdownIsOptionDisabled}\n * @param {BentoDropdownOptionItem} option - Dropdown option object\n * @param {string} option.label - Option's label text\n * @param {string|number} option.value - Option's value\n * @param {unknown} option.data - Option's extra data to be passed to the default slot\n */\n isOptionDisabled: {\n type: Function as PropType<BentoListboxIsOptionDisabled>,\n default: undefined,\n },\n\n /**\n * The option elements to populate the dropdown with.\n * It must be an array of {@see BentoDropdownOptionItem }\n * * @property {string} value.label - Text to be displayed in the option\n * * @property {string,number} value.value - Value of the option\n */\n items: {\n type: Array as PropType<BentoListboxOptions>,\n required: true,\n },\n\n /**\n * The type of `Lazy Load`.\n * Type \"automatic\" will enable infinite scrolling\n * Type \"button\" will enable lazy loading with \"Show more\" button\n */\n lazyLoadType: {\n type: String as PropType<BentoDropdownLazyLoadType | `${BentoDropdownLazyLoadType}`>,\n default: BentoDropdownLazyLoadType.AUTOMATIC,\n validator: (value: BentoDropdownLazyLoadType) => Object.values(BentoDropdownLazyLoadType).includes(value),\n },\n\n /**\n * Indicates if new options are lazy loading.\n */\n loading: { type: Boolean, default: false },\n\n /**\n * If enabled, the user will be able to select multiple items.\n */\n multiple: { type: Boolean, default: false },\n\n /**\n * Indicates if the dropdown is open so that\n * the container can be displayed.\n */\n open: { type: Boolean, required: true },\n\n /**\n * The `input` value.\n * Providing an empty string or empty array will select no options.\n * Set to an empty string `''` if you don't want any of the available options to be selected for single select\n */\n selectedValue: {\n type: Array as PropType<BentoListboxOptions>,\n default: null,\n },\n\n /**\n * Flag that indicates that an external search it's being made\n * to filter out the items inside the the multi-select listbox\n *\n * If enabled, hides the \"Select all\" checkbox in \"multiple\" mode.\n */\n searching: BentoListbox.props.searching,\n\n /**\n * If enabled, dropdown will display non-selectable, static categories\n */\n staticCategories: { type: Boolean, default: false },\n\n /**\n * Reference to the DOM element or Vue component for positioning\n * the Dropdown container.\n */\n targetElement: { type: PopperContainer.props.targetElement.type, required: true },\n\n /**\n * Enables virtual scrolling if set to true or by providing an object with itemHeight function.\n * The itemHeight function is used to calculate the height of rendered item given it's index.\n */\n virtualScroll: {\n type: [Boolean, Object] as PropType<BentoDropdownVirtulisationOptions>,\n default: false,\n },\n });\n\n const { selectedValue, multiple } = toRefs(props);\n const dropdownOptionsListboxRef = ref(null);\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const isDropdownOpen = computed(() => props.open && !props.disabled);\n const noResultsMessage = computed(() => t('noOptionsMatchThisSearch') as string);\n\n const conditionalClasses = computed(() => ({\n 'b-dropdown-options-container--single': !props?.multiple,\n }));\n\n const conditionalListboxClasses = computed(() => ({\n 'b-dropdown-options-container__listbox--single': !props?.multiple,\n }));\n\n const { actions, internalSelectedValue, listeners, onEscapeKey, onOutsideDropdownClick } =\n useDropdownOptionsListbox(selectedValue, multiple, isDropdownOpen, emit);\n\n // Use different components depending on if the dropdown is a single or multi-select\n const popperContainerOrPopoverComponent = computed(() => (props?.multiple ? BentoPopover : PopperContainer));\n\n const popperContainerOrPopoverProps = computed(() => {\n const containerMinAndMaxWidth = {\n 'min-width': `${(props?.targetElement as HTMLElement)?.clientWidth}px`,\n 'max-width': 'min(500px, 95%)',\n };\n\n return props?.multiple\n ? ({\n actionsLayout: 'space-between',\n ariaLabel: props.ariaLabel,\n actions: actions.value,\n divider: true,\n fallbackPosition: ['top-start'],\n id: generateUid(`dropdown-options-${props.id}`),\n open: props.open,\n position: 'bottom-start',\n style: {\n width: 'auto',\n ...containerMinAndMaxWidth,\n },\n targetElement: props.targetElement,\n } as InstanceType<typeof BentoPopover>['$props'])\n : ({\n fallbackPosition: ['top-start'],\n offset: [0, 8],\n position: 'bottom-start',\n style: {\n display: isDropdownOpen.value ? 'block' : 'none',\n ...containerMinAndMaxWidth,\n },\n targetElement: props.targetElement,\n } as InstanceType<typeof PopperContainer>['$props']);\n });\n\n defineExpose({\n onOutsideDropdownClick,\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Dropdown options container.\n * It lists all the available options.\n *\n * @example\n * <bento-dropdown-options-container\n * v-if=\"inputContainerRef\" <!-- Ref to the input to match the width -->\n * :id=\"dropdownOptionsContainerId\"\n * :target-element=\"inputContainerRef\"\n * :aria-label=\"ariaLabel\"\n * :open=\"isDropdownOpen\"\n * :disabled=\"disabled\"\n * :multiple=\"multiple\"\n * :selected=\"value\"\n * :isOptionDisabled=\"option => option.value === 2\"\n * :items=\"[{\n * { label: 'Option 1', value: 1 },\n * { label: 'Option 2', value: 2 },\n * }]\"\n * @select=\"onOptionSelected\"\n * />\n */\n export default defineComponent({\n i18n: { messages },\n name: 'bento-dropdown-options-container',\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./dropdown-options-container.scss\" />\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#001222\" d=\"M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z\"/></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#001222\" d=\"M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z\"/></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n","<template>\n <div class=\"b-dropdown-small-textbox\" :class=\"conditionalClasses\">\n <dropdown-base-textbox\n ref=\"baseTextbox\"\n v-bind=\"{ ...$attrs, ...$props }\"\n class=\"b-dropdown-small-textbox__textbox\"\n :size=\"BentoDropdownSize.SMALL\"\n v-on=\"listeners\"\n >\n <template #icon>\n <div class=\"b-dropdown-small-textbox__chevron\">\n <chevron-up-small-icon v-show=\"isDropdownOpen\" svg-title=\"opened\" />\n <chevron-down-small-icon v-show=\"!isDropdownOpen\" svg-title=\"closed\" />\n </div>\n </template>\n </dropdown-base-textbox>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, type PropType, ref } from 'vue';\n import {\n DropdownBaseTextboxEvent,\n DropdownBaseTextboxState,\n } from '@/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.types';\n import { BentoDropdownSize } from '@/components/dropdown/dropdown.types';\n import { type Booleanish } from '@/types/prop-types';\n import DropdownBaseTextbox from '@/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue';\n import ChevronDownSmallIcon from '@adyen/ui-assets-icons-16/vue/chevron-down-small';\n import ChevronUpSmallIcon from '@adyen/ui-assets-icons-16/vue/chevron-up-small';\n import { stopEventPropagation } from '@/utils/ts/events';\n\n const emit = defineEmits<{\n /**\n * Emitted on clearing the input.\n */\n (e: 'clear');\n\n /**\n * Emitted on click, space and enter user events. It will open the dropdown.\n */\n (e: 'close');\n\n /**\n * Emitted on input event.\n */\n (e: 'input', newInput: string);\n\n /**\n * Emitted on keydown event.\n */\n (e: 'keydown', keydownEvent: KeyboardEvent);\n\n /**\n * Emitted on click, space, enter and esc user events. It will close the dropdown.\n */\n (e: 'open');\n }>();\n\n const props = defineProps({\n /**\n * The number of additional items that have been selected in the dropdown.\n */\n additionalItemsSelected: { type: [Number, String] as PropType<number | string>, default: 0 },\n\n /**\n * Sets the aria-controls attribute on the textbox. This should correspond to the popover's id that the textbox triggers.\n */\n ariaControls: { type: String, required: true },\n\n /**\n * Indicates whether the content the textbox triggers is visible or not. Needs to be set accordingly when the textbox is used and changed every time the popover is shown/hidden.\n */\n ariaExpanded: {\n type: [String, Boolean] as PropType<Booleanish>,\n required: true,\n },\n\n /**\n * If no label element is used then the aria-label is be set should be set.\n */\n ariaLabel: { type: String, default: null },\n\n /**\n * Corresponds to the label's id that labels the textbox element.\n */\n ariaLabelledby: { type: String, default: null },\n\n /**\n * Custom debounce time. Default: 300\n */\n debounceTime: { type: Number, default: 300 },\n\n /**\n * Disables any textbox functionality\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Selected option's label\n */\n displayValue: { type: String, default: null },\n\n /**\n * Sets the possibility to type into the textbox\n */\n dynamicFiltering: { type: Boolean, default: false },\n\n /**\n * Marks the textbox as invalid, rendering an error state\n */\n isInvalid: { type: Boolean, default: false },\n\n /**\n * Indicates if the dropdown is open so that\n * the respective event can be emitted\n */\n open: { type: Boolean, default: false },\n\n /**\n * Sets the dropdown to readonly state\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * The input value\n */\n value: { type: String, default: '' },\n });\n\n const baseTextbox = ref(null);\n\n const conditionalClasses = computed(() => ({\n [`b-dropdown-small-textbox--${DropdownBaseTextboxState.DISABLED}`]: props.disabled,\n [`b-dropdown-small-textbox--${DropdownBaseTextboxState.READONLY}`]: props.readonly,\n [`b-dropdown-small-textbox--${DropdownBaseTextboxState.OPENED}`]: props.open,\n }));\n\n const isDropdownOpen = computed(() => props.open && !props.disabled && !props.readonly);\n\n const onInput = (newInput: string) => {\n emit('input', newInput);\n };\n const onKeyDown = (e: KeyboardEvent) => {\n emit('keydown', e);\n };\n const openDropdown = (e: Event) => {\n stopEventPropagation(e);\n emit('open');\n };\n const closeDropdown = (e: Event) => {\n stopEventPropagation(e);\n emit('close');\n };\n const clearValue = (e: Event) => {\n stopEventPropagation(e);\n emit('clear');\n };\n\n const listeners = {\n [DropdownBaseTextboxEvent.INPUT]: onInput,\n [DropdownBaseTextboxEvent.OPEN]: openDropdown,\n [DropdownBaseTextboxEvent.CLOSE]: closeDropdown,\n [DropdownBaseTextboxEvent.CLEAR]: clearValue,\n [DropdownBaseTextboxEvent.KEYDOWN]: onKeyDown,\n };\n\n const focus = () => {\n baseTextbox.value.focus();\n };\n\n defineExpose({\n focus,\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * For internal use only, textbox component in its small variant used in the dropdown component.\n */\n export default defineComponent({\n name: 'dropdown-small-textbox',\n inheritAttrs: false,\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./dropdown-small-textbox.scss\" />\n","import { computed, type Ref } from 'vue';\nimport { type UseDisplayValueOptions } from './use-display-value.types';\nimport { type BentoListboxOptions } from '@/types/listbox';\n\n/**\n * Generates the `displayValue` for the Category Multi Select based on\n * the selection, the placeholder or it can be empty if there's nothing to show.\n *\n * @param options Multi select options\n * @returns The text to be displayed by the dropdown\n */\nconst categoryMultiSelect = (selectedValues: Ref<BentoListboxOptions>, items: Ref<BentoListboxOptions>) =>\n items.value\n .reduce((acc, option) => {\n // Category items\n if (option.items) {\n const selectedCategoryOptions = option.items.filter(categoryOption =>\n selectedValues.value.find(selectedOption => selectedOption.value === categoryOption.value)\n );\n\n // If the category is fully selected add the category name\n const isCategoryFullySelected = selectedCategoryOptions.length === option.items.length;\n if (isCategoryFullySelected) {\n acc.push(option.displayValue ?? option.label);\n } else {\n // If category is partially selected add each selected option and category\n selectedCategoryOptions.forEach(({ label, displayValue }) => acc.push(displayValue ?? label));\n }\n }\n\n // Non-category option\n if (selectedValues.value.find(selectedOption => selectedOption.value === option.value)) {\n acc.push(option.displayValue ?? option.label);\n }\n\n return acc;\n }, [])\n .join(', ');\n\n/**\n * Generates the `displayValue` for the Dropdown based on\n * the selection, the placeholder or it can be empty if there's nothing to show.\n *\n * When there is a selected value but the value is not present in the list, the\n * value is then returned as there is no way to know what the text/label is.\n *\n * @param options Options needed to calculate the display value based on the type of Dropdown (single, multi, category)\n * @returns The text to be displayed by the dropdown\n */\nexport const useDisplayValue = ({ items, placeholder, selectedValues, isMultiSelect }: UseDisplayValueOptions) => {\n const isCategoryMultilevel = computed(\n () => isMultiSelect.value && items.value.find(option => option.items?.length)\n );\n\n const computedDisplayValue = computed(() => {\n // If no value selected, return placeholder or nothing\n if (!selectedValues.value.length) {\n return placeholder.value || null;\n }\n\n // Category multi select\n if (isCategoryMultilevel.value) {\n return categoryMultiSelect(selectedValues, items);\n }\n\n return selectedValues.value.map(({ label, displayValue }) => displayValue ?? label).join(', ');\n });\n\n return computedDisplayValue;\n};\n","import { BentoKeyboardNavigationKeyDownEvent } from '@/types/keyboard-navigation';\nimport { BentoListboxEvent } from '@/types/listbox';\nimport { computed, nextTick, type Ref } from 'vue';\nimport {\n type UseListboxKeyboardNavigationOptions,\n type UseTextboxKeyboardNavigationOptions,\n} from './use-keyboard-navigation.types';\n\n/**\n * Returns the focus to the textbox of the dropdown if it exists\n * when the dropdown is being closed.\n * @param elementToFocusOn Reference to the input container\n */\nconst focusOnTextbox = (elementToFocusOn: Ref) => {\n elementToFocusOn.value.$children?.[0].$refs.textbox.focus();\n};\n\n/**\n * Controls the keyboard navigation inside the Dropdown's textbox for Single and Multi select.\n * Adds support for the keys:\n *\n * - Arrow Down\n * - Arrow Up\n * - Home key\n * - End key\n * - Space key\n * - Enter key\n * - Tab\n * - Escape key\n *\n * @param options Options from the Dropdown to handle the navigation\n * @param toggleDropdown Function to open/close the Dropdown\n * @param openDropdown Function to open the Dropdown\n * @param closeDropdown Function to close the Dropdown\n * @returns List of event listeners available to the Dropdown's textbox\n */\nexport const useTextboxKeyboardNavigation = (\n {\n inputContainerRef,\n optionsContainerRef,\n selectedValueIndex,\n isDropdownOpen,\n isDynamicFltering,\n items,\n isMultiple,\n }: UseTextboxKeyboardNavigationOptions,\n toggleDropdown: () => void,\n openDropdown: () => void,\n closeDropdown: () => void\n) => {\n const focusOnOption = async (index: number) => {\n if (isDynamicFltering.value) {\n await nextTick();\n }\n items.value[index]?.focus();\n };\n\n const focusOnChip = async (index: number) => {\n if (isDynamicFltering.value) {\n await nextTick();\n }\n\n const chips =\n optionsContainerRef.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef?.$el.querySelectorAll(\n 'button'\n );\n\n if (chips.length) {\n chips[index]?.focus();\n } else {\n focusOnOption(index);\n }\n };\n\n const setListboxFocusedIndex = (selectedIndex: number) => {\n return optionsContainerRef.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef?.setListboxFocusedIndex(\n selectedIndex\n );\n };\n\n const skipToFirstOption = () => {\n if (!isDropdownOpen.value) {\n openDropdown();\n }\n\n nextTick(() => {\n setListboxFocusedIndex(0);\n focusOnOption(0);\n });\n };\n\n const skipToLastOption = () => {\n if (!isDropdownOpen.value) {\n openDropdown();\n }\n\n nextTick(() => {\n setListboxFocusedIndex(items.value.length - 1);\n focusOnOption(items.value.length - 1);\n });\n };\n\n const onArrowDown = ({ detail: event }) => {\n event.preventDefault();\n\n skipToFirstOption();\n };\n\n const onArrowUp = ({ detail: event }) => {\n event.preventDefault();\n\n skipToLastOption();\n };\n\n const onHomeKey = () => {\n skipToFirstOption();\n };\n\n const onEndKey = () => {\n skipToLastOption();\n };\n\n const onSpaceKey = ({ detail: event }) => {\n event.preventDefault();\n toggleDropdown();\n if (isDropdownOpen.value) {\n nextTick(() => {\n if (isMultiple) {\n focusOnChip(0);\n } else {\n setListboxFocusedIndex(selectedValueIndex.value);\n focusOnOption(selectedValueIndex.value);\n }\n });\n }\n };\n\n const onEnterKey = ({ detail: event }) => {\n event.preventDefault();\n toggleDropdown();\n if (isDropdownOpen.value) {\n nextTick(() => {\n if (isMultiple) {\n focusOnChip(0);\n } else {\n setListboxFocusedIndex(selectedValueIndex.value);\n focusOnOption(selectedValueIndex.value);\n }\n });\n }\n };\n\n const onTab = () => {\n // tab should not navigate through a combobox\n if (isDropdownOpen.value) {\n closeDropdown();\n }\n };\n\n const onEscapeKey = () => {\n if (isDropdownOpen.value) {\n closeDropdown();\n focusOnTextbox(inputContainerRef);\n }\n };\n\n const textboxKeyboardNavigationListeners = computed(() => ({\n [BentoKeyboardNavigationKeyDownEvent.ARROW_DOWN]: onArrowDown,\n [BentoKeyboardNavigationKeyDownEvent.ARROW_UP]: onArrowUp,\n [BentoKeyboardNavigationKeyDownEvent.HOME]: onHomeKey,\n [BentoKeyboardNavigationKeyDownEvent.END]: onEndKey,\n ...(!isDynamicFltering.value ? { [BentoKeyboardNavigationKeyDownEvent.SPACE]: onSpaceKey } : {}),\n [BentoKeyboardNavigationKeyDownEvent.ENTER]: onEnterKey,\n [BentoKeyboardNavigationKeyDownEvent.TAB]: onTab,\n [BentoKeyboardNavigationKeyDownEvent.ESCAPE]: onEscapeKey,\n }));\n\n return textboxKeyboardNavigationListeners;\n};\n\n/**\n * Controls the keyboard navigation inside the Dropdown's listbox container for Single and Multi select.\n * Adds support for the keys:\n *\n * - Escape key\n * - Enter Key\n * - Tab\n * - Space key\n *\n * @param options Options from the Dropdown to handle the navigation inside the listbox\n * @param closeDropdown Function to close the Dropdown\n * @returns List of event listeners available to the Dropdown's listbox container\n */\nexport const useListboxKeyboardNavigation = (\n { inputContainerRef, isDropdownOpen }: UseListboxKeyboardNavigationOptions,\n closeDropdown: () => void\n) => {\n const closeDropdownAndFocusOnTextbox = () => {\n if (isDropdownOpen.value) {\n closeDropdown();\n }\n nextTick(() => {\n focusOnTextbox(inputContainerRef);\n });\n };\n\n const listboxKeyboardNavigationListeners = {\n [BentoListboxEvent.ENTER]: closeDropdownAndFocusOnTextbox,\n [BentoListboxEvent.ESCAPE]: closeDropdownAndFocusOnTextbox,\n [BentoListboxEvent.TAB]: closeDropdownAndFocusOnTextbox,\n [BentoListboxEvent.SPACE]: closeDropdownAndFocusOnTextbox,\n };\n\n return listboxKeyboardNavigationListeners;\n};\n","import { computed, ref, type Ref, watch } from 'vue';\nimport { type BentoSearchBarItem } from './search-bar.types';\n\n/**\n * Filters an array {@see BentoSearchBarData} containing elements of type {@see BentoSearchBarItem}\n * by the {@param searchTerm}.\n *\n * @param {Ref<String>} searchTerm - Text that satisfies the search criteria.\n * @param {Ref<BentoSearchBarData>} data - Array to be filtered by {@param searchTerm}\n * @returns {Ref<BentoSearchBarData>} New instance of the array filtered by the {@param searchTerm} text\n * @param {Ref<Boolean>} ignoreGroups - Boolean that determines if search returns items with subitems\n */\nexport function useSearchBarFilter<T extends BentoSearchBarItem>(\n searchTerm: Ref<string>,\n data: Ref<Array<T>>,\n searchEvent?: (searchValue: string) => void,\n ignoreGroups?: Ref<boolean>\n) {\n const searchTermRef = ref(searchTerm);\n const dataRef = ref(data);\n\n const findHits = (searchTermLowerCased: string, options: Array<BentoSearchBarItem> = []) =>\n options.flatMap(option => {\n if (option.label.toLocaleLowerCase().includes(searchTermLowerCased)) {\n if (ignoreGroups?.value && option.items) {\n return [...findHits(searchTermLowerCased, option.items)];\n }\n return [option, ...findHits(searchTermLowerCased, option.items)];\n }\n\n if (option.items) {\n return [...findHits(searchTermLowerCased, option.items)];\n }\n\n return [];\n });\n\n // If search event exists trigger it on the search term changing\n watch(searchTermRef, () => {\n if (searchEvent !== undefined) {\n searchEvent(searchTermRef.value);\n }\n });\n\n const filterInputData = computed(() => {\n if (!searchTermRef.value) {\n return dataRef.value;\n }\n // If search event exists, emit the new search value into the event and do not manipulate data.\n if (searchEvent !== undefined) {\n return dataRef.value;\n }\n\n const searchTermLowerCased = searchTermRef.value.toLocaleLowerCase();\n const filtered = findHits(searchTermLowerCased, dataRef.value);\n return filtered;\n });\n\n return filterInputData;\n}\n","export const INPUT_FIELD_COMPONENT_INJECTION_KEY = Symbol('input field component injection key');\nexport const INPUT_FIELD_HINT_INJECTION_KEY = Symbol('input field hint injection key');\nexport const INPUT_FIELD_PARENT_COMPONENT_INJECTION_KEY = Symbol('input field parent component injection key');\n","<!-- TODO: Remove aria props as these are part of JSX elements /vue/types/jsx.d.ts -->\n<!-- eslint-disable vue/attribute-hyphenation -->\n<template>\n <div v-bento-click-outside-directive=\"clickOutsideDropdown\" class=\"b-dropdown\" :class=\"conditionalClasses\">\n <field-label\n v-if=\"label\"\n :id=\"labelId\"\n :condensed=\"condensed\"\n :label=\"label\"\n :tooltip-text=\"tooltipText\"\n :optional=\"optional\"\n :required=\"required\"\n />\n <div\n ref=\"inputContainerRefWrapper\"\n v-bento-keyboard-navigation-directive\n v-on=\"textboxKeyboardNavigationListeners\"\n >\n <component\n :is=\"computedSize\"\n ref=\"inputContainerRef\"\n :condensed=\"condensed\"\n :value=\"searchTerm\"\n :additional-items-selected=\"additionalItemsSelected\"\n :aria-controls=\"dropdownOptionsContainerId\"\n :ariaExpanded=\"isDropdownOpen\"\n :aria-labelledby=\"label ? labelId : null\"\n :aria-describedby=\"ariaDescribedBy\"\n :aria-label=\"computedAriaLabel\"\n :aria-readonly=\"isReadOnly\"\n :readonly=\"isReadOnly\"\n :required=\"required\"\n :disabled=\"disabled\"\n :display-value=\"displayValue\"\n :dynamic-filtering=\"dynamicFiltering\"\n :is-invalid=\"!!errorMessage || error\"\n :multiple=\"multiple\"\n :open=\"isDropdownOpen\"\n :selected-value-item=\"!isInputComponent ? selectedValueItem : undefined\"\n :show-slot-content-in-multiple=\"showSlotContentInMultiple\"\n @input=\"searchTerm = $event\"\n @open=\"toggleDropdown\"\n @close=\"toggleDropdown\"\n >\n <template v-for=\"(_, innerSlot) of slots\" #[innerSlot]=\"scope\">\n <slot :name=\"innerSlot\" v-bind=\"scope\" />\n </template>\n </component>\n </div>\n <bento-dropdown-options-container\n v-if=\"inputContainerRef\"\n :id=\"dropdownOptionsContainerId\"\n ref=\"optionsContainerRef\"\n :aria-label=\"computedAriaLabel\"\n :component-loading=\"componentLoading\"\n :empty-state=\"emptyState\"\n :debounce-time=\"search?.debounceTime\"\n :disabled=\"disabled\"\n :is-option-disabled=\"isOptionDisabled\"\n :items=\"filteredItems\"\n :multiple=\"multiple\"\n :static-categories=\"staticCategories\"\n :open=\"isDropdownOpen\"\n :selected-value=\"cachedSelectedListboxOptions\"\n :searching=\"isSearching\"\n :target-element=\"inputContainerRefWrapper\"\n :loading=\"loading\"\n :has-more-items=\"hasMoreItems\"\n :lazy-load-type=\"lazyLoadType\"\n :virtual-scroll=\"virtualScroll\"\n v-on=\"listboxListeners\"\n >\n <template v-for=\"(_, innerSlot) of slots\" #[innerSlot]=\"scope\">\n <slot :name=\"innerSlot\" v-bind=\"scope\" />\n </template>\n </bento-dropdown-options-container>\n <error-message\n v-if=\"!!errorMessage\"\n :id=\"errorId\"\n :error-message=\"errorMessage\"\n class=\"b-dropdown__error-message\"\n />\n <bento-typography\n v-if=\"description || hasSlot('description')\"\n :id=\"descriptionId\"\n class=\"b-dropdown__description\"\n :class=\"descriptionConditionalClasses\"\n el=\"span\"\n >\n <slot name=\"description\">\n {{ description }}\n </slot>\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import {\n computed,\n defineComponent,\n inject,\n nextTick,\n type Ref,\n ref,\n toRef,\n toRefs,\n useAttrs,\n useSlots,\n watch,\n } from 'vue';\n // Components\n import { BentoDropdownOptionsContainer } from './components/dropdown-options-container';\n import { BentoTypography } from '@/components/typography';\n import { DropdownInputDefault, DropdownInputSmall } from './components';\n import { BentoListbox, ErrorMessage, FieldLabel, useCachedSelectedValues, useMultiLevelItems } from '@/internal';\n\n // Utils\n import { deprecate } from '@/utils/ts/deprecate';\n import { generateUid } from '@/core/utils/ts';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n import { useI18n } from '@/utils/ts/i18n';\n import { useFormFieldEmits } from '@/utils/ts/form-field/form-field';\n\n // Composables\n import { useDisplayValue, useListboxKeyboardNavigation, useTextboxKeyboardNavigation } from './composables';\n import { useVisibleDomOptions } from '@/internal/listbox/composables/use-visible-dom-options/use-visible-dom-options';\n import { useFormLayoutFieldLoading } from '@/composables/use-form-layout-loading/use-form-layout-loading';\n import { useSearchBarFilter } from '@/components/search-bar/useSearchBarDataFilter';\n\n // Directives\n import { BentoClickOutsideDirective as vBentoClickOutsideDirective } from '@/directives/click-outside';\n import { BentoKeyboardNavigationDirective as vBentoKeyboardNavigationDirective } from '@/directives';\n\n // Types\n import { BentoDropdownEvent, type BentoDropdownProps, BentoDropdownSize } from './dropdown.types';\n import {\n BentoListboxEvent,\n type BentoListboxItemRole,\n type BentoListboxMultiSelectValue,\n type BentoListboxOptions,\n type BentoListboxSelectedValue,\n type BentoListboxSelectedValueLabelPair,\n } from '@/types/listbox';\n\n import messages from './messages.json';\n import { useHasSlot } from '@/composables';\n import { INPUT_FIELD_COMPONENT_INJECTION_KEY } from '@/components/input-field/input-field.keys';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const attrs = useAttrs();\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n const props = withDefaults(defineProps<BentoDropdownProps>(), {\n ariaLabel: null,\n condensed: false,\n emptyState: undefined,\n disabled: false,\n dynamicFiltering: false,\n error: false,\n errorMessage: null,\n description: null,\n hasMoreItems: false,\n isOptionDisabled: undefined,\n items: () => [],\n label: null,\n loading: false,\n componentLoading: false,\n lazyLoadType: BentoListbox.props.lazyLoadType.default,\n multiple: false,\n optional: false,\n placeholder: null,\n readonly: false,\n required: false,\n search: undefined,\n showSlotContentInMultiple: false,\n size: null,\n staticCategories: false,\n tooltipText: null,\n value: null,\n modelValue: null,\n virtualScroll: false,\n enableValueLabelPair: false,\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when an option is clicked. Updates the selected option from the \"value\" property linked to the v-model.\n * @deprecated since version 2.0. Use `v-model` or `update:model-value instead.\n */\n (e: 'input', selectedValue: BentoListboxSelectedValue | any); // eslint-disable-line @typescript-eslint/no-explicit-any\n\n /**\n * Emitted when an option is clicked. Updates the selected option from the \"modelValue\" property linked to the v-model.\n */\n (e: 'update:model-value', selectedValue: BentoListboxSelectedValue | any); // eslint-disable-line @typescript-eslint/no-explicit-any\n\n /**\n * Emitted when:\n * - `lazyLoad` is `automatic` and the scroll meets the end of the list\n * - `lazyload` is `button` and the button is clicked\n */\n (e: 'show-more');\n\n /**\n * Emitted when the dropdown is opened.\n */\n (e: 'open');\n }>();\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const { emitValue } = useFormFieldEmits<BentoListboxSelectedValue>(emit);\n\n const inputContainerRef = ref(null);\n const inputContainerRefWrapper = ref(null);\n const optionsContainerRef: Ref<InstanceType<typeof BentoDropdownOptionsContainer>> = ref(null);\n const isDropdownOpen = ref(false);\n const dropdownOptionsContainerId = generateUid('bento-dropdown-options-container');\n const labelId = generateUid('dropdown-label');\n const descriptionId = generateUid('dropdown-description');\n const errorId = generateUid('dropdown-error');\n\n const { isReadOnly } = useFormLayoutFieldLoading(toRef(props, 'readonly'));\n\n const dropdownValue = computed(() => props.modelValue ?? props.value);\n\n const { cachedSelectedListboxOptions, cachedListboxSelectedValues, setCachedValues } = useCachedSelectedValues(\n toRef(props, 'items'),\n dropdownValue,\n toRef(props, 'multiple'),\n toRef(props, 'enableValueLabelPair')\n );\n\n const ariaLabelAttribute = ref(attrs['aria-label']);\n const ariaDescribedByAttribute = ref(attrs['aria-describedby']);\n const { ariaLabel, label } = toRefs(props);\n\n // vue-i18n issue with t() used in script - direct usage in template works\n // requires either createI18n({ legacy: false }) or to be wrapped in computed()\n const computedAriaLabelFallbackMessage = computed(() => t('ariaLabelFallback'));\n const computedAriaLabel = useAriaLabel({\n // TODO: take ariaLabel ref away when aria-label prop is removed\n ariaLabel: ariaLabel.value || (ariaLabelAttribute as Ref<string>),\n label,\n defaultFallback: computedAriaLabelFallbackMessage,\n });\n\n // Inject input field component key to change the dropdown size\n const isInputComponent =\n props.size === BentoDropdownSize.SMALL || inject(INPUT_FIELD_COMPONENT_INJECTION_KEY, false);\n const computedSize = computed(() => (isInputComponent ? BentoDropdownSize.SMALL : BentoDropdownSize.DEFAULT));\n\n const conditionalClasses = computed(() => ({\n 'b-dropdown--condensed': props.condensed,\n }));\n\n // Description styles\n const descriptionConditionalClasses = computed(() => ({\n 'b-dropdown__description--error': !!props.errorMessage,\n }));\n\n // Filtering\n const searchTerm = ref('');\n const items = toRef(props, 'items');\n const staticCategories = toRef(props, 'staticCategories');\n const filteredItems = useSearchBarFilter(searchTerm, items, props?.search?.searchEvent, staticCategories);\n const isSearching = computed(() => props.dynamicFiltering && !!searchTerm.value);\n\n const displayValue = useDisplayValue({\n items,\n placeholder: toRef(props, 'placeholder'),\n isMultiSelect: toRef(props, 'multiple'),\n selectedValues: cachedSelectedListboxOptions,\n });\n\n const selectedValueItem = computed(() => {\n if (props?.multiple && Array.isArray(dropdownValue.value)) {\n return props.items.filter(\n ({ value }) => props?.value && (props?.value as BentoListboxMultiSelectValue).includes(value)\n );\n }\n if (!props.multiple && props.staticCategories) {\n // Find the category that holds the selected value\n const category = props.items.find(categoryItem =>\n categoryItem.items.some(item => item.value === dropdownValue.value)\n );\n // Find the specific item within the category\n const selectedCategoryItem = category\n ? category.items.find(item => item.value === dropdownValue.value)\n : null;\n\n return selectedCategoryItem;\n }\n\n return props.items.find(({ value }) => value === dropdownValue.value);\n });\n\n const selectedValueIndex = computed(() => {\n const index = filteredItems.value.findIndex(({ value }) => {\n return props.enableValueLabelPair\n ? (dropdownValue.value as BentoListboxSelectedValueLabelPair).value === value\n : dropdownValue.value === value;\n });\n return index > -1 ? index : 0;\n });\n\n const { isMultiLevelSelect, flattenedItemsList } = useMultiLevelItems(items);\n\n const isTreePattern = computed(() => isMultiLevelSelect.value && !props.staticCategories);\n\n const computedOptionRole = computed<BentoListboxItemRole>(() => (isTreePattern.value ? 'treeitem' : 'option'));\n\n const additionalItemsSelected = computed(() => {\n if (props.multiple) {\n const selectedItemsCount = Array.isArray(dropdownValue.value) ? dropdownValue.value.length : 0;\n const total = isMultiLevelSelect.value ? flattenedItemsList.value.length : items.value.length;\n\n if (selectedItemsCount === 0) {\n return null;\n }\n\n // Display count always - show \"all\" only when is not external filtering (hasMoreItems = true)\n if (!props.hasMoreItems && total > 0 && total === selectedItemsCount) {\n return t('all');\n }\n\n return selectedItemsCount;\n }\n\n return null;\n });\n\n // ARIA\n const ariaDescribedBy = computed(\n () =>\n [\n props.description ? descriptionId : null,\n ariaDescribedByAttribute.value,\n props.errorMessage ? errorId : null,\n ]\n .filter(Boolean)\n .join(' ') || null\n );\n\n const listboxRef = computed(() => optionsContainerRef.value?.$el as HTMLDivElement);\n\n const { visibleDomOptions, updateVisibleDomOptions } = useVisibleDomOptions(\n listboxRef,\n filteredItems,\n computedOptionRole\n );\n\n const openDropdown = () => {\n if (isReadOnly.value) {\n return;\n }\n isDropdownOpen.value = true;\n nextTick(() => {\n updateVisibleDomOptions();\n });\n };\n\n const closeDropdown = () => {\n isDropdownOpen.value = false;\n };\n\n const toggleDropdown = () => {\n if (isReadOnly.value) {\n return;\n }\n isDropdownOpen.value = !isDropdownOpen.value;\n nextTick(() => {\n updateVisibleDomOptions();\n });\n\n // Clear search\n if (isSearching.value) {\n searchTerm.value = '';\n }\n };\n\n const clickOutsideDropdown = () => {\n if (isSearching.value) {\n searchTerm.value = '';\n }\n\n if (isDropdownOpen.value) {\n isDropdownOpen.value = false;\n // Reset the internal dropdown options state\n optionsContainerRef.value.onOutsideDropdownClick();\n }\n };\n\n const onOptionSelected = (selectedValue: BentoListboxOptions) => {\n // Clear and close the dropdown on single selection\n if (!props.multiple) {\n searchTerm.value = '';\n isDropdownOpen.value = false;\n focus();\n }\n\n setCachedValues(selectedValue);\n\n /**\n * Emit the value/label pair objects if enableValueLabelPair is enabled,\n * otherwise just emit the list of selected values (number or string)\n */\n emitValue(cachedListboxSelectedValues.value);\n };\n\n const emitShowMoreEvent = () => {\n emit(BentoDropdownEvent.SHOW_MORE);\n };\n\n const textboxKeyboardNavigationListeners = useTextboxKeyboardNavigation(\n {\n inputContainerRef,\n optionsContainerRef,\n selectedValueIndex,\n isDropdownOpen,\n isDynamicFltering: toRef(props, 'dynamicFiltering'),\n items: visibleDomOptions,\n isMultiple: props.multiple,\n },\n toggleDropdown,\n openDropdown,\n closeDropdown\n );\n\n const listboxKeyboardNavigationListeners = useListboxKeyboardNavigation(\n {\n inputContainerRef,\n isDropdownOpen,\n },\n closeDropdown\n );\n\n const listboxListeners = {\n [BentoListboxEvent.CLOSE_DROPDOWN]: closeDropdown,\n [BentoListboxEvent.SELECT]: onOptionSelected,\n [BentoListboxEvent.SHOW_MORE]: emitShowMoreEvent,\n ...listboxKeyboardNavigationListeners,\n };\n\n if (props.error) {\n deprecate(\n 'BentoDropdown \"error\" property',\n `Use the BentoDropdown \"errorMessage\" property instead to indicate that there is a modifier error.\n Having the field as \"undefined\" will hide/remove the error.\n <bento-dropdown errorMessage=\"Error message text\" />`,\n '2.0.0'\n );\n }\n\n if (props.size) {\n deprecate('BentoDropdown \"size\" property', `Do not use. Only 'default' size should be used.`, '2.0.0');\n }\n\n if (props.value) {\n deprecate(\n 'BentoDropdown \"value\" property',\n `The use of \"value\" prop in \"BentoDropdown\" is no longer supported.\n Use the \"v-model\" or \"model-value\" property instead.`,\n '2.0.0'\n );\n }\n\n const focus = () => {\n inputContainerRef.value.focus();\n };\n\n watch(\n () => isDropdownOpen.value,\n (isOpen: boolean) => {\n if (isOpen) {\n emit('open');\n }\n }\n );\n\n defineExpose({\n focus,\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * A Dropdown shows a selected option's.\n * Use a dropdown when you want users to select options\n * from a list of pre-defined options.\n *\n * @example\n * import { BentoDropdown } from '@adyen/bento-vue2';\n * import type { BentoDropdownOptions } from '@adyen/bento-vue2'\n *\n * export default {\n * components: { BentoDropdown },\n * template: `\n * <bento-dropdown\n * v-model=\"selectedValue\"\n * :disabled=\"false\"\n * :multiple=\"true\"\n * :isOptionsDisabled=\"option => option.value === 2\"\n * :items=\"options\"\n * />\n * `,\n * setup() {\n * const selectedValue = ref(2) // Default value\n * const options: BentoDropdownOptions = [\n * { label: 'Option 1', value: 1 },\n * { label: 'Option 2', value: 2 },\n * ];\n * return { options, selectedValue };\n * }\n * }\n */\n export default defineComponent({\n i18n: { messages },\n name: 'b-dropdown',\n components: {\n DropdownInputDefault,\n DropdownInputSmall,\n },\n model: { prop: 'modelValue' },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./dropdown.scss\" />\n"],"names":["useDropdownOptionsListbox","selectedValue","multiple","isOpen","emit","internalSelectedValue","ref","t","useI18n","messages$1","watch","isApplyButtonDisabled","computed","onApplyClick","BentoListboxEvent","onCancelClick","onOutsideDropdownClick","actions","onOptionSelected","newSelectedValue","onTabKey","onEnterKey","onSpaceKey","onEscapeKey","emitShowMoreEvent","listeners","__default__$2","defineComponent","slots","useSlots","__emit","props","__props","toRefs","dropdownOptionsListboxRef","isDropdownOpen","noResultsMessage","conditionalClasses","conditionalListboxClasses","popperContainerOrPopoverComponent","BentoPopover","PopperContainer","popperContainerOrPopoverProps","containerMinAndMaxWidth","_a","generateUid","__expose","uuid$1","openBlock","createElementBlock","mergeProps","_ctx","createCommentVNode","uuid","__default__$1","baseTextbox","DropdownBaseTextboxState","onInput","newInput","onKeyDown","e","openDropdown","stopEventPropagation","closeDropdown","clearValue","DropdownBaseTextboxEvent","categoryMultiSelect","selectedValues","items","acc","option","selectedCategoryOptions","categoryOption","selectedOption","label","displayValue","useDisplayValue","placeholder","isMultiSelect","isCategoryMultilevel","focusOnTextbox","elementToFocusOn","useTextboxKeyboardNavigation","inputContainerRef","optionsContainerRef","selectedValueIndex","isDynamicFltering","isMultiple","toggleDropdown","focusOnOption","index","nextTick","focusOnChip","chips","_b","setListboxFocusedIndex","selectedIndex","skipToFirstOption","skipToLastOption","onArrowDown","event","onArrowUp","onHomeKey","onEndKey","onTab","BentoKeyboardNavigationKeyDownEvent","useListboxKeyboardNavigation","closeDropdownAndFocusOnTextbox","useSearchBarFilter","searchTerm","data","searchEvent","ignoreGroups","searchTermRef","dataRef","findHits","searchTermLowerCased","options","INPUT_FIELD_COMPONENT_INJECTION_KEY","INPUT_FIELD_HINT_INJECTION_KEY","INPUT_FIELD_PARENT_COMPONENT_INJECTION_KEY","__default__","messages","DropdownInputDefault","DropdownInputSmall","attrs","useAttrs","hasSlot","useHasSlot","emitValue","useFormFieldEmits","inputContainerRefWrapper","dropdownOptionsContainerId","labelId","descriptionId","errorId","isReadOnly","useFormLayoutFieldLoading","toRef","dropdownValue","cachedSelectedListboxOptions","cachedListboxSelectedValues","setCachedValues","useCachedSelectedValues","ariaLabelAttribute","ariaDescribedByAttribute","ariaLabel","computedAriaLabelFallbackMessage","computedAriaLabel","useAriaLabel","isInputComponent","BentoDropdownSize","inject","computedSize","descriptionConditionalClasses","staticCategories","filteredItems","isSearching","selectedValueItem","value","category","categoryItem","item","isMultiLevelSelect","flattenedItemsList","useMultiLevelItems","isTreePattern","computedOptionRole","additionalItemsSelected","selectedItemsCount","total","ariaDescribedBy","listboxRef","visibleDomOptions","updateVisibleDomOptions","useVisibleDomOptions","clickOutsideDropdown","focus","textboxKeyboardNavigationListeners","listboxKeyboardNavigationListeners","listboxListeners","deprecate"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkBOA,KAAA,CAAAC,GAAAC,GAAAC,GAAAC,MAAA;AAMH,QAAAC,IAAAC,EAAAL,EAAA,KAAA,GACA,EAAA,GAAAM,EAAA,IAAAC,GAAA,EAAA,UAAAC,GAAA,CAAA;AAEA,EAAAC,GAAAT,GAAA,MAAA;AACI,IAAAI,EAAA,QAAAJ,EAAA;AAAA,EAA4C,CAAA;AAIhD,QAAAU,IAAAC;AAAA,IAA8B,MAAA,KAAA,UAAAP,EAAA,KAAA,MAAA,KAAA,UAAAJ,EAAA,KAAA;AAAA,EAC8D,GAG5FY,IAAA,MAAA;AACI,IAAAT,EAAAU,EAAA,QAAAT,EAAA,KAAA,GACAD,EAAAU,EAAA,cAAA;AAAA,EAAsC,GAG1CC,IAAA,MAAA;AACI,IAAAV,EAAA,QAAAJ,EAAA,OACAG,EAAAU,EAAA,cAAA;AAAA,EAAsC,GAG1CE,IAAA,MAAA;AACI,IAAAb,EAAA,SAAAD,EAAA,UACIG,EAAA,QAAAJ,EAAA;AAAA,EACJ,GAGJgB,IAAAL,EAAA,MAAA;AAAA,IAA+B;AAAA,MAC3B,OAAAL,EAAA,OAAA;AAAA,MACoB,OAAAM;AAAA,MACT,UAAAF,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EA;AAIR,UAAAJ,KAAA,MAAA;AACI,MAAA9F,EAAA,MAAA,MAAA;AAAA,IAA8B;AAGlC,WAAAzE;AAAA,MAAA,MAAAyB,EAAA;AAAA,MACyB,CAAAhC,MAAA;AAEjB,QAAAA,KACIC,EAAA,MAAA;AAAA,MACJ;AAAA,IACJ,GAGJ0C,EAAA;AAAA,MAAa,OAAAmI;AAAA,IACT,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"es6.C1DXQV6f.js","sources":["../../../design-tokens/dist/js/bento/es6.js"],"sourcesContent":["export const BColorBackgroundPrimary = \"#ffffff\";\nexport const BColorBackgroundPrimaryHover = \"#f4f5f6\";\nexport const BColorBackgroundPrimaryActive = \"#ecedef\";\nexport const BColorBackgroundSecondary = \"#f4f5f6\";\nexport const BColorBackgroundSecondaryHover = \"#ecedef\";\nexport const BColorBackgroundSecondaryActive = \"#e2e5e7\";\nexport const BColorBackgroundTertiary = \"#ecedef\";\nexport const BColorBackgroundTertiaryHover = \"#e2e5e7\";\nexport const BColorBackgroundTertiaryActive = \"#dadddf\";\nexport const BColorBackgroundQuaternary = \"#c0c5ca\";\nexport const BColorBackgroundQuaternaryHover = \"#b7bdc2\";\nexport const BColorBackgroundQuaternaryActive = \"#aeb5ba\";\nexport const BColorBackgroundModal = \"#ffffff\";\nexport const BColorBackgroundModalHover = \"#f4f5f6\";\nexport const BColorBackgroundModalActive = \"#ecedef\";\nexport const BColorBackgroundDisabled = \"#ecedef\";\nexport const BColorBackgroundSelected = \"#e3effb\";\nexport const BColorBackgroundSelectedHover = \"#d4e6f9\";\nexport const BColorBackgroundSelectedActive = \"#c8dff7\";\nexport const BColorBackgroundSpotlight = \"#ffe379\";\nexport const BColorBackgroundCriticalWeak = \"#fff3ef\";\nexport const BColorBackgroundCriticalStrong = \"#dc3801\";\nexport const BColorBackgroundCriticalStrongHover = \"#c13101\";\nexport const BColorBackgroundCriticalStrongActive = \"#751e00\";\nexport const BColorBackgroundWarningWeak = \"#fff4e5\";\nexport const BColorBackgroundWarningWeakHover = \"#ffecd0\";\nexport const BColorBackgroundWarningWeakActive = \"#ffe0b3\";\nexport const BColorBackgroundWarningStrong = \"#d77f00\";\nexport const BColorBackgroundSuccessWeak = \"#e4faef\";\nexport const BColorBackgroundSuccessStrong = \"#008845\";\nexport const BColorBackgroundHighlightWeak = \"#f0f6fd\";\nexport const BColorBackgroundHighlightStrong = \"#0f75dc\";\nexport const BColorBackgroundInversePrimary = \"#001222\";\nexport const BColorBackgroundInversePrimaryHover = \"#5c6874\";\nexport const BColorBackgroundInversePrimaryActive = \"#6c7782\";\nexport const BColorBackgroundInverseSecondary = \"#1a2b3b\";\nexport const BColorBackgroundInverseSecondaryHover = \"#273746\";\nexport const BColorBackgroundInverseSecondaryActive = \"#364553\";\nexport const BColorBackgroundInverseDisabled = \"#273746\";\nexport const BColorBackgroundInverseCriticalWeak = \"#5c1800\";\nexport const BColorBackgroundInverseCriticalStrong = \"#ff9a78\";\nexport const BColorBackgroundInverseCriticalStrongHover = \"#ffbda6\";\nexport const BColorBackgroundInverseCriticalStrongActive = \"#ffded3\";\nexport const BColorBackgroundAlwaysLight = \"#ffffff\";\nexport const BColorBackgroundAlwaysLightHover = \"#f4f5f6\";\nexport const BColorBackgroundAlwaysLightActive = \"#ecedef\";\nexport const BColorBackgroundAlwaysLightDisabled = \"#ecedef\";\nexport const BColorBackgroundAlwaysLightSelected = \"#e3effb\";\nexport const BColorBackgroundAlwaysDark = \"#001222\";\nexport const BColorBackgroundAlwaysDarkHover = \"#5c6874\";\nexport const BColorBackgroundAlwaysDarkActive = \"#8c959d\";\nexport const BColorBackgroundAlwaysDarkDisabled = \"#ecedef\";\nexport const BColorBackgroundAlwaysDarkSelected = \"#00305f\";\nexport const BColorBackgroundAlwaysDarkPrimary = \"#001222\";\nexport const BColorBackgroundAlwaysDarkPrimaryHover = \"#132434\";\nexport const BColorBackgroundAlwaysDarkPrimaryActive = \"#213140\";\nexport const BColorBackgroundAlwaysDarkPrimaryDisabled = \"#ecedef\";\nexport const BColorBackgroundAlwaysDarkPrimarySelected = \"#00305f\";\nexport const BColorBackgroundAlwaysDarkSecondary = \"#213140\";\nexport const BColorBackgroundAlwaysDarkSecondaryHover = \"#364553\";\nexport const BColorBackgroundAlwaysDarkSecondaryActive = \"#455460\";\nexport const BColorBackgroundAlwaysDarkSecondaryDisabled = \"#ecedef\";\nexport const BColorBackgroundAlwaysDarkSecondarySelected = \"#00305f\";\nexport const BColorBackgroundAlwaysDarkTertiary = \"#2f3e4d\";\nexport const BColorBackgroundAlwaysDarkTertiaryHover = \"#3d4c5a\";\nexport const BColorBackgroundAlwaysDarkTertiaryActive = \"#455460\";\nexport const BColorBackgroundAlwaysDarkTertiaryDisabled = \"#ecedef\";\nexport const BColorBackgroundAlwaysDarkTertiarySelected = \"#00305f\";\nexport const BColorLabelPrimary = \"#001222\";\nexport const BColorLabelPrimaryHover = \"#5c6874\";\nexport const BColorLabelPrimaryActive = \"#6c7782\";\nexport const BColorLabelSecondary = \"#5c6874\";\nexport const BColorLabelTertiary = \"#8c959d\";\nexport const BColorLabelDisabled = \"#8c959d\";\nexport const BColorLabelCritical = \"#dc3801\";\nexport const BColorLabelCriticalHover = \"#c13101\";\nexport const BColorLabelCriticalActive = \"#751e00\";\nexport const BColorLabelWarning = \"#ab6600\";\nexport const BColorLabelHighlight = \"#0f75dc\";\nexport const BColorLabelSuccess = \"#008845\";\nexport const BColorLabelOnColor = \"#ffffff\";\nexport const BColorLabelInversePrimary = \"#ffffff\";\nexport const BColorLabelInversePrimaryHover = \"#f4f5f6\";\nexport const BColorLabelInversePrimaryActive = \"#ecedef\";\nexport const BColorLabelInverseSecondary = \"#9da5ac\";\nexport const BColorLabelInverseDisabled = \"#737e88\";\nexport const BColorLabelInverseCritical = \"#ff9a78\";\nexport const BColorLabelInverseCriticalHover = \"#ffbda6\";\nexport const BColorLabelInverseCriticalActive = \"#ffded3\";\nexport const BColorLabelOnBackgroundCriticalWeak = \"#c13101\";\nexport const BColorLabelOnBackgroundWarningWeak = \"#955900\";\nexport const BColorLabelOnBackgroundSuccessWeak = \"#00773c\";\nexport const BColorLabelOnBackgroundHighlightWeak = \"#0065c9\";\nexport const BColorLabelAlwaysLight = \"#ffffff\";\nexport const BColorLabelAlwaysLightPrimary = \"#ecedef\";\nexport const BColorLabelAlwaysLightPrimaryHover = \"#c8ccd0\";\nexport const BColorLabelAlwaysLightPrimaryActive = \"#959da5\";\nexport const BColorLabelAlwaysLightSecondary = \"#a6adb3\";\nexport const BColorLabelAlwaysLightSecondaryHover = \"#959da5\";\nexport const BColorLabelAlwaysLightSecondaryActive = \"#737e88\";\nexport const BColorLabelAlwaysLightTertiary = \"#848d96\";\nexport const BColorLabelAlwaysLightTertiaryHover = \"#737e88\";\nexport const BColorLabelAlwaysLightTertiaryActive = \"#54616d\";\nexport const BColorLabelAlwaysDark = \"#001222\";\nexport const BColorLinkPrimary = \"#0065c9\";\nexport const BColorLinkPrimaryHover = \"#0f75dc\";\nexport const BColorLinkPrimaryActive = \"#0f75dc\";\nexport const BColorLinkPrimaryDisabled = \"#8c959d\";\nexport const BColorLinkPrimaryVisited = \"#540884\";\nexport const BColorLinkPrimaryVisitedHover = \"#710ab3\";\nexport const BColorLinkPrimaryVisitedActive = \"#710ab3\";\nexport const BColorLinkQuiet = \"#001222\";\nexport const BColorLinkQuietHover = \"#5c6874\";\nexport const BColorLinkQuietActive = \"#5c6874\";\nexport const BColorLinkQuietDisabled = \"#8c959d\";\nexport const BColorOutlinePrimary = \"#dadddf\";\nexport const BColorOutlinePrimaryHover = \"#c8ccd0\";\nexport const BColorOutlinePrimaryActive = \"#001222\";\nexport const BColorOutlineSecondary = \"#c8ccd0\";\nexport const BColorOutlineSecondaryHover = \"#b7bdc2\";\nexport const BColorOutlineSecondaryActive = \"#001222\";\nexport const BColorOutlineTertiary = \"#8c959d\";\nexport const BColorOutlineTertiaryHover = \"#6c7782\";\nexport const BColorOutlineTertiaryActive = \"#001222\";\nexport const BColorOutlineDisabled = \"#dadddf\";\nexport const BColorOutlineSelected = \"#001222\";\nexport const BColorOutlineCritical = \"#dc3801\";\nexport const BColorOutlineCriticalHover = \"#c13101\";\nexport const BColorOutlineCriticalActive = \"#751e00\";\nexport const BColorOutlineSuccess = \"#008845\";\nexport const BColorOutlineSuccessHover = \"#00773c\";\nexport const BColorOutlineSuccessActive = \"#004724\";\nexport const BColorOutlineInversePrimary = \"#2f3e4d\";\nexport const BColorOutlineInversePrimaryHover = \"#6c7782\";\nexport const BColorOutlineInversePrimaryActive = \"#9da5ac\";\nexport const BColorOutlineInverseDisabled = \"#455460\";\nexport const BColorOutlineInverseCritical = \"#ff9a78\";\nexport const BColorOutlineInverseCriticalHover = \"#ffbda6\";\nexport const BColorOutlineInverseCriticalActive = \"#ffded3\";\nexport const BColorSeparatorPrimary = \"#dadddf\";\nexport const BColorSeparatorSecondary = \"#c8ccd0\";\nexport const BColorSeparatorInversePrimary = \"#2f3e4d\";\nexport const BColorSeparatorInverseSecondary = \"#5c6874\";\nexport const BColorDecorativeGreen = \"#00d16a\";\nexport const BColorDecorativeBlue = \"#006bd7\";\nexport const BColorDecorativeYellow = \"#f9c500\";\nexport const BColorDecorativeOrange = \"#f99300\";\nexport const BColorDecorativeRed = \"#f73f01\";\nexport const BColorDecorativeGrey = \"#848d96\";\nexport const BColorSupportOverlay = \"#001222\";\nexport const BColorSupportShadow = \"#001222\";\nexport const BFocusRingColor = \"#0f75dc\";\nexport const BFocusRingSpacer = \"1px\";\nexport const BFocusRingOutline = \"3px\";\nexport const BTextFontVariantNumeric = \"normal\";\nexport const BTextRichTextHeadingMargin = \"32px 0 10px 0\";\nexport const BTextRichTextHeadingFontWeight = 700;\nexport const BTextRichTextParagraphMargin = \"0 0 8px 0\";\nexport const BTextRichTextListPaddingLeft = \"20px\";\nexport const BTextRichTextListMargin = \"0 0 4px 0\";\nexport const BTextRichTextCodeBackgroundColor = \"#f4f5f6\";\nexport const BTextRichTextCodeFontFamily = \"'Adyen Mono', 'Roboto Mono', 'Oxygen Mono', 'IBM Plex Mono', 'Courier New', monospace\";\nexport const BTextRichTextCodeFontWeight = 500;\nexport const BTextRichTextPreMargin = \"16px 0 16px 0\";\nexport const BTextRichTextPrePadding = \"10px 16px\";\nexport const BTextRichTextPreLineHeight = \"24px\";\nexport const BTextRichTextMarkBackgroundColor = \"#f0f6fd\";\nexport const BTextRichTextBlockquoteFontWeight = 500;\nexport const BTextRichTextBlockquoteMargin = \"16px 0 16px 16px\";\nexport const BTextRichTextTableBorder = \"1px solid #dadddf\";\nexport const BTextRichTextTableLineHeight = \"20px\";\nexport const BTextRichTextTableMargin = \"16px 0 16px 0\";\nexport const BTextRichTextTablePadding = \"10px 16px\";\nexport const BTextRichTextTableHeaderFontWeight = 700;\nexport const BTextRichTextTableCaptionLineHeight = \"20px\";\nexport const BTextRichTextTableCaptionMargin = \"0 0 6px 0\";\nexport const BTextRichTextCaptionParagraphMargin = \"0 0 6px 0\";\nexport const BTextRichTextCaptionListPaddingLeft = \"16px\";\nexport const BTextRichTextCaptionListMargin = \"0 0 2px 0\";\nexport const BTextRichTextCaptionBlockquoteMargin = \"12px 0 12px 16px\";\nexport const BTextRichTextCaptionPreLineHeight = \"20px\";\nexport const BTextRichTextCaptionTablePadding = \"8px 12px\";\nexport const BTextCaptionFontFamily = \"'Adyen Variable', Roboto, Oxygen, 'Open Sans', 'Helvetica Neue', Arial, sans-serif\";\nexport const BTextCaptionFontSize = \"12px\";\nexport const BTextCaptionFontWeight = 400;\nexport const BTextCaptionLineHeight = \"18px\";\nexport const BTextCaptionLetterSpacing = 0;\nexport const BTextCaptionWideLineHeight = \"20px\";\nexport const BTextCaptionStrongerFontWeight = 500;\nexport const BTextCaptionStrongerWideFontWeight = 500;\nexport const BTextCaptionStrongerWideLineHeight = \"20px\";\nexport const BTextBodyFontFamily = \"'Adyen Variable', Roboto, Oxygen, 'Open Sans', 'Helvetica Neue', Arial, sans-serif\";\nexport const BTextBodyFontSize = \"14px\";\nexport const BTextBodyFontWeight = 400;\nexport const BTextBodyLineHeight = \"20px\";\nexport const BTextBodyLetterSpacing = 0;\nexport const BTextBodyWideLineHeight = \"24px\";\nexport const BTextBodyStrongerFontWeight = 500;\nexport const BTextBodyStrongerWideFontWeight = 500;\nexport const BTextBodyStrongerWideLineHeight = \"24px\";\nexport const BTextBodyStrongestFontWeight = 600;\nexport const BTextBodyStrongestWideFontWeight = 600;\nexport const BTextBodyStrongestWideLineHeight = \"24px\";\nexport const BTextSubtitleFontFamily = \"'Adyen Variable', Roboto, Oxygen, 'Open Sans', 'Helvetica Neue', Arial, sans-serif\";\nexport const BTextSubtitleFontSize = \"16px\";\nexport const BTextSubtitleFontWeight = 500;\nexport const BTextSubtitleLineHeight = \"26px\";\nexport const BTextSubtitleLetterSpacing = 0;\nexport const BTextSubtitleStrongerFontWeight = 600;\nexport const BTextTitleFontFamily = \"'Adyen Variable', Roboto, Oxygen, 'Open Sans', 'Helvetica Neue', Arial, sans-serif\";\nexport const BTextTitleFontSize = \"16px\";\nexport const BTextTitleFontWeight = 600;\nexport const BTextTitleLineHeight = \"26px\";\nexport const BTextTitleLetterSpacing = 0;\nexport const BTextTitleMobileFontSize = \"16px\";\nexport const BTextTitleMobileLineHeight = \"26px\";\nexport const BTextTitleMFontFamily = \"'Adyen Variable', Roboto, Oxygen, 'Open Sans', 'Helvetica Neue', Arial, sans-serif\";\nexport const BTextTitleMFontSize = \"20px\";\nexport const BTextTitleMFontWeight = 600;\nexport const BTextTitleMLineHeight = \"30px\";\nexport const BTextTitleMLetterSpacing = 0;\nexport const BTextTitleMMobileFontSize = \"18px\";\nexport const BTextTitleMMobileLineHeight = \"28px\";\nexport const BTextTitleLFontFamily = \"'Adyen Variable', Roboto, Oxygen, 'Open Sans', 'Helvetica Neue', Arial, sans-serif\";\nexport const BTextTitleLFontSize = \"24px\";\nexport const BTextTitleLFontWeight = 600;\nexport const BTextTitleLLineHeight = \"34px\";\nexport const BTextTitleLLetterSpacing = 0;\nexport const BTextTitleLMobileFontSize = \"20px\";\nexport const BTextTitleLMobileLineHeight = \"30px\";\nexport const BZIndexGlobalScreen = \"auto\";\nexport const BZIndexGlobalElevated = 5;\nexport const BZIndexGlobalNavigation = 10;\nexport const BZIndexGlobalInstantInteraction = 15;\nexport const BZIndexLocalTier1 = 1;\nexport const BZIndexLocalTier2 = 2;\nexport const BZIndexLocalTier3 = 3;\nexport const BZIndexLocalTier4 = 4;\nexport const BToastWidth = \"420px\";\nexport const BToastSpacingInner = \"12px\";\nexport const BToastSpacingOuter = \"16px\";\nexport const BToastItemSpacing = \"16px\";\nexport const BToastItemZIndex = 15;\nexport const BTooltipBackgroundColor = \"#001222\";\nexport const BTooltipBorderRadius = \"4px\";\nexport const BTooltipColor = \"#ffffff\";\nexport const BTooltipMaxWidth = \"300px\";\nexport const BTooltipPadding = \"4px 8px\";\nexport const BTooltipZIndex = 5;\nexport const BAnimationEasingStandard = \"cubic-bezier(0.2, 0, 0.4, 0.9)\";\nexport const BAnimationEasingEnter = \"cubic-bezier(0.12, 0.6, 0.4, 0.95)\";\nexport const BAnimationEasingExit = \"cubic-bezier(0.4, 0, 1, 1)\";\nexport const BAnimationEasingLinear = \"linear\";\nexport const BAnimationDurationFast = \"100ms\";\nexport const BAnimationDurationModerate = \"150ms\";\nexport const BAnimationDurationSlow = \"250ms\";\nexport const BBorderRadiusXs = \"2px\";\nexport const BBorderRadiusS = \"4px\";\nexport const BBorderRadiusM = \"8px\";\nexport const BBorderRadiusL = \"12px\";\nexport const BBorderRadiusXl = \"24px\";\nexport const BBorderWidthS = \"1px\";\nexport const BBorderWidthM = \"2px\";\nexport const BBorderWidthL = \"3px\";\nexport const BBorderWidthAttention = \"1.5px\";\nexport const BMediaQueryXsMin = \"0px\";\nexport const BMediaQueryXsMax = \"375px\";\nexport const BMediaQuerySMin = \"376px\";\nexport const BMediaQuerySMax = \"499px\";\nexport const BMediaQueryMMin = \"500px\";\nexport const BMediaQueryMMax = \"767px\";\nexport const BMediaQueryLMin = \"768px\";\nexport const BMediaQueryLMax = \"1279px\";\nexport const BMediaQueryXlMin = \"1280px\";\nexport const BMediaQueryXlMax = \"1535px\";\nexport const BMediaQueryXxl = \"1536px\";\nexport const BGradientDataGridHover = \"linear-gradient(270deg, #f4f5f6 0%, rgba(247, 247, 248, .82) 53.34%, rgba(247, 247, 248, .75) 61.73%, rgba(247, 247, 248, .11) 99.25%, rgba(247, 247, 248, 0) 100%)\";\nexport const BGradientDataGridZebraHover = \"linear-gradient(270deg, #ecedef 0%, rgba(236, 237, 239, .82) 53.34%, rgba(236, 237, 239, .75) 61.73%, rgba(236, 237, 239, .11) 99.25%, rgba(236, 237, 239, 0) 100%)\";\nexport const BGradientDataGridSelectedHover = \"linear-gradient(270deg, #d4e6f9 0%, rgba(212, 230, 249, .82) 53.34%, rgba(212, 230, 249, .75) 61.73%, rgba(212, 230, 249, .11) 99.25%, rgba(212, 230, 249, 0) 100%)\";\nexport const BGradientDataGridHighlightedHover = \"linear-gradient(270deg, #ffecd0 0%, rgba(255, 236, 208, .82) 53.34%, rgba(255, 236, 208, .75) 61.73%, rgba(255, 236, 208, .11) 99.25%, rgba(255, 236, 208, 0) 100%)\";\nexport const BShadowLow = \"0px 2px 4px rgba(0, 18, 34, 0.04), 0px 1px 2px rgba(0, 18, 34, 0.02)\";\nexport const BShadowMedium = \"0px 6px 12px rgba(0, 18, 34, 0.08), 0px 2px 4px rgba(0, 18, 34, 0.04)\";\nexport const BShadowHigh = \"0px 18px 36px rgba(0, 18, 34, 0.12), 0px 4px 8px rgba(0, 18, 34, 0.06)\";\nexport const BShadowLowBorder = \"0px 2px 4px rgba(0, 18, 34, 0.04), 0px 1px 2px rgba(0, 18, 34, 0.02), 0px 0px 0px 1px rgba(218, 221, 223, 1)\";\nexport const BShadowMediumBorder = \"0px 6px 12px rgba(0, 18, 34, 0.08), 0px 2px 4px rgba(0, 18, 34, 0.04), 0px 0px 0px 1px rgba(218, 221, 223, 1)\";\nexport const BShadowHighBorder = \"0px 18px 36px rgba(0, 18, 34, 0.12), 0px 4px 8px rgba(0, 18, 34, 0.06), 0px 0px 0px 1px rgba(218, 221, 223, 1)\";\nexport const BSpacer100 = \"32px\";\nexport const BSpacer110 = \"40px\";\nexport const BSpacer120 = \"48px\";\nexport const BSpacer130 = \"56px\";\nexport const BSpacer140 = \"64px\";\nexport const BSpacer000 = \"0px\";\nexport const BSpacer010 = \"2px\";\nexport const BSpacer020 = \"4px\";\nexport const BSpacer030 = \"6px\";\nexport const BSpacer040 = \"8px\";\nexport const BSpacer050 = \"10px\";\nexport const BSpacer060 = \"12px\";\nexport const BSpacer070 = \"16px\";\nexport const BSpacer080 = \"20px\";\nexport const BSpacer090 = \"24px\";\n"],"names":["BColorLabelOnBackgroundCriticalWeak","BColorLabelOnBackgroundWarningWeak","BColorLabelOnBackgroundSuccessWeak","BColorLabelOnBackgroundHighlightWeak","BBorderWidthAttention","BMediaQuerySMax","BMediaQueryMMax","BSpacer040"],"mappings":"AAyFY,MAACA,IAAsC,WACtCC,IAAqC,WACrCC,IAAqC,WACrCC,IAAuC,WA4KvCC,IAAwB,SAIxBC,IAAkB,SAElBC,IAAkB,SAyBlBC,IAAa;"}
1
+ {"version":3,"file":"es6.C1DXQV6f.js","sources":["../../../design-tokens/dist/js/bento/es6.js"],"sourcesContent":["export const BColorBackgroundPrimary = \"#ffffff\";\nexport const BColorBackgroundPrimaryHover = \"#f4f5f6\";\nexport const BColorBackgroundPrimaryActive = \"#ecedef\";\nexport const BColorBackgroundSecondary = \"#f4f5f6\";\nexport const BColorBackgroundSecondaryHover = \"#ecedef\";\nexport const BColorBackgroundSecondaryActive = \"#e2e5e7\";\nexport const BColorBackgroundTertiary = \"#ecedef\";\nexport const BColorBackgroundTertiaryHover = \"#e2e5e7\";\nexport const BColorBackgroundTertiaryActive = \"#dadddf\";\nexport const BColorBackgroundQuaternary = \"#c0c5ca\";\nexport const BColorBackgroundQuaternaryHover = \"#b7bdc2\";\nexport const BColorBackgroundQuaternaryActive = \"#aeb5ba\";\nexport const BColorBackgroundModal = \"#ffffff\";\nexport const BColorBackgroundModalHover = \"#f4f5f6\";\nexport const BColorBackgroundModalActive = \"#ecedef\";\nexport const BColorBackgroundDisabled = \"#ecedef\";\nexport const BColorBackgroundSelected = \"#e3effb\";\nexport const BColorBackgroundSelectedHover = \"#d4e6f9\";\nexport const BColorBackgroundSelectedActive = \"#c8dff7\";\nexport const BColorBackgroundSpotlight = \"#ffe379\";\nexport const BColorBackgroundCriticalWeak = \"#fff3ef\";\nexport const BColorBackgroundCriticalStrong = \"#dc3801\";\nexport const BColorBackgroundCriticalStrongHover = \"#c13101\";\nexport const BColorBackgroundCriticalStrongActive = \"#751e00\";\nexport const BColorBackgroundWarningWeak = \"#fff4e5\";\nexport const BColorBackgroundWarningWeakHover = \"#ffecd0\";\nexport const BColorBackgroundWarningWeakActive = \"#ffe0b3\";\nexport const BColorBackgroundWarningStrong = \"#d77f00\";\nexport const BColorBackgroundSuccessWeak = \"#e4faef\";\nexport const BColorBackgroundSuccessStrong = \"#008845\";\nexport const BColorBackgroundHighlightWeak = \"#f0f6fd\";\nexport const BColorBackgroundHighlightStrong = \"#0f75dc\";\nexport const BColorBackgroundInversePrimary = \"#001222\";\nexport const BColorBackgroundInversePrimaryHover = \"#5c6874\";\nexport const BColorBackgroundInversePrimaryActive = \"#6c7782\";\nexport const BColorBackgroundInverseSecondary = \"#1a2b3b\";\nexport const BColorBackgroundInverseSecondaryHover = \"#273746\";\nexport const BColorBackgroundInverseSecondaryActive = \"#364553\";\nexport const BColorBackgroundInverseDisabled = \"#273746\";\nexport const BColorBackgroundInverseCriticalWeak = \"#5c1800\";\nexport const BColorBackgroundInverseCriticalStrong = \"#ff9a78\";\nexport const BColorBackgroundInverseCriticalStrongHover = \"#ffbda6\";\nexport const BColorBackgroundInverseCriticalStrongActive = \"#ffded3\";\nexport const BColorBackgroundAlwaysLight = \"#ffffff\";\nexport const BColorBackgroundAlwaysLightHover = \"#f4f5f6\";\nexport const BColorBackgroundAlwaysLightActive = \"#ecedef\";\nexport const BColorBackgroundAlwaysLightDisabled = \"#ecedef\";\nexport const BColorBackgroundAlwaysLightSelected = \"#e3effb\";\nexport const BColorBackgroundAlwaysDark = \"#001222\";\nexport const BColorBackgroundAlwaysDarkHover = \"#5c6874\";\nexport const BColorBackgroundAlwaysDarkActive = \"#8c959d\";\nexport const BColorBackgroundAlwaysDarkDisabled = \"#ecedef\";\nexport const BColorBackgroundAlwaysDarkSelected = \"#00305f\";\nexport const BColorBackgroundAlwaysDarkPrimary = \"#001222\";\nexport const BColorBackgroundAlwaysDarkPrimaryHover = \"#132434\";\nexport const BColorBackgroundAlwaysDarkPrimaryActive = \"#213140\";\nexport const BColorBackgroundAlwaysDarkPrimaryDisabled = \"#ecedef\";\nexport const BColorBackgroundAlwaysDarkPrimarySelected = \"#00305f\";\nexport const BColorBackgroundAlwaysDarkSecondary = \"#213140\";\nexport const BColorBackgroundAlwaysDarkSecondaryHover = \"#364553\";\nexport const BColorBackgroundAlwaysDarkSecondaryActive = \"#455460\";\nexport const BColorBackgroundAlwaysDarkSecondaryDisabled = \"#ecedef\";\nexport const BColorBackgroundAlwaysDarkSecondarySelected = \"#00305f\";\nexport const BColorBackgroundAlwaysDarkTertiary = \"#2f3e4d\";\nexport const BColorBackgroundAlwaysDarkTertiaryHover = \"#3d4c5a\";\nexport const BColorBackgroundAlwaysDarkTertiaryActive = \"#455460\";\nexport const BColorBackgroundAlwaysDarkTertiaryDisabled = \"#ecedef\";\nexport const BColorBackgroundAlwaysDarkTertiarySelected = \"#00305f\";\nexport const BColorLabelPrimary = \"#001222\";\nexport const BColorLabelPrimaryHover = \"#5c6874\";\nexport const BColorLabelPrimaryActive = \"#6c7782\";\nexport const BColorLabelSecondary = \"#5c6874\";\nexport const BColorLabelTertiary = \"#8c959d\";\nexport const BColorLabelDisabled = \"#8c959d\";\nexport const BColorLabelCritical = \"#dc3801\";\nexport const BColorLabelCriticalHover = \"#c13101\";\nexport const BColorLabelCriticalActive = \"#751e00\";\nexport const BColorLabelWarning = \"#ab6600\";\nexport const BColorLabelHighlight = \"#0f75dc\";\nexport const BColorLabelSuccess = \"#008845\";\nexport const BColorLabelOnColor = \"#ffffff\";\nexport const BColorLabelInversePrimary = \"#ffffff\";\nexport const BColorLabelInversePrimaryHover = \"#f4f5f6\";\nexport const BColorLabelInversePrimaryActive = \"#ecedef\";\nexport const BColorLabelInverseSecondary = \"#9da5ac\";\nexport const BColorLabelInverseDisabled = \"#737e88\";\nexport const BColorLabelInverseCritical = \"#ff9a78\";\nexport const BColorLabelInverseCriticalHover = \"#ffbda6\";\nexport const BColorLabelInverseCriticalActive = \"#ffded3\";\nexport const BColorLabelOnBackgroundCriticalWeak = \"#c13101\";\nexport const BColorLabelOnBackgroundWarningWeak = \"#955900\";\nexport const BColorLabelOnBackgroundSuccessWeak = \"#00773c\";\nexport const BColorLabelOnBackgroundHighlightWeak = \"#0065c9\";\nexport const BColorLabelAlwaysLight = \"#ffffff\";\nexport const BColorLabelAlwaysLightPrimary = \"#ecedef\";\nexport const BColorLabelAlwaysLightPrimaryHover = \"#c8ccd0\";\nexport const BColorLabelAlwaysLightPrimaryActive = \"#959da5\";\nexport const BColorLabelAlwaysLightSecondary = \"#a6adb3\";\nexport const BColorLabelAlwaysLightSecondaryHover = \"#959da5\";\nexport const BColorLabelAlwaysLightSecondaryActive = \"#737e88\";\nexport const BColorLabelAlwaysLightTertiary = \"#848d96\";\nexport const BColorLabelAlwaysLightTertiaryHover = \"#737e88\";\nexport const BColorLabelAlwaysLightTertiaryActive = \"#54616d\";\nexport const BColorLabelAlwaysDark = \"#001222\";\nexport const BColorLinkPrimary = \"#0065c9\";\nexport const BColorLinkPrimaryHover = \"#0f75dc\";\nexport const BColorLinkPrimaryActive = \"#0f75dc\";\nexport const BColorLinkPrimaryDisabled = \"#8c959d\";\nexport const BColorLinkPrimaryVisited = \"#540884\";\nexport const BColorLinkPrimaryVisitedHover = \"#710ab3\";\nexport const BColorLinkPrimaryVisitedActive = \"#710ab3\";\nexport const BColorLinkQuiet = \"#001222\";\nexport const BColorLinkQuietHover = \"#5c6874\";\nexport const BColorLinkQuietActive = \"#5c6874\";\nexport const BColorLinkQuietDisabled = \"#8c959d\";\nexport const BColorOutlinePrimary = \"#dadddf\";\nexport const BColorOutlinePrimaryHover = \"#c8ccd0\";\nexport const BColorOutlinePrimaryActive = \"#001222\";\nexport const BColorOutlineSecondary = \"#c8ccd0\";\nexport const BColorOutlineSecondaryHover = \"#b7bdc2\";\nexport const BColorOutlineSecondaryActive = \"#001222\";\nexport const BColorOutlineTertiary = \"#8c959d\";\nexport const BColorOutlineTertiaryHover = \"#6c7782\";\nexport const BColorOutlineTertiaryActive = \"#001222\";\nexport const BColorOutlineDisabled = \"#dadddf\";\nexport const BColorOutlineSelected = \"#001222\";\nexport const BColorOutlineCritical = \"#dc3801\";\nexport const BColorOutlineCriticalHover = \"#c13101\";\nexport const BColorOutlineCriticalActive = \"#751e00\";\nexport const BColorOutlineSuccess = \"#008845\";\nexport const BColorOutlineSuccessHover = \"#00773c\";\nexport const BColorOutlineSuccessActive = \"#004724\";\nexport const BColorOutlineInversePrimary = \"#2f3e4d\";\nexport const BColorOutlineInversePrimaryHover = \"#6c7782\";\nexport const BColorOutlineInversePrimaryActive = \"#9da5ac\";\nexport const BColorOutlineInverseDisabled = \"#455460\";\nexport const BColorOutlineInverseCritical = \"#ff9a78\";\nexport const BColorOutlineInverseCriticalHover = \"#ffbda6\";\nexport const BColorOutlineInverseCriticalActive = \"#ffded3\";\nexport const BColorSeparatorPrimary = \"#dadddf\";\nexport const BColorSeparatorSecondary = \"#c8ccd0\";\nexport const BColorSeparatorInversePrimary = \"#2f3e4d\";\nexport const BColorSeparatorInverseSecondary = \"#5c6874\";\nexport const BColorDecorativeGreen = \"#00d16a\";\nexport const BColorDecorativeBlue = \"#006bd7\";\nexport const BColorDecorativeYellow = \"#f9c500\";\nexport const BColorDecorativeOrange = \"#f99300\";\nexport const BColorDecorativeRed = \"#f73f01\";\nexport const BColorDecorativeGrey = \"#848d96\";\nexport const BColorSupportOverlay = \"#001222\";\nexport const BColorSupportShadow = \"#001222\";\nexport const BFocusRingColor = \"#0f75dc\";\nexport const BFocusRingSpacer = \"1px\";\nexport const BFocusRingOutline = \"3px\";\nexport const BTextFontVariantNumeric = \"normal\";\nexport const BTextRichTextHeadingMargin = \"32px 0 10px 0\";\nexport const BTextRichTextHeadingFontWeight = 700;\nexport const BTextRichTextParagraphMargin = \"0 0 8px 0\";\nexport const BTextRichTextListPaddingLeft = \"20px\";\nexport const BTextRichTextListMargin = \"0 0 4px 0\";\nexport const BTextRichTextCodeBackgroundColor = \"#f4f5f6\";\nexport const BTextRichTextCodeFontFamily = \"'Adyen Mono', 'Roboto Mono', 'Oxygen Mono', 'IBM Plex Mono', 'Courier New', monospace\";\nexport const BTextRichTextCodeFontWeight = 500;\nexport const BTextRichTextPreMargin = \"16px 0 16px 0\";\nexport const BTextRichTextPrePadding = \"10px 16px\";\nexport const BTextRichTextPreLineHeight = \"24px\";\nexport const BTextRichTextMarkBackgroundColor = \"#f0f6fd\";\nexport const BTextRichTextBlockquoteFontWeight = 500;\nexport const BTextRichTextBlockquoteMargin = \"16px 0 16px 16px\";\nexport const BTextRichTextTableBorder = \"1px solid #dadddf\";\nexport const BTextRichTextTableLineHeight = \"20px\";\nexport const BTextRichTextTableMargin = \"16px 0 16px 0\";\nexport const BTextRichTextTablePadding = \"10px 16px\";\nexport const BTextRichTextTableHeaderFontWeight = 700;\nexport const BTextRichTextTableCaptionLineHeight = \"20px\";\nexport const BTextRichTextTableCaptionMargin = \"0 0 6px 0\";\nexport const BTextRichTextCaptionParagraphMargin = \"0 0 6px 0\";\nexport const BTextRichTextCaptionListPaddingLeft = \"16px\";\nexport const BTextRichTextCaptionListMargin = \"0 0 2px 0\";\nexport const BTextRichTextCaptionBlockquoteMargin = \"12px 0 12px 16px\";\nexport const BTextRichTextCaptionPreLineHeight = \"20px\";\nexport const BTextRichTextCaptionTablePadding = \"8px 12px\";\nexport const BTextCaptionFontFamily = \"'Adyen Variable', Roboto, Oxygen, 'Open Sans', 'Helvetica Neue', Arial, sans-serif\";\nexport const BTextCaptionFontSize = \"12px\";\nexport const BTextCaptionFontWeight = 400;\nexport const BTextCaptionLineHeight = \"18px\";\nexport const BTextCaptionLetterSpacing = 0;\nexport const BTextCaptionWideLineHeight = \"20px\";\nexport const BTextCaptionStrongerFontWeight = 500;\nexport const BTextCaptionStrongerWideFontWeight = 500;\nexport const BTextCaptionStrongerWideLineHeight = \"20px\";\nexport const BTextBodyFontFamily = \"'Adyen Variable', Roboto, Oxygen, 'Open Sans', 'Helvetica Neue', Arial, sans-serif\";\nexport const BTextBodyFontSize = \"14px\";\nexport const BTextBodyFontWeight = 400;\nexport const BTextBodyLineHeight = \"20px\";\nexport const BTextBodyLetterSpacing = 0;\nexport const BTextBodyWideLineHeight = \"24px\";\nexport const BTextBodyStrongerFontWeight = 500;\nexport const BTextBodyStrongerWideFontWeight = 500;\nexport const BTextBodyStrongerWideLineHeight = \"24px\";\nexport const BTextBodyStrongestFontWeight = 600;\nexport const BTextBodyStrongestWideFontWeight = 600;\nexport const BTextBodyStrongestWideLineHeight = \"24px\";\nexport const BTextSubtitleFontFamily = \"'Adyen Variable', Roboto, Oxygen, 'Open Sans', 'Helvetica Neue', Arial, sans-serif\";\nexport const BTextSubtitleFontSize = \"16px\";\nexport const BTextSubtitleFontWeight = 500;\nexport const BTextSubtitleLineHeight = \"26px\";\nexport const BTextSubtitleLetterSpacing = 0;\nexport const BTextSubtitleStrongerFontWeight = 600;\nexport const BTextTitleFontFamily = \"'Adyen Variable', Roboto, Oxygen, 'Open Sans', 'Helvetica Neue', Arial, sans-serif\";\nexport const BTextTitleFontSize = \"16px\";\nexport const BTextTitleFontWeight = 600;\nexport const BTextTitleLineHeight = \"26px\";\nexport const BTextTitleLetterSpacing = 0;\nexport const BTextTitleMobileFontSize = \"16px\";\nexport const BTextTitleMobileLineHeight = \"26px\";\nexport const BTextTitleMFontFamily = \"'Adyen Variable', Roboto, Oxygen, 'Open Sans', 'Helvetica Neue', Arial, sans-serif\";\nexport const BTextTitleMFontSize = \"20px\";\nexport const BTextTitleMFontWeight = 600;\nexport const BTextTitleMLineHeight = \"30px\";\nexport const BTextTitleMLetterSpacing = 0;\nexport const BTextTitleMMobileFontSize = \"18px\";\nexport const BTextTitleMMobileLineHeight = \"28px\";\nexport const BTextTitleLFontFamily = \"'Adyen Variable', Roboto, Oxygen, 'Open Sans', 'Helvetica Neue', Arial, sans-serif\";\nexport const BTextTitleLFontSize = \"24px\";\nexport const BTextTitleLFontWeight = 600;\nexport const BTextTitleLLineHeight = \"34px\";\nexport const BTextTitleLLetterSpacing = 0;\nexport const BTextTitleLMobileFontSize = \"20px\";\nexport const BTextTitleLMobileLineHeight = \"30px\";\nexport const BZIndexGlobalScreen = \"auto\";\nexport const BZIndexGlobalElevated = 5;\nexport const BZIndexGlobalNavigation = 10;\nexport const BZIndexGlobalInstantInteraction = 15;\nexport const BZIndexLocalTier1 = 1;\nexport const BZIndexLocalTier2 = 2;\nexport const BZIndexLocalTier3 = 3;\nexport const BZIndexLocalTier4 = 4;\nexport const BPopoverZIndex = 5;\nexport const BToastWidth = \"420px\";\nexport const BToastSpacingInner = \"12px\";\nexport const BToastSpacingOuter = \"16px\";\nexport const BToastItemSpacing = \"16px\";\nexport const BToastItemZIndex = 15;\nexport const BTooltipBackgroundColor = \"#001222\";\nexport const BTooltipBorderRadius = \"4px\";\nexport const BTooltipColor = \"#ffffff\";\nexport const BTooltipMaxWidth = \"300px\";\nexport const BTooltipPadding = \"4px 8px\";\nexport const BTooltipZIndex = 5;\nexport const BAnimationEasingStandard = \"cubic-bezier(0.2, 0, 0.4, 0.9)\";\nexport const BAnimationEasingEnter = \"cubic-bezier(0.12, 0.6, 0.4, 0.95)\";\nexport const BAnimationEasingExit = \"cubic-bezier(0.4, 0, 1, 1)\";\nexport const BAnimationEasingLinear = \"linear\";\nexport const BAnimationDurationFast = \"100ms\";\nexport const BAnimationDurationModerate = \"150ms\";\nexport const BAnimationDurationSlow = \"250ms\";\nexport const BBorderRadiusXs = \"2px\";\nexport const BBorderRadiusS = \"4px\";\nexport const BBorderRadiusM = \"8px\";\nexport const BBorderRadiusL = \"12px\";\nexport const BBorderRadiusXl = \"24px\";\nexport const BBorderWidthS = \"1px\";\nexport const BBorderWidthM = \"2px\";\nexport const BBorderWidthL = \"3px\";\nexport const BBorderWidthAttention = \"1.5px\";\nexport const BMediaQueryXsMin = \"0px\";\nexport const BMediaQueryXsMax = \"375px\";\nexport const BMediaQuerySMin = \"376px\";\nexport const BMediaQuerySMax = \"499px\";\nexport const BMediaQueryMMin = \"500px\";\nexport const BMediaQueryMMax = \"767px\";\nexport const BMediaQueryLMin = \"768px\";\nexport const BMediaQueryLMax = \"1279px\";\nexport const BMediaQueryXlMin = \"1280px\";\nexport const BMediaQueryXlMax = \"1535px\";\nexport const BMediaQueryXxl = \"1536px\";\nexport const BGradientDataGridHover = \"linear-gradient(270deg, #f4f5f6 0%, rgba(247, 247, 248, .82) 53.34%, rgba(247, 247, 248, .75) 61.73%, rgba(247, 247, 248, .11) 99.25%, rgba(247, 247, 248, 0) 100%)\";\nexport const BGradientDataGridZebraHover = \"linear-gradient(270deg, #ecedef 0%, rgba(236, 237, 239, .82) 53.34%, rgba(236, 237, 239, .75) 61.73%, rgba(236, 237, 239, .11) 99.25%, rgba(236, 237, 239, 0) 100%)\";\nexport const BGradientDataGridSelectedHover = \"linear-gradient(270deg, #d4e6f9 0%, rgba(212, 230, 249, .82) 53.34%, rgba(212, 230, 249, .75) 61.73%, rgba(212, 230, 249, .11) 99.25%, rgba(212, 230, 249, 0) 100%)\";\nexport const BGradientDataGridHighlightedHover = \"linear-gradient(270deg, #ffecd0 0%, rgba(255, 236, 208, .82) 53.34%, rgba(255, 236, 208, .75) 61.73%, rgba(255, 236, 208, .11) 99.25%, rgba(255, 236, 208, 0) 100%)\";\nexport const BShadowLow = \"0px 2px 4px rgba(0, 18, 34, 0.04), 0px 1px 2px rgba(0, 18, 34, 0.02)\";\nexport const BShadowMedium = \"0px 6px 12px rgba(0, 18, 34, 0.08), 0px 2px 4px rgba(0, 18, 34, 0.04)\";\nexport const BShadowHigh = \"0px 18px 36px rgba(0, 18, 34, 0.12), 0px 4px 8px rgba(0, 18, 34, 0.06)\";\nexport const BShadowLowBorder = \"0px 2px 4px rgba(0, 18, 34, 0.04), 0px 1px 2px rgba(0, 18, 34, 0.02), 0px 0px 0px 1px rgba(218, 221, 223, 1)\";\nexport const BShadowMediumBorder = \"0px 6px 12px rgba(0, 18, 34, 0.08), 0px 2px 4px rgba(0, 18, 34, 0.04), 0px 0px 0px 1px rgba(218, 221, 223, 1)\";\nexport const BShadowHighBorder = \"0px 18px 36px rgba(0, 18, 34, 0.12), 0px 4px 8px rgba(0, 18, 34, 0.06), 0px 0px 0px 1px rgba(218, 221, 223, 1)\";\nexport const BSpacer100 = \"32px\";\nexport const BSpacer110 = \"40px\";\nexport const BSpacer120 = \"48px\";\nexport const BSpacer130 = \"56px\";\nexport const BSpacer140 = \"64px\";\nexport const BSpacer000 = \"0px\";\nexport const BSpacer010 = \"2px\";\nexport const BSpacer020 = \"4px\";\nexport const BSpacer030 = \"6px\";\nexport const BSpacer040 = \"8px\";\nexport const BSpacer050 = \"10px\";\nexport const BSpacer060 = \"12px\";\nexport const BSpacer070 = \"16px\";\nexport const BSpacer080 = \"20px\";\nexport const BSpacer090 = \"24px\";\n"],"names":["BColorLabelOnBackgroundCriticalWeak","BColorLabelOnBackgroundWarningWeak","BColorLabelOnBackgroundSuccessWeak","BColorLabelOnBackgroundHighlightWeak","BBorderWidthAttention","BMediaQuerySMax","BMediaQueryMMax","BSpacer040"],"mappings":"AAyFY,MAACA,IAAsC,WACtCC,IAAqC,WACrCC,IAAqC,WACrCC,IAAuC,WA6KvCC,IAAwB,SAIxBC,IAAkB,SAElBC,IAAkB,SAyBlBC,IAAa;"}
@@ -1,5 +1,5 @@
1
1
  import { ref as j, onMounted as je, watch as ie, computed as c, defineComponent as Q, useSlots as Me, useAttrs as Wt, createBlock as R, openBlock as F, unref as v, mergeProps as se, withCtx as D, createElementVNode as Y, renderSlot as ye, createCommentVNode as Z, createVNode as L, createTextVNode as X, toDisplayString as x, createElementBlock as W, normalizeClass as de, withDirectives as Ye, withKeys as ge, nextTick as bt, toRef as ee, onBeforeUpdate as He, provide as ft, resolveComponent as G, Fragment as Ue, reactive as Zt, isRef as Qt, createSlots as Ee, renderList as Be, normalizeProps as Ve, guardReactiveProps as we, vShow as Xt, resolveDynamicComponent as ke } from "vue";
2
- import { B as Ne, b as Ie } from "./search-bar.BF8M5OSY.js";
2
+ import { B as Ne, b as Ie } from "./search-bar.DrkPxPDP.js";
3
3
  import { u as xt } from "./use-bento-toast-controller.V61h7XzI.js";
4
4
  import { u as ve } from "./index.pdBj0KQU.js";
5
5
  import { k as el } from "./index.E60QniEu.js";
@@ -18,9 +18,9 @@ import { B as Ft, a as xe } from "./base-button.CUd03aA2.js";
18
18
  import { u as St } from "./use-has-slot.B7eQSabc.js";
19
19
  import { u as Bt } from "./aria-label.CaUURpnB.js";
20
20
  import { g as Ct } from "./get-slot-text.CQRAP2_q.js";
21
- import { B as We } from "./input-field.C2SQq0V1.js";
21
+ import { B as We } from "./input-field.CBegTqdQ.js";
22
22
  import { B as ul } from "./checkbox-group.DZrhxIHp.js";
23
- import { u as Ze, B as dl } from "./dropdown.D0_8f9Mz.js";
23
+ import { u as Ze, B as dl } from "./dropdown.Dct8gr_q.js";
24
24
  import { g as cl } from "./focus-trap.BaHvK7aT.js";
25
25
  import { C as pl } from "./chevron-up.kfuLRpZb.js";
26
26
  import { C as bl } from "./chevron-down.DCQ6ZLaq.js";
@@ -32,9 +32,9 @@ import { L as Dt } from "./listbox-option-tag.BQZJF00q.js";
32
32
  import { B as yl } from "./payment-method.BGEBaa4w.js";
33
33
  import { u as hl } from "./use-country-items.JZCYNoW7.js";
34
34
  import { B as gl } from "./avatar.CNGMjwg3.js";
35
- import { a as Fl, B as Sl, f as _e, g as Bl, D as tt, i as Je, b as Cl } from "./date-range-picker.TsUvRvGy.js";
35
+ import { a as Fl, B as Sl, f as _e, g as Bl, D as tt, i as Je, b as Cl } from "./date-range-picker.Df9XyFMH.js";
36
36
  import { b as Dl, g as Al, i as Tl } from "./calendar.DKPx_cQU.js";
37
- import { B as Il } from "./date-picker.dyp0YK9_.js";
37
+ import { B as Il } from "./date-picker.DGIwFh6T.js";
38
38
  import { R as lt } from "./refresh.BB4ouvz_.js";
39
39
  import "../assets/filter-bar.css";
40
40
  const At = (e) => e === null || typeof e != "object" ? !1 : Object.prototype.toString.call(e) === "[object Object]", Tt = (e) => Array.isArray(e), at = (e) => Tt(e) ? e.length === 0 || e.every((n) => n === "") : !e, qe = (e, n) => JSON.stringify(e) === JSON.stringify(n), $e = (e) => At(e) ? e instanceof Date ? new Date(e.getTime()) : Tt(e) ? e.map((n) => $e(n)) : Object.keys(e).reduce((n, t) => (n[t] = $e(e[t]), n), {}) : e, _l = (e) => At(e) ? Object.fromEntries(Object.keys(e).map((n) => [n, void 0])) : void 0;
@@ -3360,4 +3360,4 @@ export {
3360
3360
  ne as d,
3361
3361
  It as u
3362
3362
  };
3363
- //# sourceMappingURL=filter-bar.D0BEt7ia.js.map
3363
+ //# sourceMappingURL=filter-bar.DHRuvmx9.js.map