{"version":3,"sources":["webpack:///./src/services/common/formatters.ts","webpack:///./src/assets/images/common-icon/search.svg","webpack:///./src/Model/forms/types.ts","webpack:///./src/services/payments/helpers.ts","webpack:///./src/validators/payments/validators.ts","webpack:///./src/assets/images/scholars/add-new-scholars/arrowDown.svg","webpack:///./src/ui-components/dropdownListBx/DropdownList.less?58ad","webpack:///./src/ui-components/dropdownListBx/DropdownList.vue?e467","webpack:///./src/ui-components/dropdownListBx/DropdownList.ts","webpack:///./src/ui-components/dropdownListBx/DropdownList.vue?d481","webpack:///./src/ui-components/dropdownListBx/DropdownList.vue?a56d","webpack:///./src/ui-components/dropdownListBx/DropdownList.vue"],"names":["formatCurrency","amount","currencyOptions","APP_CONST","CURRENCY_OPTIONS","currencyFormatter","Intl","NumberFormat","locale","style","currency","format","module","exports","FormValidationError","VeeValidateProviderMode","percentToNumber","value","Number","replace","getFormattedFeeDisplayValue","fee","result","feeValue","toLocaleString","feeType","ConvenienceFeeType","FixedAmount","Percentage","percentTwoDecimalRegexPattern","percentInputDecimalLengthValidator","regex","validate","percentInputBetweenValueValidator","args","numValue","between","fixedAmountFeeMinValueValidator","message","extend","min_value","fixedAmountFeeRequiredValidator","required","percentInputBetweenValidator","params","feeNameRequiredValidator","customFeeSelectionRequiredValidator","percentInputRequiredValidator","percentInputTwoDecimalPlacesValidator","checkoutNameRequiredValidator","discountDescriptionRequiredValidator","maxCharsInputValidator","limit","Array","isArray","valid","length","render","_vm","this","_h","$createElement","_c","_self","staticClass","class","classes","openDropdown","dropdown","attrs","label","toLowerCase","split","join","_v","_s","_e","error","disable","publicUniqueId","dropdownList","autoSelectionAllowed","on","$event","toggleDropdown","type","indexOf","_k","keyCode","key","checkKey","singleSelect","directives","name","rawName","expression","target","currentTarget","onDropdownOpen","select","id","firstSelectLabel","stopPropagation","changeFocusOnHover","modifiers","placeholder","domProps","composing","search","trim","evt","active","$forceUpdate","clearSearch","_l","filterList","obj","index","showSelectLabel","isDropdownElementIdValid","errorText","staticRenderFns","DropdownList","hovering","hoverText","styleObject","dropdownElement","searchElementId","activeLetter","selectedIndex","selectableLableHover","Math","floor","random","e","close","FALSE","TRUE","MINUS_ONE","setTimeout","children","document","getElementsByClassName","inputElement","getElementById","focus","activeEle","getElementsByName","scrollIntoView","block","behavior","element","classList","add","findIndex","el","toFind","ZERO","remove","inline","dropdownMenuItems","selected","addEventListener","preventDefault","selectFirstElement","old","newVal","ONE","dropDownValues","attribute","searchElement","activeElement","code","refocusDD","shiftKey","goToSearch","input","String","fromCharCode","test","loopStart","i","val","innerText","charAt","inp","currentElm","querySelector","forEach","drop","classlist","selection","$emit","list","dropList","filter","includes","btnElment","Vue","tslib_1","Prop","default","Watch","deep","Component","filters","component"],"mappings":"2MAAA,kDAIM,SAAUA,EAAeC,GAC7B,IAAMC,EAAwCC,OAAUC,iBAClDC,EAAoB,IAAIC,KAAKC,aACjCL,EAAgBM,OAChB,CACEC,MAAO,WACPC,SAA+C,kBAA7BR,EAAgBQ,SAAyBR,EAAgBQ,SAAW,QAG1F,OAAOL,EAAkBM,OAAOV,K,uBCblCW,EAAOC,QAAU,IAA0B,2B,oCCApC,IAAKC,EAsBAC,EAtBZ,6EAAYD,GACRA,8BACAA,oBACAA,oBACAA,kCACAA,sBACAA,gCACAA,0BAPJ,CAAYA,MAAmB,KAsB/B,SAAYC,GACRA,6BACAA,uBACAA,iBACAA,mBAJJ,CAAYA,MAAuB,M,kKCnB7B,SAAUC,EAAgBC,GAC9B,OAAOC,OAAO,UAAGD,GAAQE,QAAQ,IAAK,KAGlC,SAAUC,EAA4BC,GAC1C,IAAIC,EAASD,EAAIE,SAASC,iBAO1B,OANIH,EAAII,UAAYC,OAAmBC,YACrCL,EAAStB,eAAeqB,EAAIE,UAErBF,EAAII,UAAYC,OAAmBE,aAC1CN,EAAS,GAAH,OAAMD,EAAIE,SAAQ,MAEnBD,I,y/BCVT,IAAMO,EAAgC,2DAEzBC,EAA6D,SAACb,GAAa,OACtFc,OAAMC,SAASf,EAAO,CA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AfCC,eAAK,CACFC,QAAS,CACL9G,cAAc,EACd2B,iBAAiB,EACjBjB,iBAAkB,SAClBD,GAAI,EACJnF,MAAO,SACPqD,MAAO,GACPO,OAAO,EACP2C,UAAW,GACXZ,QAAQ,EACR9B,SAAS,EACTE,aAAc,CAAC,CAAEoB,GAAI,EAAGnF,MAAO,eAErC,+BAIFsL,QADCC,kBAAM,8BA8EPD,QADCG,eAAM,wBAAyB,CAAEC,MAAM,KAAO,yCAlH9BjF,EAAY,QAJhCkF,eAAU,CACP/G,KAAM,eACNgH,QAAS,MAEQnF,WC6BNA,ICtC0Y,I,wBCQrZoF,EAAY,eACd,EACArJ,EACAgE,GACA,EACA,KACA,WACA,MAIa,aAAAqF,E","file":"js/chunk-7444858a.896b123429066ba28626.1729289171026.min.js","sourcesContent":["import APP_CONST from '@/constants/AppConst';\nimport { CurrencyInputOptions } from 'vue-currency-input';\n\n\nexport function formatCurrency(amount: number) {\n const currencyOptions: CurrencyInputOptions = APP_CONST.CURRENCY_OPTIONS;\n const currencyFormatter = new Intl.NumberFormat(\n currencyOptions.locale,\n {\n style: 'currency',\n currency: (typeof currencyOptions.currency === 'string') ? currencyOptions.currency : 'USD'\n }\n );\n return currencyFormatter.format(amount);\n}","module.exports = __webpack_public_path__ + \"img/search.83aca4f4.svg\";","export enum FormValidationError {\n REQUIRED,\n MIN,\n MAX,\n MAX_LENGTH,\n TYPE,\n DUPLICATE,\n FORMAT\n}\n\nexport interface FormValidation {\n changes: boolean;\n dirty: boolean;\n error: FormValidationError | null;\n errorMessage: string;\n valid: boolean;\n}\n\nexport type FormFieldValidation = {\n [Property in keyof T]: FormValidation\n};\n\nexport enum VeeValidateProviderMode {\n Aggressive = 'aggressive',\n Passive = 'passive',\n Lazy = 'lazy',\n Eager = 'eager'\n}","import { ConvenienceFeeGetResponse, ConvenienceFeeType, CustomFeeResponse } from '@/Model/payments/types';\nimport { formatCurrency } from '../common/formatters';\n\nexport function percentToNumber(value: string) {\n return Number(`${value}`.replace('%', ''));\n}\n\nexport function getFormattedFeeDisplayValue(fee: ConvenienceFeeGetResponse | CustomFeeResponse): string {\n let result = fee.feeValue.toLocaleString(); // Default catch-all in case the fee.feeType value is somehow not one of the ConvenienceFeeType enum members\n if (fee.feeType === ConvenienceFeeType.FixedAmount) {\n result = formatCurrency(fee.feeValue);\n }\n else if (fee.feeType === ConvenienceFeeType.Percentage) {\n result = `${fee.feeValue}%`;\n }\n return result;\n}","import { extend } from 'vee-validate'\nimport { required, min_value, between, regex } from 'vee-validate/dist/rules'\nimport { ValidationRuleFunction } from 'vee-validate/dist/types/types'\nimport { percentToNumber } from '@/services/payments/helpers'\n\nconst percentTwoDecimalRegexPattern = /^([0-9]{1,3}|[0-9]{1,3}\\.[0-9]?[0-9]?|\\.[0-9]?[0-9])?%?$/\n\nexport const percentInputDecimalLengthValidator: ValidationRuleFunction = (value: string) =>\n regex.validate(value, { regex: percentTwoDecimalRegexPattern })\n\nexport const percentInputBetweenValueValidator: ValidationRuleFunction = (\n value: string,\n { args }: Record\n) => {\n const numValue = percentToNumber(value)\n return between.validate(numValue, args)\n}\n\nexport function fixedAmountFeeMinValueValidator(message: string) {\n extend('fixed_amount_min_value', {\n ...min_value,\n message\n })\n}\n\nexport function fixedAmountFeeRequiredValidator(message: string) {\n extend('fixed_amount_required', {\n ...required,\n message\n })\n}\n\nexport function percentInputBetweenValidator(message: string) {\n extend('percent_input_between', {\n ...between,\n params: ['args'],\n message,\n validate: percentInputBetweenValueValidator\n })\n}\n\nexport function feeNameRequiredValidator(message: string) {\n extend('name_required', {\n ...required,\n message\n })\n}\n\nexport function customFeeSelectionRequiredValidator(message: string) {\n extend('fee_type_required', {\n ...required,\n message\n })\n}\n\nexport function percentInputRequiredValidator(message: string) {\n extend('percent_input_required', {\n ...required,\n message\n })\n}\n\nexport function percentInputTwoDecimalPlacesValidator(message: string) {\n extend('percent_input_decimal_length', {\n ...regex,\n message,\n validate: percentInputDecimalLengthValidator\n })\n}\n\nexport function checkoutNameRequiredValidator(message: string) {\n extend('name_required', {\n ...required,\n message\n })\n}\n\nexport function discountDescriptionRequiredValidator(message: string) {\n extend('description_required', {\n ...required,\n message\n })\n}\n\nexport function maxCharsInputValidator() {\n extend('max_chars', {\n params: ['limit'],\n validate(value: string, params: any) {\n const limit = Array.isArray(params) ? params[0] : params.limit\n return {\n valid: value.length <= limit\n }\n }\n })\n}\n","module.exports = __webpack_public_path__ + \"img/arrowDown.33c89f03.svg\";","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!./DropdownList.less?vue&type=style&index=0&id=7867c925&lang=less&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"dropdown-list relative\",class:[_vm.classes, _vm.openDropdown && 'dropdown-open-list']},[(_vm.dropdown.label)?_c('label',{attrs:{\"bx-attr\":(\"dropdown-label-\" + (_vm.dropdown.label.toLowerCase().split(' ').join('-')))}},[_vm._v(_vm._s(_vm.dropdown.label)),(_vm.dropdown.required)?_c('span',[_vm._v(\"*\")]):_vm._e()]):_vm._e(),_c('div',{staticClass:\"relative clear-both\"},[_c('button',{class:[_vm.dropdown.error && 'outline-red', _vm.dropdown.disable && 'disable'],attrs:{\"id\":(\"dropdown-label-\" + _vm.publicUniqueId),\"type\":\"button\",\"bx-attr\":(\"toggleDropdown-\" + (_vm.dropdown.value)),\"disabled\":(_vm.dropdown.disable || _vm.dropdown.dropdownList && ((_vm.autoSelectionAllowed && _vm.dropdown.dropdownList.length <= 1)||(!_vm.autoSelectionAllowed &&_vm.dropdown.dropdownList.length <= 0)))},on:{\"click\":function($event){return _vm.toggleDropdown($event)},\"keydown\":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"esc\",27,$event.key,[\"Esc\",\"Escape\"])){ return null; }return _vm.toggleDropdown($event,true)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"tab\",9,$event.key,\"Tab\")){ return null; }return _vm.toggleDropdown($event,true)},function($event){return _vm.checkKey($event)}]}},[_c('img',{attrs:{\"src\":require(\"../../assets/images/scholars/add-new-scholars/arrowDown.svg\"),\"alt\":\"down\"}}),_c('span',{class:[_vm.dropdown.singleSelect && 'singleSelect']},[_vm._v(_vm._s(_vm.dropdown.value))])]),(_vm.openDropdown)?_c('div',{directives:[{name:\"click-outside\",rawName:\"v-click-outside\",value:(function (){_vm.openDropdown=false}),expression:\"()=>{openDropdown=false}\"}],staticClass:\"dropdown-submenu\"},[_c('ul',{staticClass:\"dropdown-submenu-list scroll-drop\"},[(_vm.dropdown.showSelectLabel)?_c('li',{staticClass:\"select-label\",on:{\"keydown\":function($event){if($event.target !== $event.currentTarget){ return null; }return _vm.onDropdownOpen($event)},\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.select({id: 0, value: _vm.dropdown.firstSelectLabel || 'Select'});},\"click\":function($event){$event.stopPropagation();return _vm.select({id: 0, value: _vm.dropdown.firstSelectLabel || 'Select'})},\"mouseover\":function($event){return _vm.changeFocusOnHover(-1)}}},[_c('img',{attrs:{\"src\":require(\"../../assets/images/scholars/add-new-scholars/arrowDown.svg\"),\"alt\":\"down\"}}),_c('a',[_vm._v(_vm._s(_vm.dropdown.firstSelectLabel || 'Select'))])]):_vm._e(),(_vm.dropdown.search)?_c('li',{staticClass:\"input_rel\"},[(_vm.dropdown.search)?_c('input',{directives:[{name:\"model\",rawName:\"v-model.trim\",value:(_vm.search),expression:\"search\",modifiers:{\"trim\":true}}],attrs:{\"placeholder\":_vm.dropdown.placeholder || 'Search',\"type\":\"text\",\"id\":\"dropdownSearchInput\"},domProps:{\"value\":(_vm.search)},on:{\"keydown\":function($event){if($event.target !== $event.currentTarget){ return null; }return _vm.onDropdownOpen($event, 'fromSearchInput')},\"input\":[function($event){if($event.target.composing){ return; }_vm.search=$event.target.value.trim()},function (evt) {_vm.search=evt.target.value; _vm.active=-1}],\"mouseover\":function($event){return _vm.changeFocusOnHover(-1)},\"blur\":function($event){return _vm.$forceUpdate()}}}):_vm._e(),(_vm.search)?_c('span',{staticClass:\"cross\",on:{\"click\":function($event){return _vm.clearSearch()}}},[_c('img',{attrs:{\"src\":require(\"../../assets/images/closeIconBlack.svg\"),\"alt\":\"\"}})]):_c('span',{staticClass:\"search-icon\"},[_c('img',{attrs:{\"src\":require(\"../../assets/images/common-icon/search.svg\"),\"alt\":\"\"}})])]):_vm._e(),_vm._l((_vm.filterList(_vm.dropdown.dropdownList, _vm.search)),function(obj,index){return _c('li',{key:index,staticClass:\"dropdown-menu\",class:[ _vm.dropdown.id==obj.id && 'blue-hover' ,!_vm.dropdown.showSelectLabel && index == 0 && 'label-wt-select'],attrs:{\"id\":(\"drop-li-\" + index)},on:{\"click\":function($event){return _vm.select(obj)},\"mouseover\":function($event){return _vm.changeFocusOnHover(index)}}},[(_vm.isDropdownElementIdValid(obj.id))?_c('a',{attrs:{\"id\":(\"drop-a-\" + index),\"name\":(\"drop-a-\" + (obj.id)),\"tabindex\":index,\"bx-attr\":(\"dropdown-value-\" + (obj.value.toLowerCase().split(' ').join('-')))},on:{\"keypress\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.select(obj);},\"keydown\":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"esc\",27,$event.key,[\"Esc\",\"Escape\"])){ return null; }return _vm.toggleDropdown($event,true)},function($event){if($event.target !== $event.currentTarget){ return null; }return _vm.onDropdownOpen($event,'fromLi')}]}},[(!_vm.dropdown.showSelectLabel && index == 0)?_c('img',{attrs:{\"src\":require(\"../../assets/images/scholars/add-new-scholars/arrowDown.svg\"),\"alt\":\"down\"}}):_vm._e(),_vm._v(\" \"+_vm._s(obj.value))]):_vm._e()])})],2)]):_vm._e()]),(_vm.dropdown.error)?_c('span',{staticClass:\"dropdown-error\"},[_vm._v(_vm._s(_vm.dropdown.errorText))]):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Vue, Component, Prop, Watch } from 'vue-property-decorator';\nimport APP_CONST from '@/constants/AppConst';\nimport { DropdownListItem, DropdownListOptions } from './types';\n\n\n@Component({\n name: 'DropdownList',\n filters: {}\n})\nexport default class DropdownList extends Vue {\n search: string = '';\n openDropdown: boolean = false;\n hovering: boolean = false;\n hoverText: string = '';\n styleObject: any = {};\n dropdownElement: any = {}\n active: number = -1\n searchElementId: number = -1\n public activeLetter = '';\n public selectedIndex: number = -1;\n selectableLableHover: boolean = false\n public publicUniqueId: number = Math.floor(Math.random() * 100000000000);\n\n @Prop()\n classes!: string[]\n\n @Prop({ default: true })\n autoSelectionAllowed!: boolean\n\n @Prop({\n default: {\n singleSelect: false,\n showSelectLabel: true,\n firstSelectLabel: 'Select',\n id: 0,\n value: 'Select',\n label: '',\n error: false,\n errorText: '',\n search: false,\n disable: false,\n dropdownList: [{ id: 0, value: 'Select' }] as DropdownListItem[]\n } as DropdownListOptions\n })\n dropdown!: DropdownListOptions;\n\n @Prop()\n slotObj!: { slotLabel: string, slotType: string };\n\n toggleDropdown(e?: any, close?: boolean) {\n if (this.dropdown.disable) {\n return;\n }\n this.openDropdown = this.openDropdown ? APP_CONST.FALSE : (close ? APP_CONST.FALSE : APP_CONST.TRUE);\n this.clearSearch();\n this.hovering = !this.hovering;\n if (this.openDropdown) {\n this.active = APP_CONST.MINUS_ONE;\n setTimeout(() => {\n this.dropdownElement.children = [...document.getElementsByClassName(\"dropdown-menu\")];\n if (this.dropdown.search) {\n let inputElement = document.getElementById('dropdownSearchInput');\n inputElement && inputElement.focus()\n if (this.dropdown.id) {\n let activeEle = document.getElementsByName(`drop-a-${this.dropdown.id}`)[0];\n if (activeEle) {\n activeEle.scrollIntoView({ block: \"center\", behavior: \"smooth\" });\n }\n }\n }\n else {\n let element = document.getElementById(\"drop-a-0\");\n if (element) {\n element.focus();\n this.active = 0;\n this.dropdownElement.children[this.active].classList.add(\"dropbtn-selected\");\n }\n if (this.dropdown.id) {\n let activeEle = document.getElementsByName(`drop-a-${this.dropdown.id}`)[0];\n if (activeEle) {\n activeEle.focus();\n const index = this.dropdownElement.children.findIndex((el: any, index: number) => {\n const toFind = `drop-a-${this.dropdown.id}`;\n if (el.children[0].name == toFind) {\n return index\n }\n });\n if (index >= APP_CONST.ZERO) {\n this.dropdownElement.children[this.active].classList.remove(\"dropbtn-selected\");\n this.active = index;\n this.dropdownElement.children[this.active].classList.add(\"dropbtn-selected\");\n this.dropdownElement.children[this.active] && this.dropdownElement.children[this.active].scrollIntoView({ block: \"center\", inline: \"center\", behavior: \"smooth\" });\n }\n }\n }\n }\n }, 10)\n }\n if (this.openDropdown && this.selectedIndex > -1) {\n let dropdownMenuItems = this.dropdownElement && this.dropdownElement.children\n dropdownMenuItems[this.active] && dropdownMenuItems[this.active].scrollIntoView({ block: \"center\", inline: \"center\", behavior: \"smooth\" })\n }\n if (this.active > -1 && e && e.keyCode == 13 && !this.openDropdown) {\n this.selectedIndex = this.active;\n let selected = this.dropdown.dropdownList[this.active]\n this.select(selected)\n }\n }\n\n /* istanbul ignore next */\n mounted() {\n document.addEventListener(\"keydown\", (e) => {\n switch (e.key) {\n case \"ArrowUp\":\n case \"ArrowDown\":\n if (this.openDropdown)\n e.preventDefault();\n break;\n }\n });\n this.selectFirstElement();\n }\n\n @Watch('dropdown.dropdownList', { deep: true })\n onDropdownListChange(old: any, newVal: any) {\n if (old !== newVal)\n this.selectFirstElement();\n }\n\n selectFirstElement() {\n if (this.dropdown.dropdownList && this.dropdown.dropdownList.length <= APP_CONST.ONE && this.autoSelectionAllowed) {\n let dropDownValues: any = this.dropdown.dropdownList.length == APP_CONST.ZERO ? { id: this.dropdown.id ? this.dropdown.id : 0, value: this.dropdown.value } : this.dropdown.dropdownList[APP_CONST.ZERO]\n this.select(dropDownValues)\n let element: any = document.getElementById(`dropdown-label-${this.publicUniqueId}`)\n element && element.classList && element.classList.add(\"dropdown-active\");\n }\n else {\n let element: any = document.getElementById(`dropdown-label-${this.publicUniqueId}`)\n element && element.classList && element.classList.remove(\"dropdown-active\");\n }\n }\n\n onDropdownOpen(e: any, attribute?: string) {\n let searchElement = document.getElementById('dropdownSearchInput');\n if (document.activeElement !== searchElement) {\n if (e.code == \"Space\") {\n e.preventDefault();\n return false;\n }\n }\n if (e.keyCode == 27) {\n this.toggleDropdown({}, true);\n this.refocusDD()\n }\n if (attribute == \"fromLi\" && e.keyCode == 9 && !e.shiftKey) {\n this.toggleDropdown({}, false)\n this.active = -1;\n return;\n } else if (attribute == \"fromLi\" && e.keyCode == 9 && e.shiftKey) {\n this.active = -1;\n setTimeout(() => {\n if (this.dropdown.search) {\n let inputElement = document.getElementById('dropdownSearchInput');\n inputElement && inputElement.scrollIntoView({ block: \"center\", inline: \"center\", behavior: \"smooth\" });\n this.goToSearch();\n }\n }, 10);\n return;\n }\n else if (attribute == 'fromSearchInput' && (e.keyCode == 38 || e.keyCode == 40)) {\n e.preventDefault();\n return;\n }\n else if (attribute == 'fromSearchInput' && e.keyCode == 9 && !e.shiftKey) {\n this.active = 0;\n }\n let dropdownMenuItems = this.dropdownElement && this.dropdownElement.children\n let inputElement = document.getElementById('dropdownSearchInput');\n\n if (this.openDropdown) {\n const input = String.fromCharCode(e.keyCode)\n if (e.keyCode == 40) {\n if (this.active < this.dropdownElement.children.length - 1)\n this.active++;\n }\n else if (e.keyCode == 38) {\n if (this.active == APP_CONST.ZERO) {\n this.active;\n }\n else\n this.active--;\n }\n else if (/[a-zA-Z0-9]/.test(input) && (document.activeElement !== inputElement)) {\n let loopStart = this.activeLetter == input.toLowerCase() ? this.active + 1 : 0;\n for (let i = loopStart; i < this.dropdownElement.children.length; i++) {\n let val = dropdownMenuItems[i].innerText.charAt(0).toLowerCase()\n let inp = input.toLowerCase()\n if (val == inp) {\n this.active = i;\n this.activeLetter = inp;\n break\n }\n }\n }\n setTimeout(() => {\n let currentElm: any = document.querySelector('.dropbtn-selected a') as HTMLElement;\n currentElm && currentElm.focus()\n })\n }\n this.dropdownElement.children.forEach((drop: any) => {\n drop && drop.classList && drop.classList.remove('dropbtn-selected');\n });\n this.dropdownElement && this.dropdownElement.children[this.active] && this.dropdownElement.children[this.active].classList.add('dropbtn-selected');\n if (this.active > -1) {\n this.dropdownElement.children[this.active].focus();\n this.dropdownElement.children[this.active].classlist && this.dropdownElement.children[this.active].classlist.add('dropbtn-selected');\n dropdownMenuItems[this.active] && dropdownMenuItems[this.active].scrollIntoView({ block: \"center\", inline: \"center\", behavior: \"smooth\" })\n }\n }\n\n goToSearch() {\n let inputElement = document.getElementById('dropdownSearchInput');\n inputElement && inputElement.focus()\n }\n\n checkKey(e: any) {\n if (e.keyCode == 38 || e.keyCode == 40) {\n if (this.openDropdown) {\n this.onDropdownOpen(e, 'fromLi')\n } else {\n this.toggleDropdown(e)\n }\n }\n }\n\n select(selection: { id: number, value: string }) {\n if (selection && this.dropdown.id == selection.id) {\n this.openDropdown = false;\n this.refocusDD();\n this.hovering = false;\n return;\n }\n this.dropdown.id = selection && selection.id;\n this.dropdown.value = selection && selection.value;\n if (this.dropdown.id >= APP_CONST.ZERO || typeof (this.dropdown.id) == 'string') {\n this.$emit('onSelectionChange', { id: this.dropdown.id, value: this.dropdown.value } as DropdownListItem);\n }\n this.openDropdown = false;\n this.refocusDD()\n this.hovering = false;\n }\n\n filterList(list: [{ id: number, value: string }], search: string): any {\n search = search.trim();\n if (!search) {\n return list;\n }\n const dropList = list.filter((el) => el.value.toLowerCase().includes(search.toLowerCase()));\n return dropList;\n }\n\n clearSearch() {\n this.search = '';\n }\n\n refocusDD() {\n let btnElment = document.getElementById(`dropdown-label-${this.publicUniqueId}`)\n btnElment && btnElment.focus();\n }\n\n // Just to improve user Experience\n changeFocusOnHover(index: number) {\n this.dropdownElement && this.dropdownElement.children && this.dropdownElement.children.forEach((drop: any) => {\n drop && drop.classList && drop.classList.remove('dropbtn-selected');\n });\n if (index > -1) {\n this.active = index;\n // this check is needed to ensure the dropdown and elements inside the dropdown exist\n // due to the onDropdownOpen function having a 10ms timeout\n if (this.dropdownElement.children && this.dropdownElement.children.length && this.dropdownElement.children[this.active]) {\n this.dropdownElement.children[this.active].classList.add(\"dropbtn-selected\");\n }\n }\n }\n\n /**\n * Checks if the provided dropdown element ID is valid.\n *\n * @param id - The dropdown element ID to validate.\n * @returns A boolean indicating whether the ID is valid or not.\n */\n isDropdownElementIdValid(id: number | string): boolean {\n if (typeof id === 'number') {\n return id > -1;\n } else if (typeof id === 'string') {\n return !!id;\n }\n return false;\n }\n}","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport DropdownList from '@/ui-components/dropdownListBx/DropdownList';\nexport default DropdownList;\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DropdownList.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DropdownList.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./DropdownList.vue?vue&type=template&id=7867c925&scoped=true&\"\nimport script from \"./DropdownList.vue?vue&type=script&lang=ts&\"\nexport * from \"./DropdownList.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./DropdownList.less?vue&type=style&index=0&id=7867c925&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7867c925\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}