{"version":3,"file":"street-suggest.min.js","names":["configs","window","createUUID","crypto","randomUUID","e","runAutoSuggestScript","config","key","JSON","stringify","sessionBasedAutocomplete","location","search","indexOf","console","log","$","activateSuggestInputLength","streetInput","concat","streetId","streetNrInput","streetNrId","plzInput","plzId","cityInput","cityId","stateInput","stateId","countryInput","countryId","sessionToken","suggestContainer","appendTo","suggestListController","getSuggestionList","input","AbortController","promise","fetch","language","signal","then","response","json","result","predictions","Promise","resolve","getSuggestDetails","placeID","calcPositionOfSuggest","display","arguments","length","undefined","inputRef","suggestContainerRef","inputPos","getBoundingClientRect","top","scrollY","height","left","scrollX","style","position","zIndex","width","createSuggestList","suggests","empty","forEach","suggest","li","description","click","applySuggest","append","place_id","place","handleSuggestSelect","is_street_number_hidden","is_street_number_before_street","componentForm","street_number","route","locality","administrative_area_level_1","country","postal_code","elementsMap","sanitizedValues","country_input","document","getElementById","zipcode_input","getValueOfField","id","field","value","previous_country","previous_zipcode","country_name","address_components","item","addressType","types","val","is_country_changed","is_zipcode_changed","Object","keys","elementId","disabled","trigger","initAutoCompleteAttribute","attr","disableBrowserSuggest","enableBrowserSuggest","checkInputBrowserSuggest","enterTimeout","hasAutoFill","bind","clearTimeout","abort","setTimeout","originalEvent","animationName"],"sources":["../../app/libs/legacy-street-suggest/legacy-street-suggest.ts"],"sourcesContent":["/* eslint-disable */\n\n/**\n * Generated Code - Original file ist legacy-street-suggest.ts\n */\n\nimport {\n InterfacePlaceDetail,\n InterfacePlacesList,\n} from '../orderform-widgets/src/lib/components/inputs-generator/address-suggest-plugin/interface';\n\ninterface AutoSuggestConfig {\n streetId: string;\n streetNrId: string;\n plzId: string;\n cityId: string;\n stateId: string;\n countryId: string;\n is_street_number_hidden: boolean;\n is_street_number_before_street: boolean;\n language: string;\n}\n\ndeclare const $;\n\nconst configs: AutoSuggestConfig[] = window['AutoSuggestConfigs'] || [];\nwindow['initedConfigs'] = window['initedConfigs'] || {};\n\nconst createUUID = () => {\n try {\n return crypto.randomUUID();\n } catch (e) {\n return 'uuid-not-supported';\n }\n};\n\nfunction runAutoSuggestScript(config: AutoSuggestConfig) {\n const key = JSON.stringify(config); // generate key by config\n const sessionBasedAutocomplete = false;\n\n if (window.location.search.indexOf('test_skip_autocomplete=1') >= 0) {\n return;\n }\n\n /**\n * Prevent multible loads by configuration\n */\n if (window['initedConfigs'][key]) {\n console.log('prevent multible load for', key);\n return false;\n } else {\n window['initedConfigs'][key] = true;\n }\n\n if (config && $) {\n const activateSuggestInputLength = 2;\n const streetInput = $(`#${config.streetId}`);\n const streetNrInput = $(`#${config.streetNrId}`);\n const plzInput = $(`#${config.plzId}`);\n const cityInput = $(`#${config.cityId}`);\n const stateInput = $(`#${config.stateId}`);\n const countryInput = $(`#${config.countryId}`);\n let sessionToken = createUUID();\n\n /**\n * Create initial container for street results\n * and add this to body\n */\n const suggestContainer = $(\n '